Skip to main content
Glama

ScorpTech x402 Tools

Hof Q Sum

hof_q_sum
Read-onlyIdempotent

The sum of Hofstadter Q terms Q(1) through Q(n). The sum through Q(10) is 36, and the sum through Q(20) is 129. 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-sum

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

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 readOnly, idempotent, non-destructive, and openWorld, so the safety profile is covered. The description adds materially useful behavior beyond that: the exact return shape (JSON with n, value), a hard input bound (n from 1 to 100000), and, unusually valuable, an explicit price of $0.001 USDC per successful call via x402 on Base or Solana plus an HTTPS endpoint. The only gap is that it doesn't explain what happens on payment failure or invalid n.

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?

Front-loaded with the definition and an illustrative example before range, return shape, and pricing. Every sentence adds information; the only mild redundancy is restating the bounds that the schema already enforces via minimum/maximum.

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-parameter computation with no output schema, the description covers purpose, domain range, return fields, cost, and transport (MCP plus HTTPS endpoint) — everything needed to invoke it and understand the charge. Missing pieces are minor: no definition of the underlying Hofstadter Q recurrence and no routing hint to sibling sequence tools.

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% — the single parameter n has only integer bounds and no prose — so the description must carry the meaning. It does: n is the inclusive upper index of the summation, constrained to 1 to 100000, and the examples illustrate the mapping from n to value. This compensates well for the bare schema, though it never states what ambiguity arises for n outside typical ranges beyond the numeric cap.

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?

States a specific verb and resource: the cumulative sum of Hofstadter Q terms Q(1) through Q(n). The worked examples (sum through Q(10)=36, Q(20)=129) pin down exactly what 'sum' means. It does not explicitly differentiate itself from similar siblings like hof_q or hof_q_prefix, but the 'sum through n' framing is concrete enough to infer the distinction.

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 precise mathematical definition rather than stated: an agent can infer it should call this when it needs a running total rather than an individual term. There is no explicit when-to-use versus hof_q/hof_q_prefix/hofstadter guidance and no exclusions. For a niche math tool the implication is reasonably unambiguous.

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