Skip to main content
Glama

ScorpTech x402 Tools

Leonardo Sum

leonardo_sum
Read-onlyIdempotent

The sum of Leonardo numbers from lo through hi inclusive. The sum from L(0) through L(5) is 34. lo must not pass hi. Each index runs from 0 to 4096. Past 15 digits the value is a decimal string. Returns JSON with: lo, hi, count, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/leonardo-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": {
      "lo": "<lo>",
      "hi": "<hi>"
    },
    "name": "leonardo_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiYes
loYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description adds substantial context those annotations cannot carry: a per-call price ($0.001 USDC via x402 on Base or Solana), an alternate HTTPS endpoint, the exact return object shape (lo, hi, count, value), and the important boundary rule that past 15 digits the value is a decimal string. The numeric-format caveat is exactly the kind of thing that prevents downstream parsing errors.

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, then output, then pricing — a sensible order with no filler sentences. Minor waste in repeating the 0–4096 range already encoded in the schema, but overall dense and readable.

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

Completeness5/5

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

There is no output schema, and the description fills that gap by enumerating the returned fields; it also covers cost, transport, and large-value serialization. For a two-parameter read-only computation tool, nothing an agent needs to invoke it or parse the result is missing.

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 parameter meaning, and it does: lo/hi are inclusive bounds, each is an index into the Leonardo sequence, and lo must not exceed hi. It restates the 0–4096 bounds already present as schema min/max, which is mild redundancy, but the inclusivity and ordering semantics are genuine additions.

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?

Names a specific resource (Leonardo numbers in the range lo..hi) and operation (sum), and anchors it with a concrete worked example ('sum from L(0) through L(5) is 34'). That example distinguishes it immediately from the sibling *_sum and leonardo_* tools, which sum different sequences or return different values.

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?

Preconditions are stated clearly ('lo must not pass hi', 'each index runs from 0 to 4096'), which tells the agent when a call would be invalid. However, there is no guidance on when to choose this over the sibling leonardo_fib / leonardo_index / leonardo_sum-style tools, so alternative selection is left to inference from the name alone.

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