Skip to main content
Glama

ScorpTech x402 Tools

Hof Q

hof_q
Read-onlyIdempotent

The nth Hofstadter Q term. Q(1) and Q(2) are 1, and Q(n) = Q(n-Q(n-1)) + Q(n-Q(n-2)). Q(10) is 6, and Q(16) is 9. n runs from 1 to 100000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/hof-q

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), so the description earns credit by adding genuinely new operational context: the call is metered at $0.001 USDC per *successful* call via x402 on Solana, and the same function is reachable over HTTPS at a named endpoint. It does not describe the response shape, but the tool is a single scalar computation.

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 short sentences, front-loaded with purpose and definition, then examples, then domain bound, then cost/transport. Each sentence carries distinct information with no repetition, though the price and endpoint sentences could be trimmed slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, single-scalar-return math tool with no output schema, the description supplies everything an agent needs: the definition, verified example outputs, the valid input range, and the payment/transport model. Nothing required to invoke it correctly is missing.

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 description coverage is 0%, so the description must carry the load — and it does, defining n as the sequence index, stating 'n runs from 1 to 100000' (matching the schema's min/max), and showing example values that let the agent sanity-check its input. Only format/typing details are left to the schema.

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?

States a specific resource ('the nth Hofstadter Q term') and pins down the exact sequence variant with the recurrence plus concrete ground-truth values Q(10)=6 and Q(16)=9, which separates it from the many sibling Hofstadter tools (hof_g, hof_h, hof_f, hof_male/hof_female, hof_conway). The word 'nth' also implicitly distinguishes it from hof_q_prefix and hof_q_sum.

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: an agent can infer the tool is for computing a single term at index n, and the 1..100000 domain tells it what inputs are valid. But there is no explicit when-to-use/when-not guidance and no referral to the obvious alternatives hof_q_prefix, hof_q_sum, or the other Hofstadter sequence tools.

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