Skip to main content
Glama

Stop all trading now

stop_all_trading
DestructiveIdempotent

Emergency stop for the whole account: cancel every resting order, close every position on every exchange with reduce-only orders, and block new positions. Use only when the person asks to stop everything or something is clearly wrong. Only the person can resume, with an authenticator code on the Web or in Telegram; agents keep their status but cannot open until then. Third-party apps never get this permission. Not for closing one position (use close_position). Input: reason. Next: get_my_positions to confirm nothing is left.

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

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy, for the user and the audit logkill switch

Output Schema

NameRequiredDescriptionDefault
okYesTrue when nothing is left open
haltedYesAlways true: new positions are blocked until the person resumes (authenticator code, on the Web or in Telegram); agents keep their status
reasonYesThe reason given
statusYesOutcome of the stop
receiptNoSigned receipt (compact JWS, EdDSA); verify with /.well-known/tradehub-receipts.jwks
sequenceYesThe steps taken, in order
remainingYesAnything that could not be closed; retry or close it by hand
deprecationNoPresent only while this tool is deprecated: replacement, removal_date, changelog
orders_cancelledYesNumber of orders cancelled
positions_closedYesNumber of positions closed (reduce-only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / halted / description
      Previous value: -"Always true: new positions are blocked until a person resumes on the Web"New value: +"Always true: new positions are blocked until the person resumes (authenticator code, on the Web or in Telegram); agents keep their status"
  2. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=true, lowering the bar, but the description still adds meaningful context about what the stop actually does (reduce-only closes across all exchanges, blocking of new positions) and how it is undone (only the person, with an authenticator code on Web or Telegram, and agents keep status but cannot open). What it omits is failure behavior, partial-failure handling if an exchange rejects a close, and latency, which matter for an emergency action across many venues.

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?

It is front-loaded with the action and scope, then usage conditions, then the resume/permission caveats, then the parameter and follow-up step, so nothing is buried. It is dense but nearly every sentence carries decision-relevant information; the ordering of the caveats before the parameter note is slightly cluttered but not wasteful.

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?

For a high-stakes kill switch, the definition covers scope, authorization, irreversibility path (resume requires an authenticator code), and a concrete verification step (get_my_positions). Since an output schema exists, the absence of return-value detail is acceptable; only the handling of partial failures across venues is left unaddressed.

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?

There is only one optional parameter, reason, and schema description coverage is 100% ("Why, for the user and the audit log"). The description only repeats "Input: reason" without adding format, length, or default guidance beyond the schema, so it meets the baseline rather than exceeding it.

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 ("Emergency stop for the whole account") and immediately enumerates its scope: cancel every resting order, close every position on every exchange, and block new positions. It explicitly contrasts with the sibling close_position, so an agent can separate the two 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 Guidelines5/5

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

It states exactly when to invoke ("only when the person asks to stop everything or something is clearly wrong") and when not to ("Not for closing one position (use close_position)"), naming the alternative and the condition that selects it. The resume procedure and the note that third-party apps never get this permission give the agent a clear view of the surrounding workflow.

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