Skip to main content
Glama

ScorpTech x402 Tools

Arithmetic Sum

arithmetic_sum
Read-onlyIdempotent

The sum of the arithmetic numbers that are at most n. Through 1 it is 1, through 6 it is 15, through 15 it is 75, and through 20 it is 131. n runs from 1 to 5000. 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/arithmetic-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": "arithmetic_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description still adds genuinely useful behavioral facts the annotations do not: the response shape (n, value), the explicit price ($0.001 USDC per successful call via x402 on Base or Solana), and a direct HTTPS endpoint. Those are the kind of cost and payment prerequisites an agent must know before calling a paid external service.

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 short and front-loaded: definition first, then examples, then domain, return shape, and pricing. Every clause is doing a job, although the inconsistent examples arguably add confusion rather than clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

It covers the important non-obvious parts for a paid remote tool: return shape, cost, payment rail, and an alternate endpoint. What is left unresolved is the core semantics, since no formula is given and the sample values appear mutually inconsistent, so an agent cannot predict the value for a given n.

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?

With a single parameter and 0% schema description coverage, the description carries the burden, and it does partly meet it by clarifying that n is an inclusive upper bound ('at most n'). But the stated range of 1 to 5000 merely restates the schema's minimum and maximum, and it never explains the unit or type of n or what 'value' contains.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

It names a specific operation ('the sum of the arithmetic numbers that are at most n') and gives worked examples to pin down the sequence. However, 'arithmetic numbers' is unexplained jargon, and the examples are hard to reconcile with each other (through 6 is 15 but through 15 is 75, which does not look like a consistent growth pattern), so an agent cannot be fully certain what is being summed. It also does not differentiate itself from the many sibling *_sum tools beyond its name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to choose this over the sibling sum tools, and no prerequisites or exclusions are stated. The only context given is the numeric domain of n, which is a constraint rather than usage guidance.

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