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. 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/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?

The annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral facts beyond them: a per-call price of $0.001 USDC via x402 on Base or Solana, the response shape (n, value), and the valid n range.

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 definition is dense and front-loaded: term definition first, then recurrence, then examples, then range, then return shape and access/pricing. Every sentence carries information an agent would otherwise have to guess.

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?

With one parameter, no output schema, and terse annotations, the description fills every remaining gap — mathematical semantics, valid range, example outputs, response fields, and payment requirements. Nothing needed to call it correctly is missing.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% — the schema only declares an integer between 1 and 100000 with no meaning attached. The description fully compensates by defining n as the term index, restating the valid range, and giving concrete example values so the agent can sanity-check results.

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 a specific resource ('the nth Hofstadter Q term') and backs it with the exact recurrence and sample values (Q(10)=6, Q(16)=9), so an agent knows exactly what it computes. It does not explicitly distinguish itself from siblings like hof_q_prefix or hof_q_sum, leaving that inference to the agent.

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 context is implied by the single-term definition and the stated input domain, and the access details (x402 payment, HTTPS endpoint) make invocation practical. There is no explicit when-to-use/when-not guidance or pointer to alternative sibling tools for prefixes or sums.

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