Skip to main content
Glama

ScorpTech x402 Tools

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. 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-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.7/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and open-world behavior, so the bar is lower. The description adds meaningful context beyond them: the return shape (JSON with n and value), a per-call price of $0.001 USDC via x402 on Base or Solana, and an alternate HTTPS endpoint — payment requirements that an agent would otherwise not know.

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 description is compact and front-loads the sequence identity plus base values before the range, return shape, and pricing. Every sentence carries factual information; the list of base cases is slightly verbose but useful for verifying results and disambiguating the sequence.

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 one integer parameter, no output schema, and full annotation coverage, the description supplies what is needed: domain/range of n, returned fields, and payment/transport details. Nothing essential for calling the tool correctly appears to be missing.

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 meaning, and it partially does by stating 'n runs from 0 to 5000' and implying n is the sequence index. The bounds duplicate the schema's minimum/maximum, and no additional explanation of what the value represents at edge cases is given.

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 defines it through base cases, so an agent knows this returns F(n) for a given index. It lacks an explicit verb phrase like 'compute the nth term', but the returned fields (n, value) make the operation unambiguous and distinguish it from the male counterpart it references.

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 sequence definition rather than stated: there is no explicit 'use this when...' guidance and no routing advice relative to siblings such as hofstadter_m, even though the male term is mentioned. An agent can infer the purpose from the definition but must decide on its own when this tool is the right choice.

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