Skip to main content
Glama

ScorpTech x402 Tools

Two Cubes

two_cubes
Read-onlyIdempotent

How many ways n is a sum of two positive cubes, ignoring order and allowing the two cubes to be equal. 2 has 1, 9 has 1, 91 has 1, and 1729 has 2. n runs from 0 to 100000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/two-cubes

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, and the description adds real value beyond them: the valid domain of n (0–100000), a per-successful-call price of $0.001 USDC via x402 on Solana, and an equivalent HTTPS endpoint. It does not describe what happens on an out-of-range n, which is the one behavioral 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 mathematical definition is front-loaded in the first sentence, examples follow as compact confirmation, then boundary and payment details. Every sentence carries information, with the possible exception of the fully redundant range restatement already present in the schema's minimum/maximum.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter deterministic math tool with no output schema, this is complete: the operation is defined rigorously, the domain is bounded, the return value is demonstrated by example (a count), and payment/auth requirements are disclosed. An agent has everything needed to call it correctly.

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 schema description coverage at 0%, the description must carry the meaning of n, and it does: n is the integer whose two-cube representation count is returned, cubes must be positive (so 0 is not a cube in this context), and the range is 0–100000. Only the range part repeats the schema's min/max; the definition of the counting rule is genuine added meaning.

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?

States the exact computation: counting representations of n as a sum of two positive cubes with order ignored and equal cubes allowed. The worked examples (2→1, 9→1, 91→1, 1729→2) pin down the semantics precisely. It does not, however, distinguish itself from near-neighbors in the sibling list such as taxicab, taxicab_count, cube_ways, or cube_sum.

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: an agent can infer this is the tool for a two-cube representation count, and the examples show valid inputs. There is no explicit when-to-use statement, no exclusions, and no routing to overlapping siblings like taxicab or cube_ways that could compute similar quantities.

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