Skip to main content
Glama

Excel Get Table Rows

excel_get_table_rows
Read-only

Retrieve column headers and all data rows from an existing Excel table in Microsoft 365. Specify the file, worksheet, and table to access its structured data.

Instructions

Get column headers and data rows from an existing Excel table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
site_idNoOptional SharePoint Site ID.
drive_idNoOptional SharePoint Drive ID.
worksheet_nameYesWorksheet name (e.g. 'Sheet1').
item_id_or_pathYesDrive item ID or file path (e.g. '/Reports/Sales.xlsx').
table_name_or_idYesName or ID of the table.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds that the tool returns both column headers and data rows, which is useful. It does not disclose details like pagination, row limits, or whether the entire table is returned, but given the annotations, this is acceptable.

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, concise sentence that front-loads the action and the resource. No wasted words.

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?

The tool has an output schema, so return values are already documented. The description covers the core purpose and the annotations cover safety. The only minor gap is that it doesn't mention any limitations (e.g., whether it returns all rows or paginates), but for a read-only list-like operation, this is not a critical omission.

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 description coverage is 100%, so the schema already documents all five parameters. The description adds no additional meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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 states a specific verb ('Get') and resource ('column headers and data rows from an existing Excel table'), which clearly distinguishes it from sibling tools like excel_create_table or excel_add_table_rows. It doesn't explicitly name a sibling, but the action is unambiguous.

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?

The description implies usage context: it is for reading from an existing table, not creating or writing. However, it does not explicitly state when to use this tool versus alternatives, nor does it mention any exclusions or prerequisites (e.g., that the table must already exist).

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