Skip to main content
Glama

ScorpTech x402 Tools

Hofstadter Conway

hofstadter_conway
Read-onlyIdempotent

Conway's Hofstadter sequence. a(1) and a(2) are 1, a(6) is 4, a(10) is 6, and a(16) is 8. The rule is a(n) = a(a(n-1)) + a(n-a(n-1)). n runs from 1 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-conway

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_conway"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. It stops short of explaining failure or payment-rejection behavior.

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 sequence name and rule are front-loaded, followed by range, return shape, and pricing/endpoint. The example terms (a(6)=4, a(10)=6, a(16)=8) are slightly more than strictly needed but serve as useful sanity checks. No filler sentences.

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 compensates by stating the return payload is JSON with n and value, and it defines the sequence completely enough to verify results. Combined with pricing and an alternate transport, an agent has what it needs to call and interpret it, aside from error/edge-case behavior.

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 the parameter, and it does: n is the 1-based index of the sequence running from 1 to 5000, which gives meaning beyond the bare integer/min/max in the schema. It does not say whether n is validated client-side or what an out-of-range n returns.

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 names the specific sequence and states the exact recurrence a(n) = a(a(n-1)) + a(n-a(n-1)) plus base cases, so an agent knows precisely what is computed. It does not distinguish itself from near-name siblings like hof_conway, hofstadter, or hof_conway_sum, which is the only thing keeping it from a 5.

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 rather than stated: the sequence definition and the n range of 1 to 5000 make it obvious this is for fetching a single term of this specific sequence. There is no when-to-use statement, no exclusion of the similarly named siblings, and no guidance on what happens if n is outside the range.

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