Skip to main content
Glama

ScorpTech x402 Tools

Negabinary Decode

negabinary_decode
Read-onlyIdempotent

The integer written by a base -2 bit string. "0" is 0, "110" is 2, "100" is 4, and "11010" is 6. A character other than 0 or 1, or a leading zero, is rejected. Returns JSON with: bits, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/negabinary-decode

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": {
      "bits": "<bits>"
    },
    "name": "negabinary_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
bitsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/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 openWorld, so the safety profile is covered. The description adds genuinely new behavior: strict input validation (invalid characters and leading zeros are rejected), the exact response keys (bits, value), and a per-call price plus an alternate HTTPS endpoint—details an agent would otherwise not know.

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?

The core semantics and examples are front-loaded and terse, and each sentence carries information. The trailing pricing/endpoint sentence is useful but feels bolted on rather than integrated into the flow.

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 single-parameter conversion tool with no output schema, the description covers input format, validation rules, return keys, and cost, which is nearly everything needed to call it correctly. Only the length limit and the shape of an error response are left unaddressed.

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 parameter's meaning—and it does, explaining that 'bits' is a base -2 bit string, giving three example mappings, and stating that anything other than 0/1 or a leading zero is invalid. The only gap is that it does not surface the 1-40 length bound from the schema.

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 the resource and direction concretely—converting a base -2 bit string into its integer value—and pins it down with worked examples ("110" is 2, "11010" is 6), which disambiguates it from encode-oriented siblings like negabinary. It lacks an explicit verb in the first sentence and never names a sibling directly, so it stops short of the top tier.

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: no when-to-use, when-not-to-use, or alternative tool is mentioned, so the agent must infer that this is the bits-to-integer direction. The rejection rule for non-0/1 characters and leading zeros does partially function as a precondition hint.

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