Skip to main content
Glama
meteoroh

tossinvest-mcp

by meteoroh

Get order book

tossinvest_get_orderbook
Read-onlyIdempotent

Retrieve the current bid/ask ladder for a stock to assess liquidity and spread before choosing a limit price. Returns asks and bids with price and volume.

Instructions

Get the current bid/ask ladder (호가) for one stock.

Use this to judge liquidity and spread before choosing a limit price. For the single last-traded price use tossinvest_get_prices instead — it is cheaper and supports batching.

Args:

  • symbol (string): One symbol. KRX = 6 digits, US = ticker.

  • response_format ('markdown' | 'json'): default 'markdown'.

Returns { symbol, currency, timestamp, asks: [{ price, volume }], bids: [{ price, volume }] }. asks are ascending by price (best ask first), bids descending (best bid first). Both arrays may be empty outside trading hours.

Errors: 404 stock-not-found for unknown symbols.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYesStock symbol. KRX: 6 digits (e.g. '005930' for Samsung Electronics). US: ticker (e.g. 'AAPL').
response_formatNoOutput format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload.markdown

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
asksYesSell side, ascending by price
bidsYesBuy side, descending by price
symbolYes
currencyNoKRW or USD
timestampNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses meaningful behavior: asks are ascending by price, bids descending, arrays may be empty outside trading hours, and unknown symbols produce a 404 stock-not-found error. This lets the agent anticipate output shape and failure modes.

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?

The description is well structured with a front-loaded purpose, a usage sentence, an Args block, a Returns block, and an Errors line. It is compact and information-dense, with no irrelevant digressions; the duplication of schema details is presented efficiently enough to keep the description self-contained.

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 read-only order-book lookup with rich annotations and a full schema, the description covers the operational context, return semantics, ordering guarantees, empty-case behavior, and error handling. Nothing needed to call the tool correctly is missing.

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%, so the baseline applies. The description repeats the symbol format and response_format options but adds no new meaning beyond what the JSON schema already documents; the schema already explains KRX/US formats, the enum, and the default.

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 a specific verb and resource — 'Get the current bid/ask ladder (호가) for one stock' — and explicitly distinguishes itself from tossinvest_get_prices, which returns the single last-traded price. An agent can immediately tell what this tool does and what it is not.

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?

It states exactly when to use the tool ('to judge liquidity and spread before choosing a limit price') and names the alternative with a concrete selection criterion: use tossinvest_get_prices for a single last-traded price because it is cheaper and supports batching. This gives clear routing guidance.

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