Skip to main content
Glama

ScorpTech x402 Tools

Calkin Wilf

calkin_wilf
Read-onlyIdempotent

The Calkin-Wilf tree. Give n to get the nth positive rational, starting at 1/1, or give a reduced num and den to get its index. The two answers must agree when both are sent. An unreduced fraction is rejected. Returns JSON with: n, num, den. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/calkin-wilf

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calkin_wilf"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
denNo
numNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses the rejection rule for unreduced fractions, the agreement requirement, and — importantly — the payment model ($0.001 USDC per successful call via x402 on Base or Solana) plus an alternate HTTPS endpoint. Cost and payment/auth requirements are exactly the kind of context annotations cannot convey.

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 purpose is front-loaded in the first sentence and the input rules follow; payment and endpoint details are appended compactly. It is slightly dense with clauses, but no sentence is filler.

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 states the return shape (n, num, den), covers both input modes, error conditions, and cost. The only gap is behavior when neither or only one of num/den is provided, which an agent might reasonably want to know.

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% (the schema only carries numeric bounds), so the description must carry the meaning, and it does: n is the index into the tree, num/den are the reduced numerator and denominator, and unreduced input is rejected. It does not explain the interaction when only one of num/den is supplied, which keeps it below a 5.

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 Calkin-Wilf tree and states both directions of the mapping explicitly: an index n yields the nth positive rational starting at 1/1, and a reduced num/den yields its index. That is a specific verb-plus-resource statement an agent can act on 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It says clearly which inputs to supply for each direction ('give n' vs 'give a reduced num and den') and imposes the constraint that the two answers must agree when both are sent. What is missing is what happens when neither is supplied, but the mutual-consistency and reduced-form rules give strong usage context without any obvious sibling to route against.

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