Skip to main content
Glama

ScorpTech x402 Tools

Hamming Nth

hamming_nth
Read-onlyIdempotent

The nth Hamming number, counting from 1. The 1st is 1, the 10th is 12, the 18th is 30, and the 20th is 36. n runs from 1 to 400. 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/hamming-nth

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/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 open-world, so the safety profile is covered. The description adds genuine context beyond that: the return fields (n, value), the per-call price with payment protocol, and a mirror HTTPS endpoint. It doesn't discuss failure modes for out-of-range n, which is why it falls short of a 5.

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 core definition, then examples, then return shape, then pricing and endpoint. Every element earns its place, though the four worked examples are slightly more than strictly necessary for a one-parameter tool.

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 simple single-parameter numeric lookup with no output schema, the definition covers the input domain, the output field names, the cost, and an alternative transport. Nothing an agent needs in order to call it correctly and interpret the response 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 meaning of n, and it does: it defines the counting convention (from 1), supplies four worked n-to-value mappings, and repeats the 1-400 domain. The only gap is not saying what happens at the boundaries or why 400 is the 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?

The description states a specific verb and resource ('The nth Hamming number, counting from 1') and anchors it with worked examples (1st=1, 10th=12, 18th=30, 20th=36). It separates itself from siblings like hamming_count or hamming_index by implying this is a pure index lookup, though it never names an alternative explicitly.

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: the examples and the stated domain of n show what the tool is for, but there is no explicit when-to-use/when-not guidance or reference to sibling tools such as hamming_next or hamming_index. An agent can infer the context but must do the routing itself.

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