Skip to main content
Glama

ScorpTech x402 Tools

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. 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/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 readOnly, idempotent, non-destructive and open-world, and the description adds genuinely new context: leading-zero padding, the repdigit→0 edge case, the exact return fields (n, value), a per-call price of $0.001 USDC via x402 on Base or Solana, and an HTTPS endpoint. The only gap is that it does not describe failure behavior when payment is declined or the endpoint is unreachable.

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 operation and examples, then payment and transport details, in three tight sentences with no filler. Every clause carries information an agent needs (semantics, edge cases, cost, return shape).

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 no output schema, the description correctly spells out the return shape, and it covers the cost and payment mechanism an agent must know before calling. For a one-parameter pure-function tool this is fully sufficient.

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%, so the description carries the burden, and it does: n is stated to range 0–9999 and the examples show that inputs are zero-padded to four digits (14 → 4086). It stops short of naming n explicitly as the input field, but the mapping is recoverable from context.

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?

States a specific verb and resource — 'one step of the four-digit Kaprekar routine' — and the 'one step' framing separates it from multi-step siblings such as kaprekar_chain or kaprekar_steps. The worked examples (3524→3087, 1111→0) pin down the operation precisely.

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: it is clear this tool computes a single step, and the padding and repdigit notes hint at the intended domain. There is no explicit 'use X instead when you need N iterations' guidance nor any statement of prerequisites beyond the payment note.

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