Skip to main content
Glama
mjyoo2
by mjyoo2

save_document

Persist changes to an open HWP document. Supply the document ID and an optional output path to save to a new location; omit the path to overwrite the original.

Instructions

Save the document.

Args: doc_id: Document ID from open_document output_path: Optional output path. If None, overwrites the original.

Returns: Save confirmation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_idYes
output_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose a critical behavior: if output_path is None, the original file is overwritten. However, it omits other behavioral details such as whether this modifies the in-memory open document, permission requirements, or error behavior, so it is only partially transparent.

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 compact and front-loaded with the action, then organized into Args and Returns. Every sentence conveys useful information without repetition or fluff, making it easy for an agent to parse quickly.

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

Completeness4/5

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

For a two-parameter save operation, the description covers the parameters and the return value. It also gives prerequisite context (doc_id from open_document). It is slightly incomplete because it does not mention the closely related sibling 'save_document_as' or what the save confirmation looks like, but the output schema signal reduces the need for return-value detail.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates by explaining both parameters. It clarifies that doc_id is a Document ID from open_document and that output_path is optional with explicit null behavior (overwrite original). This adds meaningful semantics beyond the raw type information in the schema.

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 states a clear verb-resource pair ('Save the document') and explains the core behavior via its parameters. It does not explicitly distinguish itself from the sibling 'save_document_as', which could confuse an agent choosing between the two save tools, so it loses a point for missing sibling differentiation.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives like 'save_document_as' or 'save_block'. The only context is that doc_id comes from open_document, which implies a prerequisite but not a decision rule. No exclusions or alternative routing are provided.

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/mjyoo2/hwp-mcp'

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