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 a person can resume, on the Web with a verification code; 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.

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 a person resumes on the Web
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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds concrete behavior the annotations cannot express: cancelling all resting orders, reduce-only position closes across exchanges, blocking new positions, and human-only resume with a verification code. The permission note about third-party apps is genuinely useful context not captured by any structured field.

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 critical scope and emergency framing are front-loaded, and each sentence carries useful information (when to use, resume restriction, sibling exclusion, next step). The 'Input: reason' clause is redundant with the schema and could be trimmed, but the overall structure is efficient and easy to scan.

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 single-parameter destructive tool with an output schema and rich annotations, the description covers everything an agent needs: intent, scope, alternatives, permission model, and a follow-up confirmation step. Return values need not be explained because an output schema exists.

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 documented as 'Why, for the user and the audit log'. The description's 'Input: reason' merely repeats this without adding format, length, or defaulting guidance. Baseline 3 is appropriate because the schema does the semantic work.

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?

States a specific verb and resource ('Emergency stop for the whole account') and spells out scope: cancel every resting order, close every position on every exchange with reduce-only orders, and block new positions. It explicitly distinguishes itself from the sibling close_position for single-position closes, so an agent can select it 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?

Gives explicit when-to-use criteria ('only when the person asks to stop everything or something is clearly wrong') and a when-not alternative ('Not for closing one position (use close_position)'). It also states the resume path, so the agent knows the action is not self-reversible.

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