Miscellaneous Utilities

Ping

Simple health check endpoint that returns "pong" when pinged. Use GET /v1/misc/ping via REST API or through MCP in Cursor/Claude to verify TinyFn connectivity. Perfect for testing integrations, monitoring uptime, or confirming your AI agent can reach TinyFn services before executing complex workflows.

API Endpoint

GET /v1/misc/ping

Code Examples

curl "https://tinyfn.io/v1/misc/ping" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/misc/ping', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/misc/ping',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's miscellaneous tools:

{
  "mcpServers": {
    "tinyfn-misc": {
      "url": "https://tinyfn.io/mcp/misc",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What does the ping endpoint return?

Returns a simple "pong" response with HTTP 200 status, confirming the service is reachable and operational.

How do I use ping to test MCP connectivity in Cursor?

Call the ping tool through MCP - if you get "pong" back, your TinyFn connection is working and you can proceed with other tools.

Can I use ping for monitoring TinyFn uptime?

Yes, the GET /v1/misc/ping endpoint is perfect for health checks, monitoring scripts, and automated uptime verification.

Does ping have any rate limits or authentication requirements?

Ping follows standard TinyFn rate limits but requires no special authentication - it's designed for frequent health checks.

What's the typical response time for the ping endpoint?

Response time is typically under 50ms, making it suitable for real-time connectivity checks and low-latency monitoring.

Try Ping Now

Get your free API key and start using Ping in seconds.

Get Free API Key