AgentLink Korea demonstrates solid schema definition with consistent patterns across all 9 tools. All tools have clear action verbs (verify_, get_, search_), well-structured Zod schemas with regex validation and enums, and bilingual descriptions (Korean). However, several critical gaps prevent a higher score: (1) Output schemas are not documented, responses are JSON-stringified without a declared return type structure, forcing LLMs to parse unstructured text; (2) Error handling lacks recovery guidance, no actionable error messages, error classification, or suggestions for next steps; (3) Parameter descriptions, while present, are sparse (avg 40-60 chars vs. baseline 72) and lack constraint documentation (e.g., 'minLength', 'maxLength' are in schema but not repeated in descriptions); (4) No per-tool error handling, validation guidance, or examples of success/failure responses; (5) Tools accept business_number, court_type, region enums but descriptions do not repeat the enum options for clarity. Tools are well-named (verb_noun), schemas are properly typed with Zod, and default values are sensible (page=1, page_size=10-20, include_expired=false). Descriptions are adequate but could be richer with constraint details and dependency hints.
Tools (9)
get_business_inforead onlysource verified81/100
Retrieve detailed info about a registered Korean business entity (사업자 상세 정보 조회)
get_disaster_alertsread onlysource verified83/100
Retrieve current disaster alerts and safety notifications in Korea (행정안전부 재난 알림 조회)
Output schemas undocumented. All tools return JSON-stringified AgentLinkResponse without declaring the structure of data, error, or metadata fields. LLMs cannot infer downstream object shape, forcing unstructured text parsing.
No error recovery guidance. Tools return JSON-stringified responses, but error messages lack context, classification (retryable vs. user-fixable), or suggestions for next steps. E.g., a failed business verification returns only {success:false, error:{code, message}} without guidance like 'Try verify_business_registration with a different format' or retry recommendation.
Document output schema for all tools. Instead of returning JSON-stringified AgentLinkResponse, declare the response structure in tool descriptions: 'Returns: {success: bool, data: {field1: string, field2: number, ...}, error?: {code: string, message: string}, metadata: {source: string, retrieved_at: ISO8601, cached: bool}}'. Consider returning structured objects directly (not JSON strings) so LLMs can access fields without parsing.
Add error recovery guidance to tool descriptions and stub responses. E.g., verify_business_registration failure: 'Invalid format. Business registration numbers are formatted as XXX-XX-XXXXX. If you only have a bare number, try reformatting it. If it fails again, the business may be unregistered, try search_business_registry() for similar names.'
Restate enum and constraint options in parameter descriptions. For get_disaster_alerts region param: 'Region filter, valid values: all, seoul, busan, daegu, incheon, gwangju, daejeon, ulsan, sejong, gyeonggi, gangwon, chungbuk, chungnam, jeonbuk, jeonnam, gyeongbuk, gyeongnam, jeju. Default: all.' This makes the constraint obvious without requiring the LLM to read the schema.
Add pagination metadata guidance to search tools. search_court_precedents description should state: 'Returns paginated results. Response includes total_count and has_next fields. Use page (1 - based) and page_size (1 - 50, default 10) to iterate. Searching returns up to 50 items per page; results are sorted by judgment date (newest first).'
Expand parameter descriptions with context and relationships. E.g., get_vat_data year param: 'Tax year (과세연도), valid range 2000 - 2030. If querying recent tax, use current year. For quarterly VAT reports, also set quarter (1 - 4). If you need electronic invoices instead, call get_tax_invoice().'
No documented return type or pagination guidance. Tools like search_court_precedents and search_public_notices accept page and page_size but do not document the response structure (e.g., total_count, has_next, items[]). Lack of pagination metadata forces LLMs to guess whether more results exist.
Sparse parameter descriptions (avg 40 - 70 chars). Baseline is 72 chars. Many descriptions lack context on use case. E.g., get_vat_data's 'year' param is described only as 'Tax year (과세연도)', no guidance on valid range, query context, or when to use it vs. get_tax_invoice.
No explicit data source or permission declaration. Tools access Korean government registers (tax, business, court, disaster, public data), but descriptions do not clarify data freshness, access restrictions, authentication scope, or compliance context (e.g., 'Requires Hometax access' or 'Data updated daily at 00:00 KST').
Declare data freshness and access scope. Add metadata to tool descriptions: 'Data source: National Tax Service (홈택스), updated daily. Requires business_number in XXX-XX-XXXXX format. Note: Financial summaries (include_financial=true) may not be available for all entity types or recent registrations.' This prevents silent failures and sets user expectations.
Consider adding a discover_tool or describe_tools tool that lists available data sources and their prerequisites. Tools access multiple Korean government registers, a discovery tool helps agents understand the ecosystem and choose the right tool for the task.
Add confidence or reliability metadata to responses. E.g., verify_business_registration could return {success: true, is_valid: bool, confidence: 'high'|'medium'|'low', registered_date?: string, status?: 'active'|'suspended'|'closed'}. This helps agents decide whether to proceed or request user confirmation.
Define error codes and recoverable states. Instead of generic error messages, define codes like 'INVALID_FORMAT', 'NOT_FOUND', 'SERVICE_UNAVAILABLE', 'PERMISSION_DENIED'. Each code maps to a retry strategy (e.g., NOT_FOUND → suggest alternative lookup; SERVICE_UNAVAILABLE → retry after delay).
Document tool dependencies and call ordering. E.g., 'To retrieve tax invoices, you must first verify the business_number with verify_business_registration(). If unverified, get_tax_invoice() will return access_denied.' This prevents wasted calls and guides multi-step plans.