Skip to main content
Glama

Kaprekar Step

kaprekar_step
Read-onlyIdempotent

One step of the four-digit Kaprekar routine, padding with leading zeros. 3524 gives 3087, 14 gives 4086, 6174 gives 6174, and a repdigit such as 1111 gives 0. n runs from 0 to 9999. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/kaprekar-step

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavior beyond annotations: leading-zero padding, treatment of fixed points and repdigits, the 0-9999 domain, per-call USDC pricing, and an HTTPS endpoint.

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

Conciseness5/5

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

The definition is front-loaded with the core operation, followed by concise examples, domain bounds, and payment/access details. Every sentence contributes useful information for an agent deciding whether and how to call it.

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?

With one required parameter, no output schema, and annotations covering side-effect safety, the description is complete enough: it gives examples of return values, handles special cases, states the input range, and notes payment and transport details.

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 description coverage is 0%, so the description carries more burden for the single parameter n. It confirms the 0-9999 range and, more importantly, explains leading-zero padding and gives concrete input-output examples that clarify how n is interpreted.

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

Purpose5/5

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

The description names a specific operation, 'One step of the four-digit Kaprekar routine,' and immediately clarifies padding and range. The phrase 'one step' meaningfully distinguishes this from sibling tools such as kaprekar_steps, kaprekar_chain, and kaprekar_kernel.

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 strongly implied by 'one step' and the examples, so an agent can infer this is for a single iteration rather than a chain or multi-step count. However, no sibling alternatives are named and there is no explicit when-to-use guidance versus kaprekar_steps or kaprekar_chain.

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