Skip to main content
Glama

ScorpTech x402 Tools

Hamming Count

hamming_count
Read-onlyIdempotent

How many Hamming numbers are at most n. Through 1 there is 1, through 7 there are 6, through 10 there are 9, through 12 there are 10, and through 30 there are 18. n runs from 1 to 1000000000000. 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-count

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds behavior the annotations do not: a $0.001 USDC per-successful-call cost via x402 on Base or Solana, a JSON return shape (n, value), and an equivalent HTTPS endpoint. That pricing/payment detail is the kind of thing an agent cannot get from structured fields.

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 purpose, then bounds, then return shape and price. The five-example enumeration is longer than strictly necessary and slightly slows scanning, but each example is short and the rest is tight.

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 one-parameter deterministic math function with no output schema, the definition covers input domain, return keys, cost, and transport alternative. Minor gaps: it never explains what a Hamming number is, and it does not say what happens on a failed or unpaid call, though 'per successful call' hints at it.

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 carries the burden, and it does: 'at most n' defines the counting semantics and the five concrete n-to-value mappings show the parameter's effect better than any field description could. The stated 1..1,000,000,000,000 range duplicates the schema's min/max, so that sentence adds little.

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?

The opening sentence states a specific verb-resource pair: counting Hamming numbers up to a bound n. The worked examples (through 7 there are 6, through 30 there are 18) pin down exactly what is being counted, which separates it from siblings like hamming_nth or hamming_index even without naming them.

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 upper/lower bound make the call pattern obvious, but there is no explicit when-to-use versus when-not guidance or mention of an alternative sibling. 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