Skip to main content
Glama

save_workbook

Saves an open workbook to disk at its original location or to a specified file path when a custom destination is needed.

Instructions

Save a workbook to disk. If filePath is not provided, saves to the original location.

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": "save_workbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathNoThe file path to save to (optional if workbook was opened from a file)
workbookIdYesThe workbook ID (e.g., 'wb_1')

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?

With no annotations, the description carries the full burden and does disclose one genuinely useful behavioral fact: omitting filePath saves back to the original location. It says nothing about overwrite behavior, whether saving to a new path rebinds the workbook to that file, permission/read-only failures, or whether the return signals success, which matters for a write operation.

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, with the core action front-loaded and the fallback condition second. Nothing here could be removed without losing information.

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?

For a two-parameter write tool with no annotations and no output schema, the definition covers the action and the parameter default but omits result behavior and failure modes an agent would need to handle save errors or verify completion. Reasonably complete but with clear gaps around outcomes.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real semantic value by explaining the conditional default when filePath is absent — a behavioral consequence the schema only hints at with 'optional if workbook was opened from a file' and doesn't state what happens otherwise.

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 a workbook to disk') so an agent can distinguish it from sibling mutations like close_workbook or write_range. It does not explicitly contrast with close_workbook, which is the most plausible ambiguity (does closing save?), so differentiation is only partial.

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 by the verb: call this to persist changes. There is no statement of when not to use it, no alternative named (e.g., whether close_workbook also persists), and no prerequisite such as needing unsaved edits or an open handle. Adequate but leaves routing to inference.

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