Skip to main content
Glama

Hofstadter F

hofstadter_f
Read-onlyIdempotent

Hofstadter's female sequence. F(0) and F(1) are 1, F(5) is 3, and F(7) and F(8) are 5. The male term at the same index is computed first. n runs from 0 to 5000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/hofstadter-f

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, and the description adds genuinely new operational facts beyond them: a per-call price ($0.001 USDC via x402 on Solana) and an equivalent HTTPS endpoint. It also discloses the domain limit (n up to 5000) and the internal dependency on the male term, which explains cost/recursion behavior. It stops short of describing error behavior over threshold or what the response body looks like.

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?

Four tight sentences with the sequence definition and constraints front-loaded, followed by the payment/endpoint boilerplate. Little waste; the HTTPS URL and price are operational necessities rather than 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?

For a single-argument read-only sequence evaluator with no output schema, the definition covers domain, base cases, cost, and an alternate transport. The main omission is that it never states the return type (the integer F(n)) or pagination/output shape, though for a numeric sequence that is largely self-evident.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 partially does by stating 'n runs from 0 to 5000' — though that only restates the schema's own min/max. It never explicitly says n is the zero-based index into the sequence, which the base-case examples only imply. Adequate but not fully compensating for the undocumented parameter.

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 mathematical object ('Hofstadter's female sequence') and pins it down with base values (F(0)=F(1)=1, F(5)=3, F(7)=F(8)=5), so an agent knows exactly which sequence is computed. It does not, however, distinguish itself from the many near-identical siblings such as hof_female, hof_male, hofstadter_m, or hof_pair, leaving ambiguity when several Hofstadter variants are on offer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to call this versus hof_female, hof_male, hofstadter_m, hof_pair, hof_g, or hof_h — the exact siblings an agent would confuse it with. The note that the male term is computed first is an implementation detail, not a routing rule. Only the implicit cost/endpoint information hints at usage context.

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