Skip to main content
Glama

ScorpTech x402 Tools

Digit Sum

digit_sum
Read-onlyIdempotent

The sum of the decimal digits of an integer, ignoring the sign. 199 sums to 19. The decimal has no leading zeros. A malformed integer is rejected. Returns JSON with: 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-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>"
    },
    "name": "digit_sum"
  }
}

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 declare readOnly/idempotent/non-destructive, so the description earns credit for what they do not say: malformed integers are rejected, the result is returned as JSON with a 'value' field, and every call is metered at $0.001 USDC via x402 with a plain HTTPS alternative. The payment/auth model is exactly the kind of context annotations cannot convey. It stops short of saying whether failed or rejected calls are billed.

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?

Front-loaded with the definition and example, then constraints, return shape, and commercial terms in a natural order; nearly every clause carries information. The 'The decimal has no leading zeros' sentence is slightly ambiguous and is the one line that could be tightened.

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 one parameter, no output schema, and no nested objects, the description covers what an agent needs: what it computes, input validity, the return key, and the cost/transport model. Only minor details such as digit-length limits and billing on failure are left out, and those are low-risk for this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the load, and it does only partly: it clarifies that the input is an integer carried as a string whose sign is ignored and that malformed input fails, but it never states the 200-digit ceiling or the accepted sign/leading-zero format that the regex encodes. Useful meaning is added, yet the validation envelope stays implicit.

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 the specific operation (sum of decimal digits), the operand type (an integer), and the sign rule, then pins it down with a worked example ('199 sums to 19'). That is enough to separate it from neighbors like digit_power_sum or alt_sum without opening a schema.

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 by the mathematical definition; there is no explicit statement of when to pick this over siblings such as alt_sum or digit_power_sum, and no exclusions. For a self-describing arithmetic primitive that is acceptable, but it adds no routing help.

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