Skip to main content
Glama

get_sheet_info

Retrieve the size, dimensions, and row or column counts of a specified worksheet in an Excel workbook to inspect its structure before reading or editing data.

Instructions

Get information about a sheet including dimensions and row/column counts

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>",
      "sheet": "<sheet>"
    },
    "name": "get_sheet_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetYesSheet name or index (1-based)
workbookIdYesThe workbook ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/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 'Get' implies a non-mutating read but nothing states that explicitly. It does add real behavioral value by naming what comes back (dimensions, row/column counts), which matters since there is no output schema. It says nothing about error conditions, whether the workbook must be open, or cost of the call.

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?

A single front-loaded sentence with zero filler; every clause contributes either the action or the return content.

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 simple two-parameter read tool with full schema coverage, the description covers purpose and the shape of the returned metadata, which substitutes for the absent output schema. It falls slightly short on preconditions and on whether additional sheet metadata beyond dimensions is included.

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?

Schema coverage is 100% and both parameters are documented in the schema, including that 'sheet' accepts a name or 1-based index. The description adds no meaning beyond that, so the baseline of 3 applies.

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?

The description names a specific verb ('Get') and resource ('information about a sheet') and narrows the payload to dimensions and row/column counts, so an agent knows this is a metadata lookup rather than a data read like read_range. It does not explicitly distinguish itself from siblings such as list_sheets or list_columns, leaving that inference to the caller.

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?

There is no when-to-use guidance, no mention of prerequisites (e.g., the workbook must be open), and no routing to alternatives such as list_sheets for enumerating sheets. Usage is only implied by the verb 'Get'.

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