Skip to main content
Glama

ScorpTech x402 Tools

Cube Ways

cube_ways
Read-onlyIdempotent

How many ways n is a sum of positive cubes, ignoring order and allowing repeats. 0 has 1 empty sum, 2 has 1, 8 has 2, and 16 has 3. n runs from 0 to 2000. 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/cube-ways

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

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 declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds useful behavior beyond that: the output shape (JSON with n, value), the pricing model ($0.001 USDC per successful call via x402 on Base or Solana), and an equivalent HTTPS endpoint. It does not explain failure modes or what happens for out-of-range n, but for a pure deterministic query 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 is front-loaded with the core computation and examples before moving to return shape, pricing, and the alternate endpoint. It is dense but each clause carries information; the pricing and URL sentences are operationally relevant rather than filler, though slightly compressible.

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, the description supplies everything needed: the exact definition, worked examples, valid range, return keys (n, value), and payment/transport details. Nothing essential to correct invocation is missing.

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 coverage is 0%, but the schema itself is tiny (one integer with 0–2000 bounds), and the description supplies the missing semantic content: what n represents, that it runs from 0 to 2000, and how edge cases like 0 are handled. That meaningfully exceeds the bare type/bounds in the schema.

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?

The description states a precise mathematical verb-and-resource: counting the ways n can be written as a sum of positive cubes, order-insensitive and with repeats allowed. Concrete examples (0→1, 2→1, 8→2, 16→3) make the intended computation unambiguous and separate it from a plain cube_sum or coin_ways style tool.

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 domain is clearly bounded (n from 0 to 2000) and the semantics are explicit, so an agent can infer when the tool applies. However, there is no explicit when-to-use/when-not guidance and no mention of the neighboring cube-related tools (cube_sum, cube_min, coin_ways), so the agent must infer the distinction from the definition alone.

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