Skip to main content
Glama

save_document

Save the active Revit document in its current location or to a new path, and optionally overwrite an existing file.

Instructions

Save the active document, or Save As a new path.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "save_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
overwriteNo
save_as_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutation tool. It does not say whether saving overwrites the existing file, whether the overwrite flag gates that, what happens on failure, or what the return value reports.

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 sentence with no filler, and the save-in-place case is stated before the Save As variant. The phrasing is terse to the point of being slightly ambiguous about what 'a new path' means.

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?

An output schema exists so return values need no explanation, but for an unannotated write tool with two undocumented parameters the description is too thin. The overwrite semantics and active-document precondition are the main omissions.

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

Parameters2/5

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

Schema coverage is 0%, so the description must explain both parameters. 'Save As a new path' loosely maps to save_as_path, but the 'overwrite' boolean and its interaction with a save-as path are entirely undocumented, leaving the riskiest parameter unexplained.

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?

States a specific verb and resource ('Save the active document') and covers the Save As variant, which is enough to distinguish it from open_document and new_document siblings. It stops short of naming an alternative explicitly, so a 4 rather than a 5.

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?

The two clauses imply that supplying a new path selects Save As while the default saves in place, which is usable implied guidance. It never states the precondition that an active document must exist, nor when to prefer Save As over a plain save.

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