Skip to main content
Glama

ScorpTech x402 Tools

Kaprekar

kaprekar
Read-onlyIdempotent

Whether n is a Kaprekar number. Split n^2 so the right part has as many digits as n; the two parts add to n, and the right part is not 0. 1, 9, 45, 297, and 9999 are. 10 is not. n runs from 1 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/kaprekar

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

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 this as a safe, idempotent, read-only, open-world call, so the safety profile is covered. The description adds context annotations cannot: the call is paid ('$0.001 USDC per successful call (x402, Base or Solana)') and an equivalent HTTPS endpoint exists. It does not discuss failure behavior or payment failure modes, but the cost disclosure is the material addition.

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?

The definition is front-loaded with the predicate and its rule before examples, range, return shape, price, and endpoint. Every sentence carries information and the ordering is logical. It is dense in a single block rather than segmented, which costs it some readability but not correctness.

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?

With no output schema, the description compensates by naming the returned fields ('n, value'), and it adds cost and transport details an agent would otherwise not know. Input domain, algorithm, and examples are all present. Only the absence of any sibling differentiation keeps it from being fully complete.

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 full burden for the single parameter. It does: 'n' is identified as the integer under test and its domain is restated ('n runs from 1 to 10000'), and the worked examples make the semantic meaning of n concrete. The only gap is that format/edge behavior at the range boundaries is not mentioned.

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 precise predicate verb-plus-resource ('Whether n is a Kaprekar number') and even supplies the defining rule (split n^2, right part same digit-count as n, sums to n, right part non-zero). An agent knows exactly what is being computed. It does not distinguish itself from siblings such as kaprekar_chain or kaprekar_step, so it stops short of a 5.

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 implied rather than stated: the domain constraint ('n runs from 1 to 10000') and the positive/negative examples (1, 9, 45, 297, 9999 are; 10 is not) make clear this is a single-value membership test. There is no explicit when-to-use or when-not-to-use guidance and no routing to the kaprekar_* siblings, which leaves real inference work to the agent.

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