Skip to main content
Glama

ScorpTech x402 Tools

Leonardo Fib

leonardo_fib
Read-onlyIdempotent

The Leonardo identity L(n) = 2*F(n+1) - 1. F is the Fibonacci sequence with F(0) = 0 and F(1) = 1. For n = 10, L is 177 and F(11) is 89, so the difference is 0. n runs from 0 to 4096. Past 15 digits a term is a decimal string. Returns JSON with: n, value, fib, delta. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/leonardo-fib

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_fib"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive behavior, and the description adds real context on top: large values past 15 digits come back as decimal strings and payment is per successful call via x402 on Base or Solana. It falls short only on what `delta` actually represents, which the example muddles.

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 formula and convention, then range, output shape, pricing and endpoint. The n=10 example is the weak spot: 'the difference is 0' is opaque and arguably wrong-looking (177 vs 89), adding noise rather than clarity.

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 no output schema, the description correctly enumerates the JSON keys (n, value, fib, delta) and the big-integer string rule, plus payment mechanics. The one material omission is the semantics of `delta`, the only field an agent could misinterpret.

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?

The schema has 0% description coverage for `n`, so the description must compensate, and it does: it states the meaning of n (index into the Leonardo identity), the valid range 0-4096, and how large values are returned. It stops short of, say, error behavior for out-of-range input.

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?

The description gives the exact formula L(n) = 2*F(n+1) - 1 and pins the Fibonacci convention (F(0)=0, F(1)=1), so the agent knows precisely which value is computed. That is enough to separate it from siblings like leonardo_index or leonardo_sum even without naming them.

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?

It supplies usable constraints - n in [0, 4096], a cost of $0.001 USDC, and an equivalent HTTPS endpoint - but never says when to pick this over the other leonardo_* tools. Usage is only implied, so this is adequate but has a visible gap.

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