Skip to main content
Glama
Alex-eng-ux

Office MCP Server

by Alex-eng-ux

Get Excel File Information

office_get_excel_info
Read-onlyIdempotent

List all sheet names and their row and column counts in an Excel file. Provide the file path to retrieve this information.

Instructions

Get information about an Excel file, including all sheet names and dimensions.

Args:

  • filePath (string): Path to the Excel file

Returns: { "sheets": [ { "name": string, "rowCount": number, "columnCount": number } ] }

Examples:

  • Use when: "What sheets are in this Excel file?"

  • Use when: "How big is the data in report.xlsx?"

  • Use when: "List all sheets in the workbook"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesPath to the Excel file
Behavior4/5

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

Annotations already readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds the return structure (sheets with name, rowCount, columnCount), providing behavioral insight beyond safety. No contradiction with annotations.

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?

The description is concise, with a clear summary line, structured Args and Returns sections, and three example uses. No superfluous content; all sentences serve a purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one parameter and no output schema, the description fully explains the return value and example use cases. Sibling tools are distinct, and the tool's role is well-defined.

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% with one parameter (filePath) already described. The description does not add extra detail beyond the schema, so baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly states 'Get information about an Excel file, including all sheet names and dimensions.' It specifies the resource (Excel file) and the action (get structural info), distinguishing it from siblings like office_read_excel (which reads cell data).

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

Usage Guidelines4/5

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

The description provides three explicit usage examples (e.g., 'What sheets are in this Excel file?'), effectively guiding when to use this tool. It does not explicitly state when not to use, but the examples make the context clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Alex-eng-ux/office-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server