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. Price: $0.001 USDC per successful call (x402, 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.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds substantive behavior: a hard failure mode (inputs exceeding 50 steps are rejected, so the agent should expect errors for Lychrel-like candidates), a per-successful-call price of $0.001 USDC via x402 on Solana, and an equivalent HTTPS endpoint. It does not say what a rejection looks like or confirm the numeric return shape, keeping it short of a 5.

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-loaded with the core definition, then compact examples, then the operational constraints (step cap, input range, price, alternate endpoint). Dense but every clause is functional; the pricing and URL tail could be shortened without loss.

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

Completeness4/5

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

For a single-parameter, no-output-schema tool, the description covers the computation, the domain, the failure threshold, the cost, and the transport alternative — everything needed to call it correctly. The only residue is the exact response payload, which the agent must infer from the question-style phrasing.

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?

With 0% schema description coverage, the description must carry the semantics of n, and it does: n is the starting integer fed into the reverse-and-add process, bounded 0–10000, with examples that pin down the count convention (a number already a palindrome yields 0). The range restates the schema's minimum/maximum, but the meaning of the value is genuinely added.

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?

The description states a specific operation — counting reverse-and-add (196-algorithm) steps until n becomes a palindrome — and anchors it with worked examples (7 and 121 take 0, 19 takes 2, 89 takes 24) so the agent knows exactly what is computed. It does not, however, distinguish itself from closely related siblings such as palindrome, palindrome_reach, or reverse_add, which likely probe overlapping territory.

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?

Usage is only implied: the examples show what kinds of inputs produce what counts, and the 50-step rejection tells the agent this is for small-step inputs, not Lychrel hunting. There is no explicit statement of when to prefer this over palindrome_reach or reverse_add, which is a real gap given the dense sibling set of number-theory tools.

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