Skip to main content
Glama

build_analysis_prompt

Read-onlyIdempotent

Combines template, table of contents, and anchored source text into one call, providing all materials needed to draft a report without separate reads.

Instructions

초안을 쓰기 위한 재료를 한 번에 받습니다 — 템플릿 + 앵커 붙은 원문 + 목차.

read_document를 따로 부를 필요가 없습니다. 초안은 당신이 씁니다 — 이 도구는 형식과 원문을 주기만 합니다.

source_with_anchors에 있는 앵커만 인용하세요. 여기 없는 앵커를 쓰면 preview_save_reportGR-02로 막습니다.

required_sections의 절을 빠뜨리면 저장이 막힙니다. ungrounded_sections의 절에는 앵커를 붙이지 않아도 됩니다.

Args: path: 분석할 파일. start: 시작 블록 번호. end: 끝 블록 번호(포함).

Returns: BuildPromptResponse: 템플릿·목차·앵커 붙은 원문·확정 등급·절 목록.

Examples: - 사용: "이 문서 분석해 줘" 를 받은 직후 - 사용하지 않음: 본문 일부만 다시 보고 싶을 때 → read_document - 사용하지 않음: 등급 C 문서 → read_document_image로 판독한 뒤 초안을 씁니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo끝 블록 번호(포함). None이면 글자 수 상한까지
pathYes분석할 파일
startNo시작 블록 번호(1부터)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYes
pathYes
unitYes
gradeYes
stageYes분석 워크플로에서 지금 위치한 단계
startYes
statusYes이 호출의 결과 상태
outlineYes제목 트리 (앵커 포함). 없으면 '목차 없음'
templateYes채워야 하는 고정 형식
file_nameYes초안 제목 줄에 넣어야 하는 원본 파일명
truncatedYesTrue면 원문이 다 실리지 않았습니다
unit_countYes
grade_reasonYes
next_actionsNo이어서 호출하면 좋은 도구 목록
total_blocksYes
required_sectionsYes빠뜨리면 저장이 막히는 절
source_with_anchorsYes앵커가 붙은 원문. 여기서만 인용하세요
ungrounded_sectionsYes앵커를 요구하지 않는 절
Behavior5/5

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

Even with annotations carrying readOnlyHint/idempotentHint/destructiveHint, the description adds substantial behavioral context: only anchors in source_with_anchors are citable, missing required_sections blocks saving, ungrounded_sections need no anchors, and the tool forces the agent to write the draft itself. It also discloses the GR-02 error consequence with preview_save_report — meaningful behavioral detail that annotations cannot convey. No contradiction with the stated read-only, idempotent profile.

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 somewhat long but front-loaded with the core purpose before constraints, and organized into clear sections (purpose, constraints, args, returns, examples). Every sentence earns its place given the tool's complex blocking rules and sibling differentiation needs; the use/not-use examples are especially economical. Slightly heavier than ideal but well-structured for the complexity it must carry.

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

Completeness5/5

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

With an output schema (BuildPromptResponse) covering the return values, the description properly focuses on usage, differentiation, and constraints. It covers when to invoke, what blocks downstream saving, how anchoring works, and the grade-C fallback path. Nothing an agent needs to call this tool correctly and avoid downstream failures is missing.

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 coverage is 100%, so the baseline is 3. The description's Args section largely duplicates schema text (path = file to analyze, start/end = block numbers, end inclusive, None = text length limit). It adds essentially no new meaning beyond the schema — the Args block is a near-verbatim restatement, so it earns the baseline without exceeding it.

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 by stating the tool collects all draft materials at once — template, anchored source text, and table of contents — establishing a clear verb-resource relationship. It further distinguishes itself from siblings by explicitly declaring 'no need to call read_document separately' and clarifying the tool only supplies format and source while the agent writes the draft. This unambiguous differentiation makes sibling confusion unlikely.

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

Usage Guidelines5/5

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

The description provides explicit when-to-use and when-not-to-use guidance: use it right after receiving an 'analyze this document' request; use read_document when viewing partial text; use read_document_image for grade C documents before drafting. It also specifies downstream blocking consequences (GR-02 for unlisted anchors, save blocked for missing required_sections), giving the agent concrete decision criteria for selecting this tool over alternatives.

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/goods9999-ai/personal-file-analysis-mcp_test_20260826'

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