Skip to main content
Glama

ScorpTech x402 Tools

Hofstadter

hofstadter
Read-onlyIdempotent

Hofstadter G. G(0) is 0, G(1) and G(2) are 1, G(5) is 3, and G(10) is 6. The rule is G(n) = n - G(G(n-1)). n runs from 0 to 5000. 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/hofstadter

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, openWorld, and non-destructive behavior, so the safety profile is covered. Beyond that, the description adds genuinely non-structured information: the return shape (JSON with n, value), the per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint — payment requirements are exactly the kind of operational context an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is telegraphic but front-loaded with the identifying rule and examples, then the return shape, then cost and transport. Every sentence carries distinct information — no restatement of the name and no filler — which is appropriate for a single-parameter numeric tool.

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?

For a one-parameter tool with no output schema, the description covers the computation, the valid input domain, the returned keys, and even the payment model and alternate endpoint. The only omission is error/edge behavior at n > 5000, which the schema's maximum partially covers.

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 schema documents nothing about what 'n' means, but the description compensates by bounding n to 0–5000 and illustrating the index-to-value mapping with several worked examples. It adds real meaning beyond the bare integer field, though it never explicitly states what happens at the upper bound or on invalid input.

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 pins down exactly what is computed by giving the recurrence G(n) = n - G(G(n-1)) plus concrete sample values (G(0)=0, G(5)=3, G(10)=6), so there is no ambiguity about which sequence term is returned. It does not explicitly name sibling sequences such as hofstadter_conway or hofstadter_m, so an agent must rely on the formula rather than a stated contrast.

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 only implied: the definition and the stated domain 'n runs from 0 to 5000' make clear when this tool is applicable, but there is no explicit when-to-use or when-not-to-use guidance and no routing to the many hofstadter_* siblings. An agent must infer the choice from the mathematical definition alone.

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