Skip to main content
Glama
scjang01

tossinvest-mcp

by scjang01

프로그램매매 동향 조회

toss_get_stock_program_trades
Read-only

Fetch daily program-trading volume trends for Korean stocks, with arbitrage and non-arbitrage buy, sell, and net volumes in reverse chronological order.

Instructions

프로그램매매 동향 조회. 국내(KR) 종목의 프로그램매매 동향을 일별 거래량 시계열로 조회합니다. 차익거래(arbitrage)· 비차익거래(nonArbitrage) 각각의 매수·매도·순매수 거래량을 최신순으로 제공합니다.

  • 국내(KR) 종목만 지원합니다. 다른 시장의 종목은 400 unsupported-market 으로 응답합니다.

  • KRX 시장 거래만 집계하며 NXT 거래는 포함하지 않습니다. 모든 수량은 주식 수(주) 정수입니다. 순매수(netBuyVolume)는 매수 − 매도로 계산되며 음수면 순매도입니다. 거래대금(금액) 축은 제공하지 않습니다.

  • 다음 페이지는 응답의 nextUntil 값을 until 파라미터로 전달해 조회합니다.

데이터 적시성: 당일 기록도 제공되며, 장 종료 전까지 갱신될 수 있습니다.

Rate Limits Group: STOCK_TRADING_TREND

Input Schema

NameRequiredDescriptionDefault
countNo
untilNo
symbolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations it discloses the failure mode (400 unsupported-market), the measurement universe (KRX only, NXT excluded), the unit (integer share counts), the netBuyVolume = buy − sell sign convention, the absence of a value/amount axis, and intraday refresh behavior before market close. These are exactly the traits an agent cannot infer from structured fields.

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?

A short lead sentence states the action and the time-series shape, then bullet points carry constraints and pagination, with bold labels for timeliness and rate limits. Dense but front-loaded and scannable. Minor redundancy between the first sentence and the second, which restate the daily-series framing.

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?

There is no output schema, so the description must describe returns itself, and it does: the arbitrage/nonArbitrage buckets, the netBuyVolume semantics, and the `nextUntil` continuation field are all named. Combined with the market coverage, units and refresh caveats, an agent has enough to call and page through this correctly; the undescribed `count` parameter is the only notable 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 0%, so the description must carry the parameters, and it only partly does. It explains `until` well as the cursor taken from the previous response's `nextUntil`, but `count` is never described (no meaning, no default, only the schema's 1–100 bounds) and `symbol` gets no format guidance beyond being a KR ticker.

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 names a specific verb+resource (program-trading trend lookup) and specifies the shape of the result: a daily volume time series for a KR stock, split into arbitrage and nonArbitrage buy/sell/net volumes, newest first. That scope clearly separates it from siblings like toss_get_stock_investor_trading, toss_get_stock_short_selling and toss_get_stock_credit_trades, which cover different flow dimensions.

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 explicit boundaries: KR-only (other markets return 400 unsupported-market), KRX trades only with NXT excluded, and no monetary axis. That is clear context for when this tool applies. It never names a sibling alternative or says what to use when the caller actually wants amount-based or NXT-inclusive data, so it stops short of full routing guidance.

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