Skip to main content
Glama

preview_save_report

Read-onlyIdempotent

Validate a report draft against structure and grounding checks to obtain a save approval token, ensuring only error-free drafts are saved to the original file.

Instructions

저장 게이트를 통과하는지 확인하고 승인 토큰을 발급합니다. 쓰지 않습니다.

구조(ST-)와 근거(GR-)를 모두 보고, 오류가 하나도 없을 때만 approval_token이 발급됩니다.

토큰은 이 초안 내용에 묶여 있습니다. 초안을 한 글자라도 고치면 토큰이 달라지므로 다시 미리보기해야 합니다. 깨끗한 초안으로 미리보기하고 다른 초안을 저장하는 경로를 막기 위한 것입니다.

will_overwrite가 True면 기존 산출물을 덮어씁니다. previous_hashline_delta로 무엇이 바뀌는지 확인하고 사람에게 알린 뒤 진행하세요.

Args: path: 원본 파일. draft: 초안 전문.

Returns: PreviewResponse: 게이트 결과, 저장 위치, 덮어쓰기 여부, 승인 토큰.

Examples: - 사용: 근거 대조를 통과한 뒤, 저장 직전 - 사용하지 않음: 근거만 보고 싶을 때 → check_summary_grounding

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes원본 파일
draftYes저장할 초안 (마크다운 전문)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
gradeYes
stageYes분석 워크플로에서 지금 위치한 단계
countsYes
statusYes이 호출의 결과 상태
findingsYes
draft_hashYes
line_deltaYes기존 대비 줄 수 변화
draft_linesYes
output_nameYes
output_rootYes
exempt_linesYes
next_actionsNo이어서 호출하면 좋은 도구 목록
approval_noteNo
previous_hashYes
approval_tokenNo게이트를 통과했을 때만 발급됩니다. **이 초안 내용에 묶여 있어서** 초안을 고치면 무효가 됩니다
blocked_reasonNo
previous_linesYes
will_overwriteYesTrue면 기존 산출물을 덮어씁니다
checked_sentencesYes
Behavior5/5

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

Annotations already cover readOnly, idempotent, and non-destructive hints. The description adds significant behavioral context: the token is bound to the exact draft content, any edit invalidates it, and the tool prevents saving a different draft after preview. It also discloses overwrite behavior and the need to alert a human, going well beyond annotations.

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?

The description is well-structured with a clear lead stating the core purpose and the 'does not write' caveat, followed by crucial token-binding and overwrite warnings, then an Args/Returns/Examples block. Every sentence adds value; it's thorough without being bloated.

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?

For a gate-check tool with an output schema, the description covers all necessary context: the gate logic (structure and grounds checks), token binding, overwrite implications, and usage timing. It distinguishes from the sibling that covers grounds only, and the return type is mentioned. Nothing critical is missing for an agent to use it correctly.

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

Parameters4/5

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

Schema already describes both parameters (path and draft) fully, so the baseline is 3. The description adds meaningful context about the draft parameter—namely that the token is sensitive to any change in its content, which affects how the agent should treat it. It also clarifies path as the original file, matching the schema but reinforcing usage.

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 clearly states the tool's purpose: it verifies that a draft passes the save gate and issues an approval token, explicitly noting it does not write. It distinguishes itself from siblings by naming check_summary_grounding as the alternative for when only grounds are needed, and the context implies it precedes save_approved_report.

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?

Provides explicit usage guidance: use it after passing grounds comparison and right before saving; do not use it when only grounds are needed, pointing to check_summary_grounding. It also warns about overwriting and instructs to inform a human first, covering both when-to-use and when-not-to-use.

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