Skip to main content
Glama

ScorpTech x402 Tools

Digit Power Sum

digit_power_sum
Read-onlyIdempotent

The sum of the digits of n each raised to k. 0 to any k from 1 up is 0. 153 to the 3 is 153. 4150 to the 5 is 4150, and 4150 to the 4 is 882. n runs from 0 to 999999999999999 and k runs from 1 to 15. Returns JSON with: n, k, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/digit-power-sum

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>",
      "k": "<k>"
    },
    "name": "digit_power_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes
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 readOnlyHint, idempotentHint, destructiveHint=false, so safety is covered; the description adds genuinely new behavioral facts: the output field set (n, k, value), per-call pricing of $0.001 USDC via x402, and an HTTPS fallback endpoint. It does not describe error behavior for out-of-range inputs (the schema min/max carry that) or latency, keeping it short of a 5. The openWorldHint=true annotation sits oddly on a pure computation but the description does not contradict it.

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?

Dense but front-loaded: the core definition comes first, then edge cases, then worked examples, then range, return shape, and commerce details. The 'Returns JSON with: n, k, value' sentence is somewhat redundant since two of the three echo the inputs, but the pricing/endpoint tail is operationally necessary for an x402 tool.

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 two-parameter, no-output-schema tool, the description supplies the formula, edge cases, domain bounds, and the shape of the response, so an agent can call it correctly without opening anything else. Only failure/payment-failure behavior and precision notes are missing, which is a minor gap given the tool's simplicity.

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 and largely does: it explains that n is the input number and k the exponent applied to each digit, restates both domains (0–999999999999999 for n, 1–15 for k) matching the schema bounds, and pins down edge cases such as 0 to any k being 0. It does not add format hints or clarify whether leading zeros or large-integer precision matter.

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 sum of the digits of n each raised to k" is a precise verb-and-resource definition, reinforced by worked examples (153 to the 3 is 153; 4150 to the 4 is 882) that make the operation unambiguous. It never names digit_sum, the obvious sibling for the k=1 case, so differentiation is inferential rather than explicit.

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: an agent must read the formula and examples to realize this is a digit power sum (Armstrong/Narcissistic computation). There is no statement of when to pick this over digit_sum, no note that k=1 reduces to an ordinary digit sum, and no guidance beyond the stated domain limits.

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