Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-hamming

Hamming: Calculate the Hamming distance between two equal-length strings (number of positions where characters differ). Provide a (or text) and b (or other). 🆓 5 free trial calls per signed wallet

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": {
      "text": "<text>",
      "other": "<other>"
    },
    "name": "x402-hamming"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
bNo
textYes
otherYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "text",
      +  "other"
      +]
  2. Changed4 schema fields changed
    • removedInput schema / properties / a / description
      Removed value: -"A to process"
    • removedInput schema / properties / b / description
      Removed value: -"B to process"
    • removedInput schema / properties / other / description
      Removed value: -"Other to process"
    • removedInput schema / properties / text / description
      Removed value: -"Text to process"
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; it does disclose the commercial model ("5 free trial calls per signed wallet"), which is useful auth/quota context an agent would otherwise not know, and it defines the return value semantically. It omits failure behavior for unequal-length inputs and says nothing about output type beyond the conceptual definition.

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?

Two compact sentences, front-loaded with the operation and its definition, followed by the parameter instruction and quota note. The emoji marker is slightly noisy but the line still carries substantive information about trial limits.

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 simple pure-function tool with no annotations and no output schema, the description covers purpose, input aliasing, result meaning, and quota. What is missing is error semantics for mismatched lengths and alias precedence, which keeps it just under complete.

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

Parameters3/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 compensate, and it does partially: "Provide a (or text) and b (or other)" reveals that the four properties are two alias pairs rather than four independent inputs, and clarifies that the required pair is text/other. It does not state precedence when both aliases are supplied, nor whether inputs are bytes or arbitrary characters, leaving a real gap.

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 ("Calculate the Hamming distance between two equal-length strings") and even parenthesizes the definition as the count of differing character positions, so the operation is unambiguous. It does not name or distinguish itself from the close sibling x402-hamming-weight, so it falls short of a 5.

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 phrase "two equal-length strings" implicitly conveys the precondition for a valid call, which is genuine usage context. However, there is no explicit when-to-use guidance, no exclusion of near-neighbors like x402-hamming-weight, and no statement of what to do when the inputs differ in length.

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.