Miscellaneous Utilities

True Endpoint

A simple utility that reliably returns the boolean value `true`. Access via MCP in Cursor or other AI editors, or call `GET /v1/misc/true` directly. Useful for testing API connectivity, validating agent workflows, or as a control endpoint in conditional logic. Deterministic output guaranteed every time.

API Endpoint

GET /v1/misc/true

Code Examples

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

Returns the JSON boolean `true` with a 200 HTTP status. No parameters needed, no variations in output.

Why would I use a true endpoint in my application?

Common use cases include API health checks, testing MCP connectivity in AI agents, control flows that need a guaranteed true value, and baseline comparisons in test suites.

Can I use this endpoint to test if my MCP connection is working?

Yes, it's perfect for testing MCP connectivity in Cursor, Windsurf, or other AI tools since it requires no parameters and always returns a predictable result.

Is there a corresponding false endpoint?

TinyFn provides complementary boolean endpoints. Check the miscellaneous utilities category for the false endpoint and other simple testing utilities.

What's the response format and headers?

Returns `true` as JSON with `Content-Type: application/json`. Response time is typically under 10ms for immediate feedback in testing scenarios.

Try True Endpoint Now

Get your free API key and start using True Endpoint in seconds.

Get Free API Key