Skip to main content
Glama

ScorpTech x402 Tools

Cake Number

cake_number
Read-onlyIdempotent

The cake number, the most pieces of space cut by n planes: (n^3 + 5*n + 6)/6. Zero planes give 1, three give 8, and five give 26. 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/cake-number

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

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?

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses a paid x402 pricing model ($0.001 USDC per successful call on Base or Solana) and an equivalent HTTPS endpoint, which materially affects whether an agent should invoke it. It also names the return shape {n, value}; it stops short of stating failure modes or whether payment is charged on errors.

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 and formula, then domain, output shape, and cost — a sensible order with no filler sentences. It is dense but every clause carries information; the two worked examples are borderline but aid verification.

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 one-parameter pure computation with no output schema, the description supplies definition, formula, domain, output fields, and cost model — everything an agent needs to call it correctly and to decide whether it is worth the per-call fee.

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%, so the description must carry the burden, and it does: it explains that n is the number of planes, restates the valid range 0–100000, and supplies concrete mappings (0→1, 3→8, 5→26) that let an agent sanity-check results. The range is partly duplicative of the schema's minimum/maximum, which keeps it from a 5.

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 names a specific mathematical object ('the cake number, the most pieces of space cut by n planes'), gives its closed form, and pins down the domain. That is far more than a restatement of the name and clearly separates it from generic siblings like arithmetic_number.

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: the formula and worked examples make clear what the tool computes, but there is no statement of when to prefer it over alternatives or when not to call it. For a single-purpose calculator that is tolerable, but no explicit routing guidance is given.

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