Skip to main content
Glama

list_sheets

Retrieve the names and indices of every sheet in a workbook to identify and navigate worksheets without opening Excel.

Instructions

List all sheets in a workbook with their names and indices

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

Input Schema

NameRequiredDescriptionDefault
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, the description must carry behavioral context. 'List' implies a read-only operation and the description states that names and indices are returned, but it does not explicitly guarantee non-mutation, mention permissions, pagination, empty-workbook behavior, or errors.

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 no redundant or filler wording. The scope and returned fields are immediately clear.

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 one-parameter read tool with no output schema, the description gives the operation, input context, and returned fields. It is nearly complete, though it omits prerequisite state, pagination, and error behavior.

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?

The input schema has 100% description coverage for workbookId, so the schema already documents the only parameter. The description adds only the phrase 'in a workbook' and no additional format or semantic detail beyond the schema.

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 the specific verb 'List' and resource 'sheets in a workbook', and mentions the returned fields (names and indices). It is distinguishable by resource from siblings like list_columns and list_workbooks, but does not explicitly name alternatives or exclusions.

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 or when-not-to-use guidance is given. The intended use is only implied by 'List all sheets in a workbook'; an agent must infer whether to choose this over get_sheet_info, list_columns, or list_workbooks.

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