Skip to main content
Glama

ScorpTech x402 Tools

Subtraction Win

subtraction_win
Read-onlyIdempotent

Whether the player to move wins a subtraction game on a heap of n with perfect play. A win is a nonzero Grundy value. With moves 1, 2, and 3, 5 is a win and 4 is a loss. n runs from 0 to 500. 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-win

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_win"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
movesYes

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?

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds information the annotations cannot: payment via x402 at $0.001 USDC per successful call on Base or Solana, plus an equivalent HTTPS endpoint, and the returned fields (n, value). It omits failure behavior and rate limits, and does not say what happens to the charge on an unsuccessful call.

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 core definition and worked example are front-loaded, then the mechanical facts follow: the return fields, pricing, and the alternate endpoint. Every sentence carries information, though the pricing and URL could be split from the mathematical definition for easier scanning.

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

Completeness4/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's note that it returns JSON with n and value is necessary and sufficient. Combined with the input range, the win criterion, and the payment model, an agent has enough to call it correctly, with the only real gap being a precise statement of what moves means.

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 compensate, and it does so only partially. It clarifies that n is the heap size and runs 0 to 500, and the worked example implies that moves is the set of allowed subtractions, but it never states that explicitly, nor does it explain the per-item bounds (1 to 100) or the 8-item limit already 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 names a specific verb and resource: deciding whether the player to move wins a subtraction game on a heap of n under perfect play. It even pins down the underlying criterion (nonzero Grundy value) and gives a worked example (moves 1,2,3: 5 wins, 4 loses), which separates it from a sibling like subtraction_grundy without opening either schema.

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 description conveys the usage context, where the win/loss decision is the question, but it gives no explicit routing such as when to prefer subtraction_grundy or subtraction_row. There are no stated exclusions or prerequisites beyond the input range.

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