Skip to main content
Glama

ScorpTech x402 Tools

Riordan

riordan
Read-onlyIdempotent

The nth Riordan number. R(0) is 1, R(1) is 0, and (n+1)R(n) = (n-1)(2R(n-1) + 3R(n-2)) for n at least 2. R(4) is 3, and R(6) is 15. n runs from 0 to 80. 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/riordan

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the valid range, output format as JSON with n and value, the precision behavior past 15 digits, pricing, and an HTTPS endpoint. These are substantive behavioral details that help an agent invoke and budget the call correctly.

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 front-loaded with the purpose and recurrence, then moves to range, output shape, and cost. It is dense but readable; the only minor redundancy is repeating the 0-to-80 range already enforced by the schema.

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?

For a single-parameter mathematical function with no output schema, the description is complete: it defines the function, valid input range, output JSON fields, precision behavior, and payment details. Nothing essential for a correct call appears to be 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?

Schema coverage is 0%, so the description must carry parameter meaning. It explains that n is the index of the Riordan number, gives the valid range, and provides example values such as R(0)=1 and R(4)=3, which compensates well for the bare schema.

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 specifically defines the tool as returning the nth Riordan number and gives the recurrence plus concrete examples, so the operation is unambiguous. It does not explicitly distinguish itself from sibling tools such as riordan_mod or riordan_sum, but the mathematical definition itself is clear.

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?

The description gives no explicit when-to-use guidance and never names alternatives or exclusions. An agent can infer that this computes a Riordan number, but there is no guidance about when to choose this tool instead of the mod or sum siblings.

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