Skip to main content
Glama
Mofesto

ctbcsec-api-mcp-server

by Mofesto

stock_cancel_order

Cancel an existing stock order by submitting account and order details, and receive a cancellation confirmation.

Instructions

Cancel an existing stock order.

Args: account_id: Account ID order_id: Original order ID order_number: Order number stock_id: Stock symbol buy_sell: Buy (1) or Sell (2) quantity: Order quantity current_quantity: Current remaining quantity matched_quantity: Matched quantity price: Order price trade_date: Trading date (defaults to today) trade_type: Trade type order_type: Order type price_type: Price type condition: Order condition pre_order: Pre-order flag

Returns: Cancellation confirmation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYes
buy_sellYes
order_idYes
quantityYes
stock_idYes
conditionNo
pre_orderNo
account_idYes
order_typeNo
price_typeNo
trade_dateNo
trade_typeNo
order_numberYes
current_quantityYes
matched_quantityYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNoResponse message or error description
successYesWhether the operation succeeded
order_idNoOrder ID if successful
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states the action and that a confirmation is returned, but does not disclose that cancellation is destructive/irreversible, whether the order must be in a specific state, or any authorization requirements. The large parameter list implies validation logic that is not explained.

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 description is a straightforward list of parameters and a return value, structured for readability. It is longer than typical, but the number of parameters justifies it. The purpose is front-loaded, and each line is concise.

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?

Even with an output schema, the description is incomplete for a tool with 15 parameters and many optional fields. It does not explain why all parameters are needed, what the defaults mean, or under what conditions cancellation might fail. The flat parameter list lacks workflow context, which is a significant gap given the tool's complexity.

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%, so the description must compensate. It provides a labeled list of all 15 parameters, adding some meaning like 'current_quantity: Current remaining quantity' and 'trade_date: Trading date (defaults to today).' However, many entries simply restate the parameter name (e.g., 'stock_id: Stock symbol') and it does not explain how the parameters relate to the cancellation process.

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 'Cancel an existing stock order,' which uses a specific verb and resource. This clearly distinguishes it from sibling tools like stock_new_order, stock_modify_order, and stock_query_order.

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 stock orders, but it does not explicitly state when to use it versus alternatives or mention any prerequisites or exclusions. It does not say 'use this instead of futopt_cancel_order' or note that cancellation is irreversible.

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/Mofesto/ctbcsec-api-mcp-server'

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