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. 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/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

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but they do not disclose cost or payment mechanics. The description fills that gap by stating the price ($0.001 USDC per successful call, x402 on Base or Solana) and giving an equivalent HTTPS endpoint. It stops short of describing failure/error behaviour or what happens on out-of-range input.

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 definition, then concrete examples, then output shape, then commercial details. No sentence is wasted, though the pricing/endpoint sentence is dense operational text that slightly crowds an otherwise tight mathematical statement.

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?

Short but adequate for a single-parameter computation: inputs are uniquely determined and return shape is sketched as JSON with n and value, so no output schema is needed. However, 'value' is left ambiguous (count vs. something else), and no guidance is given on edge cases (n=0) or on failure responses for a tool that is billed per successful call.

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?

Schema description coverage is 0%, and the only parameter, n, is described only as 'the n summing to two cubes, running from 0 to 100000' - a range that merely repeats the schema's minimum/maximum. The description does clarify the conceptual meaning of n, but adds little beyond that; format expectations (integer, positive cube parts) are implied rather than spelled out.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise mathematical question: the number of ways n is a sum of two positive cubes, with explicit tie-breaking rules (order ignored, equal cubes allowed) and worked examples (2 has 1, 1729 has 2). This is fully distinguishable from neighbouring tools such as two_squares without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Because the tool computes one clearly bounded function of n, the description's definition plus examples make its applicability unambiguous; an agent knows exactly which input class it serves and can tell it apart from adjacent number-theory operations. The 0-100000 domain constraint further pins down when it applies.

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