Skip to main content
Glama

ScorpTech x402 Tools

Negabinary Digit

negabinary_digit
Read-onlyIdempotent

The base -2 digit of n in place, counting from 0 at the right. For 6, which is "11010", place 0 is 0, place 1 is 1, and place 4 is 1. A place past the end is 0. n runs from 0 to 999999999999 and place runs from 0 to 60. Returns JSON with: n, place, 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-digit

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>",
      "place": "<place>"
    },
    "name": "negabinary_digit"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
placeYes

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?

Beyond the readOnly/idempotent annotations, the description discloses key behavior: out-of-range place returns 0 ("a place past the end is 0"), the exact return payload (n, place, value), a per-call price of $0.001 USDC via x402, and an alternate HTTPS endpoint. The payment requirement is the kind of operational detail annotations can't convey. It stops short of stating error behavior for invalid n/place.

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?

Front-loaded with the core definition, then a compact worked example, then edge case, return shape, and pricing. Each sentence adds information; the HTTPS endpoint line is slightly operational clutter but still useful for a paid 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?

No output schema exists, but the description enumerates the returned fields (n, place, value), covers the out-of-range edge case, and states cost and transport. For a two-parameter pure function this is close to complete; only failure modes for out-of-range n or negative inputs are 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?

With 0% schema description coverage, the description must carry the parameter burden, and it does: it explains that place is counted from 0 at the right and works through n=6 ("11010") with place 0, 1, and 4 values. That worked example removes nearly all ambiguity about indexing. Bounds are already in the schema, so no extra credit there.

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 base -2 digit of n in place, counting from 0 at the right" names a specific operation and output (a single digit at a position), which is clearly narrower than a full negabinary representation tool. It doesn't name a sibling explicitly, but the operation itself is unambiguous.

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 description makes clear what the tool computes but gives no explicit when-to-use guidance or routing versus related tools (e.g. negabinary, negabinary_bits, negabinary_decode). Usage is inferable from the operation, which is adequate but leaves the agent to choose between siblings on its own.

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