Skip to main content
Glama

ScorpTech x402 Tools

Catalan

catalan
Read-onlyIdempotent

The nth Catalan number. C0 and C1 are 1, C2 is 2, C3 is 5, and C_n = binom(2n, n) / (n+1). n runs from 0 to 2048. An optional modulus reduces the term; zero is rejected. 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/catalan

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

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 cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds genuinely new behavior: a per-call price of $0.001 USDC via x402 on Base or Solana, an alternate HTTPS endpoint, and the validation rule that a zero modulus is rejected. With no output schema, the 'Returns JSON with: n, value' line also fills a real 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?

Purpose is front-loaded and the sequence (definition, domain, modulus rule, return shape, price, endpoint) follows an agent's decision order. The seed-value enumeration (C0..C3) borders on redundant given the explicit formula but is not costly.

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-parameter pure-computation tool with no output schema, the definition supplies domain bounds, the modulus quirk, the return fields, and the paid-call mechanics — everything needed to invoke it correctly and anticipate cost.

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: it explains that 'mod' reduces the term and that zero is rejected even though the pattern ^[0-9]{1,200}$ would admit "0" — a meaningful clarification. It does not explain why mod is typed as a string (presumably for large integers) or what the reduced value means, so it stops short of full compensation.

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 names the exact object computed ('The nth Catalan number') and pins it down with both a closed form (binom(2n, n)/(n+1)) and seed values, plus the valid domain 0..2048. An agent can distinguish this from math siblings like binom or fuss_catalan without opening the schema.

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?

Usage is implied by the mathematical definition and the domain bound, but there is no explicit guidance on when to choose this over nearby siblings (binom, fuss_catalan) or when the modulus variant is preferable. No exclusions or alternatives are stated.

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