Skip to main content
Glama

ScorpTech x402 Tools

Coin Min

coin_min
Read-onlyIdempotent

The fewest coins of denominations a and b that sum to n. Making 10 with 2 and 5 takes 2 coins. An amount that cannot be made is rejected. a and b run from 1 to 10000, and n runs from 0 to 100000. Returns JSON with: a, b, 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/coin-min

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": {
      "a": "<a>",
      "b": "<b>",
      "n": "<n>"
    },
    "name": "coin_min"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description goes further by disclosing the rejection path for unmakeable amounts, the returned JSON keys (a, b, n, value), the $0.001 x402 cost, and the HTTPS endpoint equivalent. That is meaningful context an agent cannot get from the annotations or schema.

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 an example, then moves to constraints, return shape, and pricing in a compact block. The range restatement is mild redundancy given the schema already encodes min/max.

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?

With no output schema, the description helpfully enumerates the returned fields, and it covers error behavior and payment mechanics for a paywalled math tool. The main missing piece is any signal about how it differs operationally from the other coin_* tools.

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 carries the burden, and it does supply meaning: a and b are denominations and n is the target sum. However, the stated ranges (1-10000 for a and b, 0-100000 for n) merely restate the schema's minimum/maximum, adding no new constraint information.

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 opening sentence names a specific computation (fewest coins of denominations a and b summing to n) plus a worked example, which separates it in spirit from siblings like coin_count or coin_ways. It never names an alternative explicitly, so the differentiation is implicit rather than stated.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this tool versus coin_check, coin_count, or coin_ways; the agent must infer from the math. The only usage-adjacent statement is that unmakeable amounts are rejected, which is behavior, not routing guidance.

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