Skip to main content
Glama
Mofesto

ctbcsec-api-mcp-server

by Mofesto

stock_new_order

Place a new stock order for a specified account, symbol, quantity, price, and buy/sell direction. Supports market/limit orders with configurable order type, condition, and trade date.

Instructions

Place a new stock order.

Args: account_id: Account ID stock_id: Stock symbol (e.g., "2330") quantity: Number of shares price: Order price ("0" for market orders) buy_sell: Buy (1) or Sell (2) trade_date: Trading date in YYYYMMDD format (defaults to today) trade_type: Trade type (default: REGULAR) order_type: Order type (default: CASH) price_type: Price type (default: LIMIT) condition: Order condition (default: ROD) broker: Broker code (default: empty) pay_type: Payment type (default: 0)

Returns: Order confirmation or error message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYes
brokerNo
buy_sellYes
pay_typeNo
quantityYes
stock_idYes
conditionNo
account_idYes
order_typeNo
price_typeNo
trade_dateNo
trade_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageNoResponse message or error description
successYesWhether the operation succeeded
order_idNoOrder ID if successful
Behavior1/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 states only the action and that a confirmation or error message is returned, but does not mention side effects, required authentication/connection state, or whether the order is immediately sent or staged. This is a significant gap for a financial action tool.

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 as an Args list, with each parameter on its own line and the one-line purpose at the top. It is appropriately sized for a 12-parameter tool, but it somewhat duplicates schema information (e.g., parameter names and types), which could be trimmed. Still, it is efficient and readable.

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?

The description covers parameter meanings and defaults, which is essential given the low schema coverage. However, it lacks higher-level context: it does not mention that a connection/login may be required (given sibling tools like 'connect' and 'login'), does not describe error scenarios, and does not provide an example invocation. The output schema is present but not described, so the return line is the only clue.

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's parameter list is essential. It adds meaningful detail such as stock symbol format ('2330'), price '0' for market orders, buy/sell values (1/2), date format (YYYYMMDD), and defaults for optional fields. This goes well beyond the schema's bare titles, though some terms like 'CASH' and 'LIMIT' are left unexplained.

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 'Place a new stock order,' which clearly specifies the action (place) and the resource (new stock order). This distinguishes it from sibling tools like 'stock_modify_order' and 'stock_cancel_order,' and the intent is immediately clear.

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?

The description gives no explicit guidance on when to use this tool versus alternatives. It does not mention prerequisites, exclusions, or when to prefer a different tool such as 'stock_modify_order' for existing orders. The only hint is the name and the one-line purpose, which implies usage but does not articulate conditions or alternatives.

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