Skip to main content
Glama
tossinvest-mcp

tossinvest-mcp

by scjang01

주식 랭킹 조회

toss_get_rankings
Read-only

Retrieves Korean and U.S. stock rankings by trading amount, volume, top gainers, or top losers for a chosen period, with filters for investment caution and Toss Securities execution data.

Instructions

국내·미국 주식의 시장·기간별 랭킹. count 기본 20, 최대 100; 첫 호출에 필요한 건수 지정. TOP_GAINERS/TOP_LOSERS는 realtime 불가. TOSS_SECURITIES_*는 토스 체결 기준. 급등락 기준가는 기간 시작가, 그 외는 전일 기준가. 데이터가 없으면 빈 목록.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "<type>",
      "marketCountry": "<marketCountry>",
      "duration": "<duration>"
    },
    "name": "toss_get_rankings"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYes
countNo
durationYes
marketCountryYes
excludeInvestmentCautionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, openWorld, non-destructive), and the description adds substantive behavior on top: a default count of 20 with a hard cap of 100, an empty list when no data exists, and the fact that TOSS_SECURITIES_* figures reflect actual Toss execution data. It also discloses the base-price convention (period start price for gainers/losers, prior close otherwise), which materially changes how a returned ranking should be read.

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?

Purpose is front-loaded in the first clause, then constrained by short semicolon-separated facts with no filler; every clause conveys a constraint, a default, or an enum nuance. Dense but scannable, which is the right trade-off for a five-parameter tool with no schema documentation.

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

Completeness3/5

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

With zero schema descriptions and no output schema, the description must carry more weight, and it covers the ranking type, duration constraint, count bounds, and empty-result case. However, it never explains `excludeInvestmentCaution` or hints at what a ranking entry contains beyond being a list, so an agent still has blind spots for a 5-parameter, 3-enum tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description has to carry the meaning, and it does for most parameters: the count default of 20 (not expressed in schema), the validity constraint linking `type` values to the `duration` enum, and the semantics of the TOSS_SECURITIES_* enum members and of the price basis. The one gap is `excludeInvestmentCaution`, which is never mentioned anywhere, leaving one of five parameters completely undefined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause "국내·미국 주식의 시장·기간별 랭킹" gives a concrete resource (stock rankings) plus scope (KR/US markets, market and period axes). That implicitly separates it from the sibling investor-trading and sector ranking tools, but the description never names them, so the differentiation is left to inference rather than stated.

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?

It supplies one real usage rule — "첫 호출에 필요한 건수 지정" (set the count you need on the first call) — and one exclusion, "TOP_GAINERS/TOP_LOSERS는 realtime 불가." No alternatives are named and there is no guidance on which sibling ranking tool to pick when the agent wants investor or sector data, so usage context is implied rather than directed.

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