Skip to main content
Glama

一键全平

platform_flat_all
Destructive

【持仓与执行】一键全平(写操作,需确认):默认 dryRun=true 只预演;确认执行须显式 dryRun=false。可按凭证/交易对/市场类型限定,marketType=spot 时清现货余额。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)

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": "platform_flat_all"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo仅预演(默认 true)
symbolNo交易对(可选)
marketTypeNoswap/spot(可选)
credentialIdNo凭证 ID(可选,缺省全部)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the burden is lower, and the description still adds real value: the safe-by-default dryRun behavior, the requirement to opt in explicitly, that marketType=spot liquidates spot balances, and that the call executes with apikey identity directly. It does not state irreversibility or what credentials are covered when credentialId is omitted, which keeps it from a 5.

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?

Front-loaded with the risk-critical information (write operation, requires confirmation, dryRun default) in a compact form. Slightly redundant: '(写操作' is repeated at the beginning and again in the trailing parenthetical, and the '(cost: free)' tag adds little for an agent.

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 destructive, zero-required-parameter tool this covers the essential safety contract and scoping. The main gap is that with no output schema, the description says nothing about what the dryRun preview returns versus the execution result, which an agent needs in order to report outcomes.

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 baseline is 3, but the description adds meaning the schema lacks: dryRun defaults to true and must be explicitly false to execute, and marketType=spot has the specific effect of clearing spot balances. This is genuine semantic enrichment rather than restatement.

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 concrete verb and object: '一键全平' (close-all) under the 【持仓与执行】 category, plus scope modifiers (credential/symbol/marketType). An agent can tell this is an aggregate liquidation action rather than a single-order close, though it never explicitly names platform_close_position/platform_close_preview as the narrower alternatives.

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?

Gives explicit operating procedure: default dryRun=true is preview-only, real execution requires explicitly passing dryRun=false. Also explains scoping options. It stops short of stating when NOT to use it (e.g., for a single position use platform_close_position), so no exclusions are provided.

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.