Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-two-complement

Two Complement: Returns the two's complement of an integer at a requested bit width 🆓 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": {
      "value": "<value>"
    },
    "name": "x402-two-complement"
  }
}

Input Schema

NameRequiredDescriptionDefault
bitsNo
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "value",
      -  "bits"
      -]New value: +[
      +  "value"
      +]
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "value"
      -]New value: +[
      +  "value",
      +  "bits"
      +]
  3. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "value"
      +]
  4. Changed2 schema fields changed
    • removedInput schema / properties / bits / description
      Removed value: -"Bits to process"
    • removedInput schema / properties / value / description
      Removed value: -"Value to process"
  5. Changed2 schema fields changed
    • addedInput schema / properties / bits
      Added value: +{
      +  "description": "Bits to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / value
      Added value: +{
      +  "description": "Value to process",
      +  "type": "string"
      +}
  6. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a real behavioral trait beyond the schema: access requires a signed wallet with 5 free trial calls, which tells the agent there is an auth/payment gate before invocation. It stops short of describing the result format (binary string vs decimal vs hex) or how out-of-range values are handled.

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?

A single front-loaded sentence states the operation first and the pricing note last, with no filler. The emoji pricing tag is slightly noisy but short.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description is the only source of truth, and it leaves the return representation undefined — an agent cannot tell whether it receives a bit string, a decimal integer, or a hex value. For a simple two-parameter math tool this is close to adequate, but the missing output format and the missing bits default are meaningful gaps.

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 coverage is 0% and both parameters are typed only as strings with no descriptions, so the description must compensate. It does map loosely onto both: "value" is the integer and "bits" is the requested bit width. It adds no format detail such as whether value is decimal or hex, whether bits has a default, or what width is used when bits is omitted.

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?

"Returns the two's complement of an integer at a requested bit width" names a specific operation and the two inputs it consumes, so an agent can tell it computes a bit-level numeric conversion rather than, say, arithmetic or formatting. It does not need sibling differentiation because the x402 utility catalog is a flat list of distinct operations, but the phrasing assumes the agent already knows what two's complement output looks like.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to prefer this over other numeric/bit tools, no prerequisites, and no note about what happens when the value exceeds the requested width. The only contextual sentence is a pricing line about free trial calls, which is not usage guidance.

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