Skip to main content
Glama

订单状态

get_order
Read-onlyIdempotent

Retrieves order status (created, filled, canceled, or frozen) and execution results by order key, enabling agents to verify order outcomes.

Instructions

按订单 key 查询订单状态(已创建 / 已成交 / 已取消 / 冻结)及成交结果。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "key": "<key>"
    },
    "name": "get_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. The description contributes the status vocabulary and the fact that fill results are returned, but says nothing about behavior when the key is unknown or invalid, nor about the response shape.

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?

One front-loaded sentence with no filler, and the status enumeration earns its place by telling the agent what values to expect. The trailing '成交结果' is slightly vague but keeps the sentence compact.

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 single-parameter read-only lookup with annotations covering safety and no output schema, the description supplies enough to invoke it correctly and interpret the status result. Missing only error/not-found behavior and key format, which are minor for this tool class.

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 description coverage is 0% for the single parameter, so the description must compensate. It does clarify that the parameter is an order key (as opposed to an account or market key), which is genuinely useful, but gives no format, casing, or validity constraints for that key.

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?

The definition names a specific verb-resource pair (query order status by order key) and enumerates the possible statuses (created / filled / cancelled / frozen), so the agent knows exactly what it retrieves. It stops short of distinguishing itself from any other order-related tool, but among the listed get_* siblings none queries orders, so mis-selection risk is low.

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?

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites, and no routing to an alternative such as an order-listing tool. The agent must infer that this is the single-order lookup purely from the word 'key'.

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