Number Utilities

Is Palindrome Number

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.

API Endpoint

GET /v1/number/is-palindrome

Code Examples

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)

Use via MCP

Add to your AI agent

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"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I check if a number is a palindrome using MCP?

Call the is-palindrome tool in Cursor, Windsurf, or other MCP clients with your number. It returns a boolean result without manual string reversal.

Does the palindrome checker work with negative numbers?

Typically treats negatives as non-palindromes since the minus sign breaks symmetry. Test with your specific numbers to confirm behavior.

What's the difference between string and number palindrome checking?

Number palindromes ignore leading zeros and work with pure numeric values. String palindromes preserve exact character sequences including spaces and punctuation.

Can I check large numbers for palindrome patterns?

Yes, handles standard integer ranges efficiently. For extremely large numbers, verify the API's numeric limits in your use case.

What format does the palindrome API return?

Returns a simple boolean: true for palindromes like 1221, false for non-palindromes like 1234. Clean JSON response for easy parsing.

Try Is Palindrome Number Now

Get your free API key and start using Is Palindrome Number in seconds.

Get Free API Key