Skip to main content
Glama

ScorpTech x402 Tools

Negabinary Len

negabinary_len
Read-onlyIdempotent

How many digits the base -2 writing of n uses. 0 uses 1, 4 uses 3, and 6 uses 5. n runs from 0 to 999999999999. Returns JSON with: n, 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-len

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the description's job is supplementary context, and it delivers: it discloses the response keys (n, value), the cost ($0.001 USDC per successful call via x402 on Base or Solana), and an equivalent HTTPS endpoint. It stops short of describing error or payment-failure behavior, but for a pure deterministic function that is a minor gap.

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 sentence and examples are front-loaded and compact, and every sentence carries information. The pricing and alternate-endpoint boilerplate is useful for invocation but is generic across this API family and takes up roughly half the text.

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 pure math function with no output schema, the description supplies the return keys, the valid domain, and concrete examples, which is enough to call it correctly. Only the lack of stated behavior on out-of-range or non-integer input keeps it from being fully 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?

There is a single parameter with 0% schema description coverage, so the description must carry the load. It does clarify that n is the input and restates the domain 0 to 999999999999, but that range is already encoded as minimum/maximum in the schema, so the added meaning beyond structured data is modest. The examples indirectly convey that n is the value being measured, but nothing explains representation edge cases.

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 gives a specific verb-like statement of what is computed — 'how many digits the base -2 writing of n uses' — and anchors it with three concrete examples (0→1, 4→3, 6→5). That makes the result type unambiguous. It never explicitly contrasts itself with near-siblings like negabinary_bits or negabinary_digit, so sibling differentiation is left to name inference.

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: an agent can infer this is the digit-count query for a negabinary representation, and the worked examples show the expected mapping. There is no explicit 'use this instead of X when...' guidance and no note about invalid or out-of-range input handling.

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