Skip to main content
Glama

find_corp_code

Read-onlyIdempotent

MyDART MCP의 find_corp_code 도구는 회사명·종목코드로 DART 법인 식별자(corp_code)의 후보를 확인합니다.

[Purpose]

  • IMPORTANT: first call when a company's corp_code is unknown.

  • Also to disambiguate same-named companies.

  • ID resolution only — 업종·data location: get_company_profile; disclosure listings: search_disclosures.

[Usage]

  1. "카카오" → corp_code 획득 → 재무제표 조회(get_financials)

  2. "삼성전자" → corp_code 획득 → 임원 현황 조회(get_periodic_report)

  3. "'동양' 들어가는 회사 후보 보여줘" → query="동양", limit=20

  4. "005930이 어느 회사야?" → query="005930"

[Response]

  • stock_code: 보통주 code (kept after 상장폐지·합병); empty = 비상장.

  • count = rows returned (capped by limit), not the total match count. 0 hits adds notes.

[Rules]

  • results is a similarity-ranked candidate array — do not assume the first item is the answer.

  • corp_code identifies the DART LEGAL ENTITY CODE, not the listing ticker. 우선주 codes map to the 보통주 issuer; ETF/ETN codes have no mapping.

  • Common names may overflow the default limit — raise it when candidates look truncated.

Input Schema

NameRequiredDescriptionDefault
limitNoMax candidates returned
queryYesOne 회사명 (한/영), 6-char 종목코드 (005930·0126Z0) or 8-digit corp_code

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max candidates to return (default 10, max 50)"New value: +"Max candidates returned"
    • changedInput schema / properties / query / description
      Previous value: -"회사명 (한/영), 6-char 종목코드 (digits or alphanumeric like 0126Z0), or 8-digit corp_code"New value: +"One 회사명 (한/영), 6-char 종목코드 (005930·0126Z0) or 8-digit corp_code"
  2. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"회사명 (한/영), 6-digit 종목코드, or 8-digit corp_code"New value: +"회사명 (한/영), 6-char 종목코드 (digits or alphanumeric like 0126Z0), or 8-digit corp_code"
  3. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max candidates to return"New value: +"Max candidates to return (default 10, max 50)"
  4. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"최대 반환 개수"New value: +"Max candidates to return"
    • changedInput schema / properties / query / description
      Previous value: -"회사명(한/영), 6자리 종목코드, 또는 8자리 corp_code"New value: +"회사명 (한/영), 6-digit 종목코드, or 8-digit corp_code"
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context beyond them: results are similarity-ranked (do not trust the first item), count is capped by limit rather than being the total, 0 hits adds notes, and preferred/ETF codes have specific mapping behavior.

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?

Well-structured with [Purpose]/[Usage]/[Response]/[Rules] sections and the critical 'first call' note front-loaded. It is on the long side, but each section carries distinct information (routing, examples, return shape, ranking caveat) rather than repetition.

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?

With no output schema, the description carries the full burden of explaining return values (stock_code semantics, count capped by limit, notes on zero hits) and the ranking caveat. Combined with the schema and annotations, an agent has everything needed to call and interpret this tool correctly.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: query accepts a Korean/English name, a 6-char ticker, or an 8-digit corp_code, and it shows limit in action (limit=20) and warns that common names may overflow the default. This goes beyond the schema's terse field descriptions.

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?

States a specific verb+resource ('회사명·종목코드로 DART 법인 식별자(corp_code)의 후보를 확인') and explicitly distinguishes from siblings, routing 업종·data to get_company_profile and disclosure listings to search_disclosures. An agent can tell this apart from every sibling without opening a schema.

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?

Explicitly names the trigger condition ('first call when a company's corp_code is unknown') plus a disambiguation use case, and gives four concrete input→workflow examples (e.g. '카카오' → get_financials). It also states what the tool is NOT for, pointing to the right alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources