Skip to main content
Glama

Save the document

save_file
Destructive

Saves the document to a file. A file path is required the first time you save programmatically.

Instructions

Save the document; path is needed the first time a document is saved programmatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already disclose destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is known. The description adds one genuine behavioral detail beyond them: that the path is only needed on the first programmatic save, implying the tool remembers the target. It does not explain the overwrite/destructive semantics that destructiveHint implies.

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?

A single front-loaded clause with no wasted words, and the key constraint about `path` follows immediately. It is appropriately terse, though for a destructive mutation the brevity comes at the cost of missing behavioral detail.

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

Completeness2/5

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

For a destructive write with no output schema and 0% schema coverage, the definition should state overwrite behavior, error conditions, and the return/confirmation surface. None of that is present, so an agent lacks what it needs to invoke this mutation safely.

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 0% and the single `path` parameter is only typed as a string with minLength 1. The description compensates partially by stating when path is needed (first programmatic save), but never explains what the path refers to (filesystem path? document identifier?) or the format expected.

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 gives a specific verb+resource ('save the document'), which clearly distinguishes it from siblings like open_file, export, and inspect_document. It does not name an alternative tool, but the action is unambiguous enough to identify without opening the schema.

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?

There is an implied usage cue (this is the step after programmatic edits produce a document), and the description hints when a path is required on the first save. However, it names no alternatives or when-not-to-use conditions, and does not clarify the relationship to export or open_file.

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