Skip to main content
Glama

ScorpTech x402 Tools

Gray Bits

gray_bits
Read-onlyIdempotent

The binary reflected Gray code of n, written in exactly width bits. Bit 0 is on the right. n must be smaller than 2^width. A width that cannot hold n is rejected. Returns JSON with: n, width, bits. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/gray-bits

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>",
      "width": "<width>"
    },
    "name": "gray_bits"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
widthYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description adds substantive context beyond that: a pay-per-call model ($0.001 USDC via x402 on Base or Solana), an equivalent HTTPS endpoint, validation/rejection behavior, and the exact return keys. The cost/payment requirement is the kind of detail annotations cannot convey. It stops short of describing response ordering or failure payloads.

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 definition leads with the computation and the constraint, then the return shape, and puts pricing/endpoint metadata last — a sensible front-loading. Every sentence carries information, though the HTTPS-alternate sentence is somewhat appended rather than integrated.

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?

For a two-parameter deterministic transform with rich annotations and no output schema, the description covers the computation, the validity precondition, the bit-ordering convention, and the return keys, which is close to sufficient. The main remaining gap is disambiguation from the gray_encode/gray_decode siblings and any statement of output format beyond the key list.

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?

With 0% schema description coverage, the schema gives only pattern and range bounds, so the description must carry meaning. It clarifies width's effect ('written in exactly width bits'), the ordering convention ('Bit 0 is on the right'), and the relational constraint n < 2^width. It does not explain that n is supplied as a decimal string and may carry up to 200 digits, nor what the 1–256 width bound means practically.

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 names a precise computation ('binary reflected Gray code of n, written in exactly width bits'), which is far more specific than the name 'gray_bits' alone. It does not, however, distinguish itself from the sibling tools gray_encode/gray_decode/gray_flip, so an agent must infer the boundary.

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 only implied: the validity rule 'n must be smaller than 2^width' and the rejection behavior tell the agent when a call will fail, but there is no explicit guidance on when to pick this over gray_encode or gray_decode. No exclusions or prerequisites beyond the width constraint are given.

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