Skip to main content
Glama
nangchang

toss-invest

by nangchang

주문 정정 (실거래 주의)

toss_modify_order
Destructive

Correct unfilled stock orders on Toss Securities. Change quantity and price for Korean stocks, or just price for US stocks, on pending orders.

Instructions

⚠️ 경고: 이 도구는 실제 주식 주문을 정정합니다.

미체결(PENDING/PARTIAL_FILLED) 상태의 주문을 정정합니다. KR 주식: 수량과 가격 변경 가능. US 주식: 가격만 변경 가능 (수량 변경 불가).

Args:

  • accountSeq (number, 필수): 계좌 시퀀스

  • orderId (string, 필수): 정정할 주문의 orderId

  • orderType (string, 필수): 변경할 호가 유형. "LIMIT" 또는 "MARKET"

  • quantity (string, 선택): 변경할 수량. KR 주식 필수, US 주식 불가 (양의 정수만)

  • price (string, 선택): 변경할 가격. orderType=LIMIT일 때 필수

  • confirmHighValueOrder (boolean, 선택): 고액 주문 확인 플래그. 1억원 이상 시 true 필수

Returns:

  • orderId: 정정된 주문의 식별자

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceNo변경할 가격. orderType=LIMIT일 때 필수. KR: 정수, US: 소수점 (예: "71000")
orderIdYes정정할 주문의 orderId
quantityNo변경할 수량. KR 주식 필수, US 주식 불가. 양의 정수만 허용 (예: "15")
orderTypeYes변경할 호가 유형. "LIMIT" 또는 "MARKET"
accountSeqYes계좌 시퀀스. toss_get_accounts 응답의 accountSeq 값
confirmHighValueOrderNo고액 주문 확인 플래그. 1억원 이상 주문 시 true 필수
Behavior4/5

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

The description goes beyond the annotations by warning that this is a real trade (실거래 주의), restricting modification to PENDING/PARTIAL_FILLED orders, and detailing market-specific behaviors (KR quantity+price, US price only). It also discloses the high-value order confirmation flag. While annotations already mark destructiveHint=true, the description adds meaningful context about state prerequisites and safety checks, though it does not cover failure behavior or reversibility.

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-organized with a warning header, market rules, and a structured Args/Returns layout. It is front-loaded with the most critical caution. The Args list is somewhat redundant with the schema but serves as a useful inline summary; still, it could be more concise by omitting details already present in the schema. Overall, it is efficiently sized without unnecessary fluff.

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 (6 parameters, market-specific rules, no output schema), the description is fairly complete. It explains the return value, parameter requirements, status preconditions, and the high-value flag. It does not mention error scenarios or what happens if the order is not in the correct state, but for a mutation tool with strong schema and annotation support, this is a minor gap.

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 100%, so the baseline is 3. The description's Args list largely duplicates the schema, though it does add a few context cues such as 'accountSeq from toss_get_accounts response' and the positive-integer constraint. No new semantic value is added beyond what the schema already provides, so the score remains 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 clearly states the tool modifies actual stock orders, limited to PENDING/PARTIAL_FILLED status, with specific market rules for KR and US stocks. The verb '정정합니다' (modify/correct) and the explicit resource ('주식 주문') make the purpose unambiguous and distinct from siblings like toss_create_order and toss_cancel_order.

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?

The description specifies when this tool is applicable: only for orders in PENDING/PARTIAL_FILLED status. It also provides important usage constraints, such as US stocks cannot change quantity, and that confirmHighValueOrder is required for orders above 100 million KRW. However, it does not explicitly mention alternatives like 'use toss_cancel_order to cancel' or 'when not to use this tool', so it stops short of full exclusion guidance.

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/nangchang/stock-toss-mcp'

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