Skip to main content
Glama

Stop spending

stop_spending
Idempotent

Immediately blocks new swaps and withdrawals as an emergency stop until the user resumes from a terminal. Use it when something looks wrong or the user requests a halt.

Instructions

Emergency stop: block new swaps and withdrawals from this kit until the user runs npx petasats-mcp resume in a terminal; no tool can resume it. Use it when the user asks, or when something looks wrong. A swap already started still completes or refunds. Idempotent: calling it again keeps the first stop. Returns stopped: true, at (milliseconds since 1970) and reason, plus already_stopped: true when a stop was already in place.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stop_spending"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional note stored with the stop, up to 200 characters; wallet_info shows it as stop_reason.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.22
    • addedInput schema / properties / reason / description
      Added value: +"Optional note stored with the stop, up to 200 characters; wallet_info shows it as stop_reason."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses what actually gets blocked (new swaps and withdrawals, not in-flight ones), that a started swap still completes or refunds, that resumption requires an out-of-band terminal command, and that repeat calls keep the first stop. It also states the return shape even though no output schema exists.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical constraint -- irreversible without a terminal command -- is front-loaded in the first sentence. Every subsequent sentence adds a distinct fact (in-flight behavior, idempotency, return fields) with no restatement of the name or title.

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-optional-parameter safety tool with no output schema, the description covers trigger conditions, blast radius, in-flight exception, recovery path, idempotency, and return fields. Nothing an agent needs in order to call it safely and correctly is missing.

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 coverage is 100% and the single `reason` parameter is already fully documented in the schema, including its 200-character cap and the `stop_reason` surfacing in wallet_info. The description does not repeat or extend that, so the baseline of 3 applies.

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?

A specific verb-and-resource statement: it blocks new swaps and withdrawals from this kit. The scope sentence distinguishes it from the sibling swap/withdraw tools by naming exactly which of their operations it halts, and it clarifies that it is not a resume mechanism.

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

Usage Guidelines4/5

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

It gives two trigger conditions -- when the user asks, or when something looks wrong -- and discloses the only recovery path (`npx petasats-mcp resume` in a terminal, no tool can do it). There is no explicit 'do not use when' case, but the bar for invoking it is clear enough to act on.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.