Skip to main content
Glama
Jeric1223

tossinvest-mcp

Prepare conditional order modification

toss_prepare_conditional_order_modify
Destructive

Preview modifications to an open conditional order—update trigger prices, legs, quantity, or expiry—and obtain a confirmation token for submission.

Instructions

Previews a change to an EXISTING conditional order that has not triggered yet — its trigger prices, legs, quantity, or expiry. Every field is replaced, so send the complete intended state rather than only the parts you want changed. The symbol cannot be changed; cancel and create a new order for that. Find the conditionalOrderId with toss_get_conditional_orders (status 'OPEN'). Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token. Show that preview to the user, obtain explicit approval, then pass the token to toss_submit_prepared_order. The token is single-use and expires 60 seconds after this call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesType after the change. SINGLE uses `first` only; OCO and OTO both require `second`.
firstYesPrimary leg after the change.
secondNoSecond leg. Required for OCO and OTO; must be omitted for SINGLE.
quantityYesShare count after the change, as a positive decimal string.
orderTypeYesLIMIT requires `orderPrice` on every leg. MARKET forbids it. OCO and OTO accept LIMIT only.
expireDateYesLast KST date the condition stays armed, formatted YYYY-MM-DD.
conditionalOrderIdYesIdentifier of the conditional order, as returned by toss_get_conditional_orders.
Behavior5/5

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

The description goes far beyond annotations: it explicitly states 'Nothing reaches the market from this call: it only validates the request and returns a preview plus a confirmation token,' and discloses that the token is single-use and expires in 60 seconds. It also warns that every field is replaced, preventing accidental partial updates. This adds significant behavioral context beyond the destructiveHint annotation.

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?

Seven sentences, each carrying essential info: purpose, replacement semantics, symbol restriction, ID lookup, non-execution, workflow, and token expiry. No fluff or repetition; the description is front-loaded with the core purpose and then systematically adds constraints and instructions. Appropriately detailed for a complex tool.

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

Completeness5/5

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

Given the tool's complexity (7 params, nested objects, no output schema), the description covers all necessary context: what to modify, constraints, how to get prerequisites, side effects, and the exact post-approval workflow. The absence of an output schema is compensated by mentioning the preview and confirmation token, which is sufficient for the agent to select and use the tool.

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 coverage is 100%, with each parameter already described in detail (enums, patterns, conditional requirements). The description adds a global rule ('Every field is replaced') that informs parameter usage but doesn't elaborate on individual parameters beyond what the schema provides, so it stays at baseline.

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's first sentence clearly states the tool 'previews a change to an EXISTING conditional order that has not triggered yet' and enumerates modifiable fields (trigger prices, legs, quantity, expiry). This distinguishes it from siblings like toss_prepare_conditional_order (creation) and toss_prepare_conditional_order_cancel (cancellation).

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

Usage Guidelines4/5

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

It gives clear usage context: find the ID via toss_get_conditional_orders with status 'OPEN', and explains the symbol cannot be changed, directing to cancel-and-create for that. It also specifies the follow-up step (toss_submit_prepared_order). However, it doesn't explicitly say when to prefer this over toss_prepare_order_modify or other alternatives, so it stops short of a 5.

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/Jeric1223/tossinvest-mcp'

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