Skip to main content
Glama
Kuco-dev

tossinvest-api-mcp

by Kuco-dev

getRankings

Read-onlyIdempotent

Retrieve stock rankings by market, duration, and type. Includes top gainers, losers, and trading metrics for KR and US stocks.

Instructions

주식 랭킹 조회

지정한 시장(marketCountry) · 기간(duration) · 기준(type)의 주식 랭킹을 조회합니다. 상위 100위까지 제공합니다.

  • TOP_GAINERS / TOP_LOSERSduration=realtime 을 지원하지 않습니다 (400 unsupported-ranking-duration).

  • tradingVolume / tradingAmount 의 집계 기준은 type 이 결정합니다 — TOSS_SECURITIES_* 는 토스증권 체결 기준, 그 외(MARKET_* / TOP_*)는 시장 전체 기준.

  • price.basePriceTOP_GAINERS / TOP_LOSERSduration 시작 시점 기준가이며, 나머지 타입은 duration 과 무관하게 항상 전일 기준가입니다. price.changeRate 도 같은 의미를 따릅니다 (기간 등락률 vs 전일 대비 등락률).

  • 응답 항목 수는 count 보다 적을 수 있습니다 (시세 조회에 실패한 종목은 제외).

  • 랭킹이 집계되지 않은 조합은 에러가 아닌 빈 rankings 배열로 응답하며, 이때 rankedAt 은 null 입니다.

Rate Limits Group: RANKING

[GET /api/v1/rankings]

tags: Ranking

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes쿼리 파라미터
Behavior4/5

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

Annotations indicate read-only, idempotent, non-destructive. The description adds behavioral details: response count may be less than requested, empty rankings on no aggregation, and nuanced price.basePrice behavior. It does not contradict 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 structured with bullet points, front-loaded with the main purpose. While somewhat lengthy, every sentence adds value without redundancy.

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 tool complexity, the description covers major edge cases (unsupported duration, missing data, price behavior). No output schema exists, but description partially addresses return structure. Sufficiently complete for most use cases.

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 baseline is 3. The description adds context on aggregation logic and price semantics, but the schema already describes each parameter adequately.

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 queries stock rankings by marketCountry, duration, and type, providing top 100. It distinguishes itself from siblings by focusing on rankings and includes detailed type and duration explanations.

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 explains when to use the tool (get rankings) and highlights that TOP_GAINERS and TOP_LOSERS do not support realtime duration, guiding against invalid usage. It does not explicitly mention alternatives but the context makes it clear.

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/Kuco-dev/tossinvest-api-mcp'

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