Skip to main content
Glama

cad_close_document

Close a saved document created or opened by the current MCP session, refusing preexisting documents and unsaved edits without discarding changes or shutting down the application.

Instructions

Close only a saved document opened or created by this MCP session. Refuse preexisting documents and unsaved edits; no discard, implicit SaveAs or application shutdown.

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": {
      "operation_id": "<operation_id>",
      "document_token": "<document_token>"
    },
    "name": "cad_close_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
operation_idYes
document_tokenYes
explicit_requestNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses refusal behavior for unsaved edits and preexisting documents, and explicitly rules out discarding, implicit SaveAs, and application shutdown. It does not say what happens on refusal (error vs. no-op) or what the tool returns, leaving some behavioral gaps.

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?

Two tight sentences with the primary constraint front-loaded and the prohibited side effects listed after. No redundant or filler wording.

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?

Behavioral scope is well covered for a mutation tool with no annotations and no output schema, but the three parameters are completely undocumented in both schema and description, which an agent needs in order to invoke it correctly.

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 description coverage is 0% and the description never mentions operation_id, document_token, or explicit_request. Notably, explicit_request (default false) plausibly relates to the refusal semantics described, but that relationship is left entirely 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?

A specific verb-plus-resource ('Close ... document') with an explicit scope restriction ('only a saved document opened or created by this MCP session'). It implicitly separates itself from open/save operations ('no implicit SaveAs'), though it never names a sibling tool outright.

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

Usage Guidelines4/5

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

Clearly states the permitted case (session-created or session-opened saved documents) and the refusal cases (preexisting documents, unsaved edits, discard, application shutdown). It gives strong when-to/when-not rules but does not point the agent to an alternative such as cad_save_as when the refusal condition triggers.

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