Skip to main content
Glama

excel_close_workbook

Close an opened Excel workbook by filename to free resources and release its file handle.

Instructions

Close workbook, free resources

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": {
      "filename": "<filename>"
    },
    "name": "excel_close_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesOpened workbook name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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. It does not disclose the critical trait for a close operation: whether unsaved changes are discarded, whether a save is required beforehand, or whether the file handle becomes unusable afterward. 'Free resources' hints at session teardown but is not enough for an agent to act safely.

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 short clauses, front-loaded with the action, with zero wasted wording. It is efficient but fragmentary, with no sentence that clarifies consequences.

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?

With no annotations and no output schema, the description is the only place to learn about data-loss risk, return behavior, or error cases for a destructive session-ending operation. Those are all missing, so the definition is under-specified relative to the tool's impact.

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?

There is a single parameter with 100% schema description coverage ("Opened workbook name"), so the schema already explains it. The description adds no meaning about filename format, matching rules, or behavior for an unknown filename, which is the correct baseline 3 for a fully documented single param.

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: "Close workbook," plus a secondary effect ("free resources"). An agent can distinguish this from excel_open_workbook or excel_save_workbook by name alone, but the description itself does no explicit 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 Guidelines3/5

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

The verb 'close' implies the usage context (end of a workbook session), so usage is implied rather than stated. There is no guidance on prerequisites such as saving first, or on what happens if the workbook is not open.

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