Skip to main content
Glama

trty_search

Read-onlyIdempotent

Search Korean international treaties with foreign countries and organizations. Filter by keyword, treaty type, country, and effective/conclusion dates for targeted results.

Instructions

Search international treaties (조약 목록 조회).

This tool searches Korean international treaties concluded and in effect with foreign countries and international organizations.

Args: query: Search keyword (default "*") display: Number of results per page (max 100, default 20) page: Page number (1-based, default 1) oc: Optional OC override (defaults to env var) type: Response format - "JSON" (default), "XML", or "HTML" search: Search type (1=조약명, 2=본문검색) sort: Sort order - "lasc"|"ldes"|"dasc"|"ddes"|"nasc"|"ndes" gana: Dictionary search (ga, na, da, ...) eft_yd: Effective date range (YYYYMMDDYYYYMMDD) conc_yd: Conclusion date range (YYYYMMDDYYYYMMDD) cls: Treaty type - 1=양자 (bilateral), 2=다자 (multilateral) nat_cd: Country code filter ctx: MCP context (injected automatically)

Returns: Search results with treaty list or error

Examples: Search bilateral treaties with the US: >>> trty_search(query="미합중국", cls=1)

Search multilateral treaties:
>>> trty_search(cls=2, display=20)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ocNo
clsNo
ganaNo
pageNo
sortNo
typeNoJSON
queryNo*
eft_ydNo
nat_cdNo
searchNo
conc_ydNo
displayNo
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is known. The description adds useful behavioral context by stating that it returns 'Search results with treaty list or error' and by clarifying that it searches only treaties that are in effect, which is beyond the schema. 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 longer than strictly necessary, but the structured Args and Examples sections make it easy to scan. Every item in the parameter list earns its place because the schema provides no descriptions. The bilingual Korean/English text adds a little length but these are translations for a Korean legal database, not wasted words.

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 the complexity (12 params, no output schema), the description is nearly complete. It covers purpose, parameters, return type, and gives practical examples. The return section is minimal ('Search results with treaty list or error'), but for a list-style search tool this is adequate. It could be improved by describing the structure of a single result, but this is a minor gap.

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?

Schema description coverage is 0%, so the description must compensate. It does so thoroughly by explaining all 12 parameters, including meanings, defaults, constraints (e.g., max 100 for display, format for date ranges), and search types. This is exemplary compensation for the lack of schema 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?

The description opens with 'Search international treaties (조약 목록 조회)' which is a specific verb+resource combination. It further clarifies that it searches Korean international treaties in effect with foreign countries and organizations, clearly distinguishing this from sibling tools like law_search or prec_search.

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 provides clear context by specifying the exact domain (Korean international treaties) and the scope (concluded and in effect). However, it does not explicitly mention when not to use it or name alternatives, such as trty_service, which would make the guidance more complete.

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/joohyukjung/LexLink-ko-mcp'

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