Skip to main content
Glama
Mofesto

ctbcsec-api-mcp-server

by Mofesto

stock_modify_order

Modify an existing stock order to update its price or quantity. Specify order details, new values, and modification type to adjust the trade.

Instructions

Modify 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) current_quantity: Current remaining quantity matched_quantity: Matched quantity new_price: New price trade_date: Trading date (defaults to today) new_quantity: New quantity (0 to keep unchanged) trade_type: Trade type order_type: Order type price_type: Price type condition: Order condition modify_type: Modification type (0=Quantity, 2=Price) pre_order: Pre-order flag

Returns: Modification result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buy_sellYes
order_idYes
stock_idYes
conditionNo
new_priceYes
pre_orderNo
account_idYes
order_typeNo
price_typeNo
trade_dateNo
trade_typeNo
modify_typeNo
new_quantityNo
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?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does not mention irreversibility, required permissions, side effects on matched/current quantities, or what 'modification result' means. The only behavioral hint is the modify_type parameter, but that is parameter semantics, not tool behavior.

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 well-structured: a one-sentence purpose, an Args list with one line per parameter, and a Returns line. It is reasonably concise and front-loaded with the key purpose. Some parameter lines are tautological, but the overall length is appropriate for a 16-parameter tool.

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?

Given the tool's complexity (16 parameters, 8 required), the description lacks critical context: no usage scenarios, no behavioral expectations, no error or success conditions. The Returns line is vague ('Modification result'). While an output schema may exist, the description still fails to provide enough guidance for correct tool selection and invocation without additional context.

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 lists all 16 parameters and adds minimal meaning for some (e.g., buy_sell: 'Buy (1) or Sell (2)', modify_type: '0=Quantity, 2=Price', new_quantity: '0 to keep unchanged'). However, many entries merely restate the parameter name (e.g., 'condition: Order condition', 'pre_order: Pre-order flag') without providing meaningful semantics, leaving the agent to infer from the schema enums.

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 opens with a clear, specific verb+resource: 'Modify an existing stock order.' This distinctly differentiates it from sibling tools like stock_new_order, stock_cancel_order, and stock_query_order. The purpose 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 is provided on when to use this tool versus alternatives. It does not mention scenarios like changing price or quantity on an open order, nor does it note exclusions (e.g., use stock_cancel_order for full cancellation). The description only states the operation without context.

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