Skip to main content
Glama
Eurobertics

MCP Pionex Management

by Eurobertics

Cancel futures grid order

pionex_bot_cancel_futures_grid_order
Destructive

Cancel a futures grid bot order to close positions and stop the bot. Specify bot order ID and optional close settings like slippage or sell mode.

Instructions

Cancel futures grid order

Close and cancel a futures grid bot order. Weight: 1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buOrderIdNoBot order ID
closeNoteNoClose note
immediateNoForce-cancel an order that is stuck in the `close_position` state because its limit take-profit / stop-loss order has triggered but not yet filled. This is NOT a generic "cancel faster" flag. - `false` (default): normal cancellation. Use this for orders in any regular state (e.g. `running`). It runs the full close flow: update status, dispatch the close action, and settle. - `true`: special recovery path ONLY valid when the order is in the `close_position` state with an unfilled limit TP/SL order. It sends the close action directly with a market price. If the order is in any other state, the request is rejected with `Forbidden: invalid status`. Do not set `true` as a default "force close" option — for normal close-outs always use `false`.
closeSlippageNoClose position slippage (e.g. "0.01" = 1%)
closeSellModelNoClose sell mode: `TO_QUOTE` - Close position only (default), `TO_USDT` - Close position and sell quote to USDT

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare destructiveHint=true, readOnlyHint=false, and NOT idempotent. The description adds 'Weight: 1' (rate-limit cost) and 'Close and cancel' but doesn't explain side effects, authorization needs, or what gets destroyed. With annotations covering the safety profile, this is adequate but thin.

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?

Very concise with a front-loaded action. The title is duplicated in the body, which is slightly redundant but not harmful. 'Weight: 1' is a useful operational detail.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation with no output schema and no annotations beyond the safety flags, the description is too sparse. It doesn't explain state requirements, what 'close' entails, or what happens on success/failure. The rich schema helps, but the behavioral gap is significant.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the rich parameter descriptions (especially the detailed immediate flag semantics) are already documented in the schema. The description adds no parameter detail, so baseline is 3, but the schema's unusually clear parameter docs and the 0 required parameters raise this to 4.

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?

States a specific verb (cancel) and resource (futures grid order), clearly distinguishing it from siblings like cancel_spot_grid_order and cancel_smart_copy_order. The repetition of the title in the body adds no value, but the core action is unambiguous.

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?

No guidance on when to use this versus alternatives like reduce_futures_grid or pause_futures_grid, or when a close is appropriate. No prerequisites or state requirements are mentioned.

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

Deploy Server

Other Tools