Skip to main content
Glama

excel_get_workbook_context

Retrieve the current context and state of an Excel workbook by filename to understand its structure before performing read, write, or manipulation operations.

Instructions

Get workbook context and state

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_get_workbook_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYesWorkbook name to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries the entire behavioral burden and discloses nothing beyond the word "Get." It does not state whether the workbook must already be opened, whether the operation is read-only and side-effect free, what happens if the filename is wrong, or what the caller receives back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five words with nothing wasted, but the terseness comes from under-specification rather than discipline. There is no structure or front-loaded detail because there is almost no content.

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?

For a tool with no annotations and no output schema, the description should explain what "context and state" comprises and any ordering constraints. Neither is present, so an agent cannot predict the result or know when the call is valid.

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 required parameter whose schema description ("Workbook name to check") is fully documented at 100% coverage, so the baseline is 3 per the high-coverage rule. The description adds no path/format or naming-convention detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

A verb plus resource ("Get workbook context") is present, but "context and state" is undefined — it never says whether this returns sheet names, active sheet, dimensions, protection status, or something else. It is distinguishable from excel_get_cell_info or excel_get_column_stats only by the vague word "workbook," not by any stated scope.

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

Usage Guidelines2/5

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

No when-to-use guidance at all: no mention of calling it after excel_open_workbook, no prerequisites, no alternatives such as excel_get_named_ranges or excel_get_dependencies. The agent must guess whether this is a discovery step or an inspection step.

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