Validates whether a number reads the same forwards and backwards, like 12321 or 7337. Use GET /v1/number/is-palindrome with your number as a parameter. Returns true/false instantly — no string conversion guesswork. Perfect for MCP-enabled editors like Cursor when building number validation logic or mathematical puzzles.
curl "https://tinyfn.io/v1/number/is-palindrome" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/number/is-palindrome', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/number/is-palindrome',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's number tools:
{
"mcpServers": {
"tinyfn-number": {
"url": "https://tinyfn.io/mcp/number",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Call the is-palindrome tool in Cursor, Windsurf, or other MCP clients with your number. It returns a boolean result without manual string reversal.
Typically treats negatives as non-palindromes since the minus sign breaks symmetry. Test with your specific numbers to confirm behavior.
Number palindromes ignore leading zeros and work with pure numeric values. String palindromes preserve exact character sequences including spaces and punctuation.
Yes, handles standard integer ranges efficiently. For extremely large numbers, verify the API's numeric limits in your use case.
Returns a simple boolean: true for palindromes like 1221, false for non-palindromes like 1234. Clean JSON response for easy parsing.
Get your free API key and start using Is Palindrome Number in seconds.
Get Free API Key