Skip to main content
Glama

ScorpTech x402 Tools

Kaprekar Kernel

kaprekar_kernel
Read-onlyIdempotent

The value the four-digit Kaprekar routine reaches. Every non-repdigit from 0 to 9999 reaches 6174. A repdigit is rejected. 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-kernel

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

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?

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld). The description adds behavior the annotations cannot express: each successful call costs $0.001 USDC via x402 on Solana, and the same operation is reachable over HTTPS POST. That payment/auth context is genuinely valuable and not repeated from structured fields.

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 result statement is front-loaded, followed by domain constraints, then pricing and endpoint. Every sentence carries distinct information — semantics, input validity, cost, transport — with no filler.

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 only one parameter, no output schema, and rich annotations, the description covers what is needed to call it: the input domain, the rejection rule, the cost, and the transport. The remaining gap is sibling disambiguation within the large kaprekar family and the exact shape of the response.

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 must carry the load, and it does add meaning beyond the raw min/max: n is a four-digit value treated as 0–9999 and repdigits (0000, 1111, …) are rejected as invalid. It falls short of clarifying leading-zero handling or whether rejection is an error versus a defined result.

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 names a specific resource and result: the terminal value that the four-digit Kaprekar routine reaches (6174). An agent can tell it returns a constant rather than a chain or a step. However, it never distinguishes itself from the sibling cluster kaprekar, kaprekar_chain, kaprekar_step, kaprekar_steps, which is the main ambiguity.

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 states that n runs 0–9999 and that a repdigit is rejected, which lets an agent infer the valid input domain and that repdigit checks belong elsewhere. There is no explicit statement of when to pick this over kaprekar_chain or kaprekar_steps, and no mention of the sibling that handles rejection cases.

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