Skip to main content
Glama
PatrickSUDO

firstrade-mcp-server

by PatrickSUDO

place_stock_order

Execute a confirmed stock order on Firstrade using the token from a prior preview to ensure safe, intentional trades.

Instructions

Place a real stock order (dry_run=False). Requires FT_ALLOW_LIVE_ORDERS=true in .env AND a confirm_token from preview_stock_order called with these exact same arguments — the server rejects the order otherwise, it does not just rely on the caller having "meant to" preview first.

Args: symbol: Ticker symbol (e.g. 'NVDA'). order_type: buy | sell | sell_short | buy_to_cover quantity: Number of shares. confirm_token: Token returned by preview_stock_order for this exact order. price_type: limit | market | stop | stop_limit | trailing_stop_dollar | trailing_stop_percent duration: day | day_ext | overnight | gt90 (gt90 ≈ GTC, 90-day) price: Limit price (required for limit/stop_limit orders). stop_price: Stop trigger price (required for stop/stop_limit orders).

Returns JSON with order confirmation. This sends a real order to Firstrade.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceNo
symbolYes
durationNogt90
quantityYes
order_typeYes
price_typeNolimit
stop_priceNo
confirm_tokenYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It clearly discloses that this sends a real order to Firstrade, that it requires a confirm_token, and that the server enforces the preview requirement. It could add more about side effects (e.g., irreversible, funds affected), but the core behavioral traits are well covered.

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 with a clear opening warning, then a compact parameter list. It is slightly long but every line earns its place by adding necessary usage detail. The front-loaded warning about live orders is appropriately placed.

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?

Given the tool's complexity (8 params, live order side effects, no annotations), the description covers prerequisites, parameter semantics, and the preview-token requirement. It mentions returns JSON with order confirmation, and an output schema exists. Minor gaps: no explicit statement about reversibility or error cases, but the description is largely complete for safe invocation.

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?

Schema description coverage is 0%, so the description must compensate. It does: it explains each parameter's meaning, provides examples for symbol, enumerates valid values for order_type, price_type, and duration, and clarifies conditional requirements for price and stop_price. This is strong compensation, though it doesn't detail the exact return JSON structure.

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 states a specific verb ('Place'), a specific resource ('real stock order'), and immediately distinguishes itself from preview_stock_order by noting dry_run=False. It also names the sibling preview_stock_order explicitly, making the tool's role clear.

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

Usage Guidelines5/5

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

The description explicitly states the prerequisite (FT_ALLOW_LIVE_ORDERS=true) and the mandatory precondition (confirm_token from preview_stock_order with exact same arguments). It also explains the server rejects otherwise, which tells the agent when this tool is appropriate and what must happen before calling it.

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