Skip to main content
Glama

ScorpTech x402 Tools

Leonardo

leonardo
Read-onlyIdempotent

The nth Leonardo number. L(0) and L(1) are 1, and L(n) = L(n-1) + L(n-2) + 1. L(4) is 9, and L(10) is 177. An optional modulus reduces the term, and zero is rejected. n runs from 0 to 4096. Past 15 digits the value is a decimal string. 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/leonardo

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": "leonardo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent safety profile, and the description adds a lot beyond them: a $0.001 USDC x402 payment requirement per successful call, an alternate HTTPS endpoint, the JSON return shape (n, value), and the edge case that values beyond 15 digits come back as a decimal string. The payment/pricing disclosure is exactly the kind of operational context annotations cannot express.

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?

Information is front-loaded with the definition and examples first, then constraints, then return shape, pricing and endpoint. Every sentence carries content, though the single dense paragraph mixes mathematical, formatting and billing concerns without visual separation.

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 computation tool with no output schema, the definition covers inputs, domain bounds, output shape, numeric-to-string promotion, and cost. What is missing is error behavior (what a failed/rejected call returns and whether it is still billed) and confirmation of the return type when the value fits in 15 digits.

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 carries the burden and mostly does: 'mod' is explained as an optional modulus that reduces the term, and the n bound matches the schema. The phrase 'zero is rejected' is ambiguous about whether it applies to n or mod (the schema permits n=0), which leaves a small gap for an agent to resolve.

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 mathematical object and pins it down with the recurrence L(n) = L(n-1) + L(n-2) + 1 plus seed values and worked examples (L(4)=9, L(10)=177), which genuinely distinguishes it from a Fibonacci-style sibling. It stops short of explicitly saying 'compute/return' or naming the sibling leonardo_mod that it partly overlaps with.

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?

The domain (n from 0 to 4096) and the optional modulus are stated, which implies when the mod parameter applies, and 'zero is rejected' hints at an input constraint. But there is no explicit when-to-use or when-not-to-use guidance relative to leonardo_mod, leonardo_index or leonardo_sum, so the agent must infer routing.

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