Skip to main content
Glama

List sheets

list_sheets
Read-only

List all worksheets in an Excel .xlsx file with approximate row and column counts to inspect workbook structure; use workbook info tools for exact dimensions and hidden state.

Instructions

List every sheet with its approximate row and column count. Fast.

For exact dimensions, hidden state and defined names use get_workbook_info.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_sheets"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFile path or preloaded name (list_configured_files). Omit if only one file is preloaded.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / path / description
      Added value: +"File path or preloaded name (list_configured_files). Omit if only one file is preloaded."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds real context by flagging that counts are only approximate and that this tool deliberately omits hidden state and defined names. The one residual ambiguity is whether hidden sheets themselves appear in the listing, which the phrasing leaves implicit.

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?

Two short sentences with the scope and cost cue ("Fast") front-loaded and the fallback routed immediately after. Nothing is repeated from the schema or annotations, and no sentence is filler.

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?

An output schema exists so return structure need not be explained, and annotations carry the safety profile, leaving the description to cover positioning and precision caveats, which it does. The only soft spot is how hidden sheets are treated in the listing versus hidden state, which is implied rather than stated.

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% and the single optional path parameter is fully documented in the schema, including the preloaded-name and omit-if-single-file behavior. The description therefore adds no parameter meaning beyond the structured field, so the baseline 3 applies.

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?

States a specific verb and resource ("List every sheet") plus the exact payload ("approximate row and column count"), and explicitly names the sibling (get_workbook_info) that serves the adjacent need. An agent can distinguish this from the workbook-info tool without opening either schema.

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

Usage Guidelines5/5

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

Gives both sides of the routing decision: use this one for fast approximate counts, use get_workbook_info for exact dimensions, hidden state and defined names. That is an explicit when-to-use plus a named alternative with the condition that selects it.

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