Skip to main content
Glama
wyhAcc
by wyhAcc

cancelOrder

Cancel an order by ID, or cancel the most recent order if no ID is given.

Instructions

取消订单。orderId 缺省时取消最近一单。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orderIdNo
Behavior3/5

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

With no annotations, the description discloses the default behavior of canceling the most recent order. However, it does not mention irreversibility, required permissions, or side effects, which are important for a destructive action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with two sentences. The purpose is front-loaded and every part adds value.

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

Completeness3/5

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

For a simple cancellation tool with no output schema or annotations, the description covers the core behavior and parameter default. However, it lacks context about prerequisites, error conditions, or whether the action is reversible.

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?

The schema has 0% description coverage, so the description must compensate. It explains that omitting orderId results in canceling the most recent order, adding meaningful context beyond the schema's type declaration.

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 clearly states the action ('取消订单' meaning cancel order) and specifies the behavior when orderId is omitted: cancels the most recent order. This distinguishes the tool from siblings like confirmOrder or reorder.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description implies the tool is for canceling orders but does not provide explicit guidance on when to use it versus alternatives (e.g., reorder, quickOrder). No exclusions or prerequisites are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wyhAcc/luckin-mcp-proxy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server