Skip to main content
Glama

Riordan Sum

riordan_sum
Read-onlyIdempotent

The sum of Riordan numbers from lo through hi inclusive. The sum from R(0) through R(10) is 989. lo must not pass hi. Each index runs from 0 to 80. Past 15 digits the value is a decimal string. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/riordan-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": "riordan_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiYes
loYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only/idempotent/non-destructive, so the bar is lower; the description adds real value beyond them by disclosing the return-type shift past 15 digits (decimal string), the per-call price, and an HTTPS alternative endpoint. It does not discuss error behavior when lo > hi, which is the one remaining behavioral gap.

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 core operation, then constraints, return format, pricing, and transport in short declarative sentences. Each sentence carries a distinct fact; only the example value is arguably optional padding, but it disambiguates indexing.

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 two-integer math tool with no output schema and no parameter descriptions, the definition supplies domain bounds, ordering constraint, indexing base, output-type caveat, and cost/transport details — everything needed to call it correctly and predict the response shape.

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 description coverage is 0%, so the description must carry the load, and it does: both parameters are named, their inclusive-range relationship is defined, the lo<=hi constraint is stated, and the 0..80 domain is repeated (duplicating the schema's min/max but necessary at 0% coverage). The example clarifies 0-based indexing.

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?

States a specific verb+resource with scope: the SUM of Riordan numbers over the inclusive range lo..hi. The range framing implicitly distinguishes it from the single-value sibling 'riordan' and the modular sibling 'riordan_mod', plus the worked example (R(0)..R(10)=989) pins the indexing convention.

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?

Gives validity conditions ('lo must not pass hi', indices 0..80) and a worked example, so usage is implied clearly, but it never names an alternative tool or states when to prefer this over 'riordan' or 'riordan_mod'. No exclusions or negative 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