Skip to main content
Glama
Model MCP

Model MCP

Close Document

revit_close_document
Destructive

Close a background Revit document while confirming whether to save or discard pending changes.

Instructions

Close a background document. Confirmation is required when saving or discarding changes, except MCP-opened detached noncentral documents closed without saving.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document": "<document>"
    },
    "name": "revit_close_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNo
documentYes
process_idNo
confirm_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.10.0
    • removedInput schema / properties / confirm_token / title
      Removed value: -"Confirm Token"
    • removedInput schema / properties / document / title
      Removed value: -"Document"
    • removedInput schema / properties / process_id / title
      Removed value: -"Process Id"
    • removedInput schema / properties / save / title
      Removed value: -"Save"
    • removedInput schema / title
      Removed value: -"revit_close_documentArguments"
    • removedOutput schema / title
      Removed value: -"revit_close_documentDictOutput"
  2. Addedv0.7.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond destructiveHint=true and idempotentHint=false, the description discloses a real behavioral rule: a confirmation step is triggered when saving or discarding changes, with a documented exception for MCP-opened detached noncentral documents closed without saving. It stops short of saying how a confirm_token is obtained or what failure looks like when confirmation is absent.

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?

Two dense sentences with the operation stated first and the confirmation rule second; nothing is filler. The exception clause is grammatically dense but carries necessary policy detail.

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

Completeness3/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, and the destructive/confirmation profile is partially covered. However, for a destructive mutation with an undocumented confirm_token workflow and an unexplained process_id, key operational details are 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 coverage is 0% across four parameters, so the description must compensate. It indirectly maps 'saving or discarding changes' to `save` and 'confirmation is required' to `confirm_token`, but `process_id` is never addressed and no parameter is named or given format/value guidance.

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?

Specific verb+resource: 'Close a background document', which distinguishes it from revit_close_views (views) and revit_save_document (persisting). The 'background' qualifier usefully narrows scope, though it never says what happens if the target is the active document.

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?

Usage is implied rather than stated: the confirmation clause hints at the save/discard decision path, but there is no explicit when-to-use vs. revit_close_views or revit_activate_document, and no prerequisite guidance on when a document is closable.

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

Deploy Server

Other Tools