Skip to main content
Glama

na_toc

Read-only

Fetch the table of contents for one control number from the National Assembly Library of Korea. Converts escaped HTML to readable text with indentation; returns an empty string if no TOC.

Instructions

[목차] 제어번호 1건의 목차정보를 조회한다.

controlno: 검색 결과의 제어번호.

⚠️ 원문은 HTML 이 이스케이프되어 오므로 이 도구가 태그를 풀어 줄바꿈 텍스트로 정리한다. 실제 주력 구분자는 <p> 다(실측 10/10) — 계층은 행 앞 들여쓰기로 표현되므로 그대로 보존해 돌려준다. ⚠️ 목차가 없는 자료도 정상이다. 검색 결과의 목차 필드가 'Y' 인 자료만 부르면 헛호출과 쿼터 낭비를 줄일 수 있다(개발계정 10,000건/일).

🔴 다음 자료종은 목차 가 전건 'N' 이라 이 도구를 부를 이유가 아예 없다(census 실측): E-BOOK · 학술지,잡지 · 신문 · 국외기사 · 동영상자료. 🔴 목차정보없음 센티널 — 플래그가 'Y' 인데 본문이 그 말의 반복인 자료가 있다 (고서에서 표본 5/5). 최대 792자라 길이 검사를 통과하므로 이 도구가 걸러 빈 문자열로 돌려주고, 원문은 envelope.toc_sentinel 에 남긴다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
controlnoYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: it explains that the raw HTML is escaped, that the tool unescapes and converts it to newline text, that the main delimiter is '<p>', and that hierarchy is preserved via line indentation. It also documents the no-TOC case as normal. The readOnlyHint/openWorldHint annotations are consistent and this context enriches them significantly.

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 well-structured: purpose first, then parameter meaning, then usage warnings presented as clear bullet-like lines. Every sentence earns its place, but the ambiguous phrase '다음 자료종은' promises a list of excluded material types that is not actually enumerated, slightly weakening the structure.

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?

For a simple one-parameter read tool with no output schema, the description covers the input source, output transformation, empty-result behavior, and quota-aware usage guidance. The main gap is the unspecified list of material types that all have TOC='N', which leaves part of the exclusion advice incomplete.

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?

With 0% schema description coverage, the description compensates by explaining that 'controlno' is the control number from search results ('검색 결과의 제어번호'). This adds meaningful sourcing context beyond the bare schema. It does not include example formats, but with a single string parameter this is adequate.

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 description states a specific verb and resource: it retrieves table-of-contents information for one control number ('제어번호 1건의 목차정보를 조회한다'). The [목차] prefix and the scope make the purpose unambiguous, though it does not explicitly differentiate itself from sibling tools like na_detail or na_fields.

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 gives clear selection criteria: call this tool only when the search result's '목차' field is 'Y', and warns that records without TOC are normal. It also notes that certain material types have all 'N' values and should not be called. It does not name alternative tools, so it stops short of full when-to-use-versus-alternatives guidance.

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/rubatoyd/na-openapi-mcp'

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