Skip to main content
Glama

ScorpTech x402 Tools

Hamming Index

hamming_index
Read-onlyIdempotent

Where n sits in the Hamming sequence, counting from 1, or 0 if it is not Hamming. 1 is 1, 12 is 10, 36 is 20, and 7 is 0. 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-index

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

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, open-world, so the safety profile is covered. The description adds value beyond that: per-call pricing ($0.001 USDC via x402 on Base or Solana), an alternate HTTPS endpoint, and the key behavioral quirk that non-Hamming inputs return 0 rather than an error. Return shape is named but the meaning of 'value' versus 'n' is not spelled out.

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 purpose is front-loaded in the first clause, followed by compact examples, the domain bound, return fields, and pricing — each sentence carries distinct information with no filler. It is dense but appropriate for a schema-light, single-parameter tool.

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 arithmetic lookup with no output schema, the description covers semantics, edge case, domain, return fields, and cost/payment requirements. The only soft spot is that 'value' in the return JSON is never explained, leaving a minor gap for a caller parsing the response.

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%, and the only structured information is the integer type plus min/max bounds. The description compensates by explaining that n is the number being located (not an ordinal), restating the valid range, and demonstrating valid and invalid inputs by example, which is meaningfully more than the schema alone.

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 operation — returning the 1-based position of n within the Hamming sequence — and the worked examples (1→1, 12→10, 36→20, 7→0) make the inverse-lookup semantics concrete. It is distinguishable from siblings like hamming, hamming_nth or hamming_count by virtue of the examples, though it never names an alternative directly.

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?

The domain constraint (n from 1 to 1000000000000) and the sentinel behavior (0 when n is not Hamming) implicitly tell the agent when this tool applies and what a zero result means. There is no explicit guidance on when to prefer hamming_nth, hamming_count, or hamming instead, so routing between the many math siblings is left to inference.

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