Skip to main content
Glama

get_legal_api_body

Read-onlyIdempotent

Fetch full legal document text from DAPA using apiId and document identifiers; automatically extracts body content from official file attachments including HWP, PDF, and DOCX.

Instructions

목록 apiId와 결과 식별자로 대응 본문 API를 자동 호출합니다. 별표·서식은 목록의 공식 파일 링크를 내려받아 HWP/HWPX/PDF/XLSX/DOCX 본문을 텍스트로 추출합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNo
apiIdYes
limitNo
queryNo
customCodeNo맞춤형서비스 vcode
documentIdNo
forceRefreshNo캐시를 사용하지 않고 API에서 다시 조회합니다.
articleNumberNo조번호 4자리와 가지번호 2자리
attachmentUrlNo별표·서식 목록 응답의 공식 파일/PDF 링크

Schema Changelog

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

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already signal read-only, open-world, idempotent, non-destructive behavior. The description usefully adds implementation behavior beyond that: multiple underlying body APIs may be auto-invoked, and attachment/form bodies are obtained by downloading and text-extracting specific file formats. It does not cover failure/error or rate-limit behavior, but that is a minor gap for a read-only convenience wrapper.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two front-loaded sentences accomplish the entire description: the primary behavior first, then the special attachment/form extraction path. There is no redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is complete enough for recognizing the tool's role, and the annotations cover safety. But with nine parameters, a large apiId enum, and no output schema, it does not specify return structure or which parameters are required for particular apiId categories, and it does not route the agent away from sibling body/detail tools.

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

Parameters3/5

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

Schema description coverage is only 44%, and the description partially compensates by explaining that apiId refers to a list API and attachmentUrl is the official file/PDF link used for file extraction. However, it leaves page/limit/query/documentId mapping implicit, referring only to a vague 'result identifier', so it does not fully make up for the missing parameter descriptions.

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 clearly states the operation: automatically call the corresponding body API using a list apiId and a result identifier, and for attachment/form results download the official file link and extract text from HWP/HWPX/PDF/XLSX/DOCX. It does not explicitly name a sibling tool or contrast itself with query_legal_api/get_legal_detail, so it stops short of full differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The intended context is implied: use it when you already have a list apiId and a result identifier and need the full body, or when you need attachment/form text from an official file link. It gives no explicit when-not-to-use guidance or alternatives, so an agent must infer the boundary against sibling tools.

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

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/ai-studying-man/DAPA-MCP'

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