Skip to main content
Glama

save_approved_report

DestructiveIdempotent

Save an approved report draft to the output directory after re-validating structure, evidence, and token; overwrites existing files and logs an audit trail.

Instructions

승인된 초안을 output_root에 저장합니다. 이 서버의 유일한 쓰기 도구입니다.

사용자가 명시적으로 승인한 뒤에만 부르세요. 승인은 사람만 할 수 있는 단계입니다. 미리보기가 READY라는 것은 "저장해도 된다"가 아니라 "게이트를 통과했다"는 뜻입니다.

게이트를 전부 다시 확인합니다 — 구조 · 근거 · 토큰 · 저장 위치. 미리보기가 통과했다는 말을 믿지 않습니다. 오류가 남아 있으면 DRAFT_NOT_CLEAN, 초안이 바뀌었으면 APPROVAL_TOKEN_MISMATCH로 거부합니다.

기존 산출물이 있으면 덮어씁니다. 덮어쓴 사실과 이전 내용의 해시는 감사 기록에 append됩니다 — 기존 기록을 고치거나 지우지 않습니다.

Args: path: 원본 파일. draft: 초안 전문. 미리보기 때와 같아야 합니다. approval_token: 미리보기가 발급한 토큰.

Returns: SaveResponse: 저장 위치, 덮어쓰기 여부, 감사 기록 항목.

Examples: - 사용: 사람이 "저장해"라고 말한 뒤 - 사용하지 않음: 미리보기가 BLOCKED인 상태 — 저장되지 않습니다 - 사용하지 않음: 사람의 승인 없이 흐름을 이어가려 할 때

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes원본 파일
draftYes저장할 초안. preview_save_report에 넘긴 것과 **완전히 같아야** 합니다
approval_tokenYespreview_save_report가 발급한 토큰

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYes
pathYes
stageYes분석 워크플로에서 지금 위치한 단계
statusYes이 호출의 결과 상태
overwroteYes
audit_fileYes
draft_hashYes
audit_entryYes감사 기록에 append된 한 줄
draft_linesYes
output_nameYes
output_rootYes
next_actionsNo이어서 호출하면 좋은 도구 목록
previous_hashYes
Behavior5/5

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

Goes far beyond the destructiveHint/readOnlyHint annotations: discloses that it re-validates all gates independently of the preview, specifies failure codes (DRAFT_NOT_CLEAN, APPROVAL_TOKEN_MISMATCH), explains overwrite behavior, and reveals the append-only audit log that preserves prior hashes and never modifies/deletes existing records. No contradiction with 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?

Front-loaded with the most critical facts (only write tool, approval required), then proceeds through gate re-checking, overwrite/audit behavior, and closes with a valuable use/don't-use Examples section. Every sentence earns its place; the length is justified by the destructive nature of the tool.

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?

Complete for a destructive write tool: it ties into the preview_save_report workflow, states approval requirements, error conditions, overwrite and audit semantics. An output schema (SaveResponse) exists so return values need no elaboration, and allowed roots are covered by the list_allowed_roots sibling. Nothing essential 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 description coverage is 100%, with all three parameters already well documented, including the constraint that draft must exactly match what was passed to preview_save_report. The description's Args section largely mirrors the schema, adding little new meaning, so the baseline 3 applies — the schema carries the burden.

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?

States a specific verb ('저장합니다') + resource ('output_root') and explicitly positions itself as the only write tool on the server, clearly distinguishing it from its read-only siblings including the paired preview_save_report. An agent immediately understands what this tool does and how it differs.

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 when-to-use guidance ('only after the user has explicitly approved', approval is human-only) and when-not-to-use examples (preview BLOCKED, or continuing without approval). Clarifies that a READY preview is not permission to save — it only means the gate was passed — which directly prevents misuse.

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