Skip to main content
Glama
nangchang

toss-invest

by nangchang

주문 생성 (실거래 주의)

toss_create_order
Destructive

Create Korean and US stock orders through Toss Securities, with limit/market types, quantity or amount-based options, and an order ID for later changes.

Instructions

⚠️ 경고: 이 도구는 실제 주식 주문을 생성합니다. 실제 자금이 사용됩니다.

주문을 생성합니다. 수량 기반 또는 금액 기반(US 시장가 매수만) 주문을 지원합니다.

Args:

  • accountSeq (number, 필수): 계좌 시퀀스. toss_get_accounts 응답의 accountSeq 값

  • symbol (string, 필수): 종목 심볼. KRX: 6자리 숫자 (예: 005930), US: 영문 티커 (예: AAPL)

  • side (string, 필수): 주문 방향. "BUY" (매수) 또는 "SELL" (매도)

  • orderType (string, 필수): 호가 유형. "LIMIT" (지정가) 또는 "MARKET" (시장가)

  • quantity (string, 선택): 주문 수량. quantity 또는 orderAmount 중 하나 필수

    • KR: 양의 정수 (예: "10")

    • US MARKET SELL: 소수점 허용 (예: "0.5")

  • orderAmount (string, 선택): 주문 금액 (USD). US 시장가 매수(MARKET BUY)만 사용 가능 (예: "100.5")

  • price (string, 선택): 주문 가격. orderType=LIMIT일 때 필수

    • KR: 정수 원화 (예: "70000")

    • US: 소수점 달러 (예: "185.50")

  • timeInForce (string, 선택): 주문 유효 조건. "DAY" (기본, 당일 유효) 또는 "CLS" (장마감, US LIMIT만)

  • clientOrderId (string, 선택): 클라이언트 주문 ID. 최대 36자, 영숫자/-/_. 멱등성 키로 사용 (10분간 유효)

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

Returns:

  • orderId: 서버 생성 주문 식별자 (정정/취소 시 사용)

  • clientOrderId: 요청한 clientOrderId (미전달 시 null)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYes주문 방향. "BUY" (매수) 또는 "SELL" (매도)
priceNo주문 가격. LIMIT 주문 시 필수. KR: 원화 정수 (예: "70000"), US: 달러 소수점 (예: "185.50")
symbolYes종목 심볼. KRX: 6자리 숫자 (예: 005930), US: 영문 티커 (예: AAPL)
quantityNo주문 수량. quantity 또는 orderAmount 중 하나 필수. KR: 정수, US MARKET SELL: 소수점 허용
orderTypeYes호가 유형. "LIMIT" (지정가) 또는 "MARKET" (시장가)
accountSeqYes계좌 시퀀스. toss_get_accounts 응답의 accountSeq 값
orderAmountNo주문 금액 (USD). US 시장가 매수(MARKET BUY)만 사용 가능 (예: "100.5")
timeInForceNo주문 유효 조건. "DAY" (기본, 당일 유효) 또는 "CLS" (장마감, US LIMIT만 지원)DAY
clientOrderIdNo클라이언트 주문 ID. 최대 36자, 영숫자/-/_. 멱등성 키 (10분 유효)
confirmHighValueOrderNo고액 주문 확인 플래그. 1억원 이상 주문 시 true 필수
Behavior5/5

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

The description goes far beyond the annotations (destructiveHint=true) by detailing that real money is involved, order types are limited, amount-based orders are only for US market buys, and the high-value confirmation flag. It also explains the idempotency behavior and return identifiers. This is rich behavioral context with no contradiction to the annotations.

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 front-loaded with a cautionary warning, followed by a well-organized Args section and a Returns section. It is long due to 10 parameters, but each item is relevant. Some redundancy with the schema exists, but overall it is structured and free of unnecessary fluff.

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?

For a complex, dangerous tool with no output schema, the description is remarkably complete. It covers return values (orderId, clientOrderId), conditional requirements (price needed for LIMIT, confirmHighValueOrder for large orders), market-specific rules (KR vs US), and time-in-force options. No significant missing 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?

The input schema has 100% description coverage, so the baseline is 3. The description largely repeats the schema's parameter descriptions, though it does add a cross-parameter constraint (quantity or orderAmount required) that is implicit in the schema. This does not substantially exceed the baseline because the schema already carries the main semantic weight.

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 creates a stock order ("주문을 생성합니다") and explicitly warns that real funds are used. This distinguishes it from sibling tools like toss_modify_order and toss_cancel_order, which handle other order lifecycle operations.

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

Usage Guidelines3/5

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

The description provides clear context that this tool places new orders and warns about real trade execution, but does not explicitly mention when not to use it or point to alternatives such as toss_modify_order for corrections. Usage guidance is implied rather than directly stated, so it falls short of a higher score.

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