Skip to main content
Glama

na_collect

Collect legislative data from the National Assembly Library of Korea by querying multiple keywords, merging results as a union (OR), and saving them to xlsx, csv, json, or sqlite files.

Instructions

[수집] 검색어들을 각각 조회해 합집합으로 모으고 파일로 저장한다.

terms: 검색항목,키워드 형식의 검색어 목록. 각각 개별 검색 후 합집합(OR)으로 병합한다. 이 API 의 | 는 AND 이므로 OR 은 이렇게 만들어야 한다. 예: ["전체,교육불평등", "전체,교육격차", "자료명,교육 형평성"] search: 단일 검색어(terms 대신).

⚠️ year_from/year_to/contains로컬 후처리다 — 이미 받은 레코드에만 걸리며 회수 한계를 풀어주지 않는다. 서버측 연도 필터는 상세검색의 option 뿐이므로 연도로 범위를 좁히려면 dbname 과 함께 option="발행년도,2000|발행년도,2010" 을 쓸 것.

formats: xlsx/csv/json/sqlite (기본 3종). save=false 면 저장 없이 미리보기만. out_dir 미지정 시 홈의 na-output/.

반환 메타의 cap_hit_terms 는 회수 한계(99,000건)에 걸린 검색어를, incomplete_terms 는 재시도 후에도 실패한 페이지가 있는 검색어를 지목한다 — 둘 다 전수가 아니라는 뜻이다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
saveNo
termsNo
dbnameNo
optionNo
searchNo
formatsNo
out_dirNo
year_toNo
containsNo
page_sizeNo
year_fromNo
max_recordsNo
extra_paramsNo

Schema Changelog

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

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description adds rich behavioral context: it writes files to disk (formats, save=false preview mode, out_dir default), discloses the '|' means AND operator quirk, exposes the 99,000-record retrieval limit, and explains that cap_hit_terms/incomplete_terms in return metadata signal incomplete data. This complements the openWorldHint annotation with concrete completeness caveats — exactly the context structured fields cannot convey.

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 long but information-dense and well-sectioned: purpose first, then terms semantics, the warning block (marked with ⚠️), formatting/output defaults, and return metadata. Every sentence carries operational value given the 14-parameter surface and zero schema coverage; it could be slightly tightened, but the structure earns its length.

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 complex tool with no output schema and no parameter descriptions, it covers the critical operational aspects: aggregation semantics, parameter defaults, the local-vs-server filtering pitfall, and the meaning of return metadata fields. Minor gaps remain for name, page_size, max_records, and extra_params, which are left undocumented at 0% coverage.

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

Parameters5/5

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

With 0% schema coverage, the description carries the full burden and succeeds: it defines the terms format with an example list, the search single-term alternative, formats allowed values (xlsx/csv/json/sqlite), save=false preview behavior, out_dir default (home na-output/), and the option='발행년도,2000|발행년도,2010' syntax for server-side filtering. Roughly 10 of 14 parameters receive meaningful semantic detail beyond their bare names.

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 opens with '[수집]' and states it queries each search term, aggregates them as a union, and saves to file. This specific verb+resource clearly differentiates it from siblings like na_search, na_detail, and na_status. The union (OR) semantics plus a concrete example make its function unambiguous.

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 context: use `terms` for multiple searches merged by union, `search` for a single term instead of terms, and it explains the OR-vs-AND operator quirk with an example. It also warns when NOT to rely on year_from/year_to (local post-processing only) and directs users to `option` with `dbname` for server-side year filtering. However, it never names sibling tools as alternatives (e.g., when to prefer na_search), so exclusions remain implicit.

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