Skip to main content
Glama

close_workbook

Close an open workbook to free memory. Use this when done with a workbook; saving is not automatic, so save changes first.

Instructions

Close a workbook and free memory. Does not save automatically.

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": {
      "workbookId": "<workbookId>"
    },
    "name": "close_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
workbookIdYesThe workbook ID to close

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. It usefully flags the critical side effect that unsaved changes are not persisted and mentions memory release, but leaves unclear whether unsaved edits are discarded, whether invalid IDs raise errors, and whether the call is idempotent.

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 short sentences, zero filler, and the operation-plus-scope is front-loaded ahead of the caution about saving. Nothing is redundant or padded.

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 one-parameter tool with no output schema, the definition covers what an agent minimally needs: the action, the memory effect, and the key risk around unsaved data. Only the exact fate of unsaved changes and error behavior remain unspecified.

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, workbookId, with 100% schema description coverage, so the schema already fully documents it. The description adds no meaning beyond that, which is the baseline expectation at full coverage.

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?

"Close a workbook and free memory" states a specific verb and resource, and "Does not save automatically" implicitly separates it from save_workbook. It does not name the sibling explicitly, so differentiation is inferential rather than stated.

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: the no-auto-save note hints that save_workbook should be called first, but the description never says so, nor does it state when not to close (e.g., mid-operation or when unsaved edits exist). No alternative tool is named.

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