Skip to main content
Glama

ScorpTech x402 Tools

Subtraction Row

subtraction_row
Read-onlyIdempotent

Grundy values from heap 0 through heap n in a subtraction game, comma-separated. With moves 1, 2, and 3, the row through 8 is 0,1,2,3,0,1,2,3,0. n runs from 0 to 32. 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/subtraction-row

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>",
      "moves": "<moves>"
    },
    "name": "subtraction_row"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
movesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and open-world, so the safety profile is known. The description adds genuinely non-schema behavior: per-call pricing ($0.001 USDC via x402 on Base or Solana) and an alternate HTTPS endpoint, both of which matter for invocation. The remaining gap is the unresolved conflict between 'comma-separated' output and 'Returns JSON with: n, value'.

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?

Purpose and example come first, then output shape, then price and endpoint; almost every clause carries information. The output sentence slightly muddies the earlier comma-separated claim rather than wasting space, but it is the one spot that could be tightened.

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?

There is no output schema, so the description must define the return, and it does so ambiguously by describing both a comma-separated list and a JSON object with n and value. Pricing is disclosed, but payment mechanics and the semantics of the moves array are left for the agent to infer.

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%, so the description must carry parameter meaning, and it only partially does. It clarifies that n is the row endpoint bounded at 32 and illustrates moves with an example, but never states that moves may hold 1 to 8 distinct values in 1..100, nor whether ordering or duplicates matter.

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 names a specific computation (Grundy values of a subtraction game) and a specific scope (row from heap 0 through heap n), and gives a worked example. It does not explicitly contrast itself with the sibling subtraction_grundy, which an agent would need to know to pick between a single Grundy value and a full row.

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 worked example ('moves 1, 2, and 3 ... through 8 is 0,1,2,3,0,1,2,3,0') implicitly shows how to use it, but there is no explicit statement of when to choose this over subtraction_grundy, and no statement of constraints on the moves array.

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