Skip to main content
Glama

ScorpTech x402 Tools

Palindrome Steps

palindrome_steps
Read-onlyIdempotent

How many reverse-and-add steps turn n into a palindrome. 7 and 121 take 0, 10 takes 1, 19 takes 2, and 89 takes 24. If 50 steps are not enough, the input is rejected. n runs from 0 to 10000. Returns JSON with: n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/palindrome-steps

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "n": "<n>"
    },
    "name": "palindrome_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: it discloses the failure mode (inputs exceeding 50 steps are rejected), the return payload keys (n, value), and the per-call cost with the note that billing is per successful call plus an HTTPS endpoint. Missing only details like what 'value' contains on rejection.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core question, then examples, then the failure rule, then the return shape. Dense but nearly every sentence adds information; the pricing/HTTPS sentence is commercial but relevant to invoking the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, pure-computation tool with readOnly/idempotent annotations, the description supplies the domain, the rejection threshold, the output keys, and cost — everything an agent needs to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter n is only typed as an integer, so the description carries the load: it defines the accepted range and legitimizes the bounds with concrete input/output examples. It could explain the cost of the rejection case more, but the meaning of n is clear.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific computation (count reverse-and-add steps to reach a palindrome) with worked examples (7→0, 10→1, 19→2, 89→24) that pin down the exact semantics. It doesn't explicitly contrast with siblings like 'palindrome' or 'palindrome_reach', but the verb+resource is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use it via examples and the domain limit (n from 0 to 10000), and states the 50-step rejection rule, but never names an alternative tool or says when a different tool would be the right choice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources