Skip to main content
Glama

ScorpTech x402 Tools

Thue Cube

thue_cube
Read-onlyIdempotent

Find a cube in a 0/1 string, a block xxx. 000 is a cube at index 0 of length 1. A Thue-Morse prefix has no cube. An empty string or a character other than 0 or 1 is rejected. The string stops at 512 characters. Returns JSON with: cube, at, len. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/thue-cube

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": "thue_cube"
  }
}

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 cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), yet the description still contributes real context beyond them: rejection of empty and non-binary input, the 512-character cap, the returned JSON keys (cube, at, len), a per-call price of $0.001 USDC via x402, and an equivalent HTTPS endpoint. The notable gap is the no-cube case — it states a Thue-Morse prefix has no cube but never says whether the call then fails or returns empty/null fields.

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?

Information is front-loaded: the operation and its definition come first, then input constraints, then the return shape, then pricing and endpoint. Nearly every sentence carries a distinct fact. Minor friction comes from the compressed phrasing '000 is a cube at index 0 of length 1,' which requires the reader to infer that 'length' refers to the block, not the cube.

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?

With no output schema, the description correctly takes on the burden of describing the return payload (cube, at, len), and it also discloses cost and an alternate transport, which an agent needs before paying for a call. For a one-parameter deterministic search this is close to sufficient; the missing piece is explicit behavior on the no-cube outcome, which determines how the agent should interpret the response.

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% and the single parameter 'bits' documents only type and maxLength, so the description must carry the semantics — it does, explaining that the string must consist of 0s and 1s, that empty input is rejected, and that length is capped at 512. It adds meaning the schema cannot express (alphabet restriction, error behavior), though it does not discuss the cost implication of long inputs.

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 concrete verb and resource plus a definitional gloss: 'Find a cube in a 0/1 string, a block xxx,' and anchors it with the worked example '000 is a cube at index 0 of length 1.' It also names the non-existence case ('A Thue-Morse prefix has no cube'). It never contrasts itself with near siblings such as cube_min, cube_ways, or thue_prefix, so the agent must infer the distinction from names alone.

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: the agent can tell this applies when searching a binary string for any cube, but there is no explicit when-to-use, when-not-to-use, or 'use X instead' routing to the many cube_*/thue_* siblings. The input validity rules (empty string rejected, characters other than 0/1 rejected, 512-char ceiling) are the closest thing to guidance, and they are genuinely useful for avoiding bad calls.

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