Need a quick decision? This tool returns a random "yes" or "no" answer via GET /v1/fun/yes-no. Perfect for AI agents making binary choices or developers needing deterministic randomness in workflows. Simple JSON response with consistent formatting across MCP integrations in Cursor and Windsurf.
curl "https://tinyfn.io/v1/fun/yes-no" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/fun/yes-no', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/fun/yes-no',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's fun tools:
{
"mcpServers": {
"tinyfn-fun": {
"url": "https://tinyfn.io/mcp/fun",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Returns JSON with either "yes" or "no" as the answer value, providing a simple binary decision.
Agents can call this via MCP to make random choices in workflows, break ties, or simulate coin flips with consistent yes/no responses.
Uses pseudo-random generation that's deterministic within sessions but varies between calls, ensuring reproducible behavior for testing.
Yes, especially useful when you need consistent JSON formatting or want to externalize decision logic from your application code.
Identical behavior in Cursor, Claude Code, Windsurf, and other MCP-enabled editors, with the same JSON response format.