Miscellaneous Utilities

Echo

Simple echo utility that returns your input message unchanged. Useful for testing MCP connections in Cursor or Windsurf, debugging API workflows, or verifying agent communication. Call via `/v1/misc/echo` with any message parameter. Returns exactly what you send — no processing, no surprises.

API Endpoint

GET /v1/misc/echo

Code Examples

curl "https://tinyfn.io/v1/misc/echo" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/misc/echo', {
  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/echo',
    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 echo tool do?

Returns your input message exactly as sent, with no modifications or processing. Perfect for testing connectivity and debugging.

How do I test if my MCP connection is working?

Use the echo tool with any test message. If you get back exactly what you sent, your MCP setup in Cursor, Windsurf, or other editors is working correctly.

What's the REST API endpoint for echo?

GET /v1/misc/echo with your message as a parameter. Returns JSON with your original message.

Can I send special characters or Unicode through echo?

Yes, echo preserves all characters including emojis, Unicode symbols, and special formatting exactly as received.

Why use echo instead of just printing a message?

Echo tests the full round-trip communication between your AI agent and TinyFn's servers, catching network issues that local printing wouldn't reveal.

Try Echo Now

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

Get Free API Key