Skip to main content
Glama

list_columns

Retrieves column names from a worksheet by reading first-row headers for a given workbook ID and sheet name or index, helping you inspect spreadsheet structure before reading or transforming data.

Instructions

List columns with headers from the first row of a sheet

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

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.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the key behavioral trait that headers are taken from the first row, which implies a read-only operation. It does not state what happens with empty sheets, sheets whose first row is not a header, or whether the workbook must already be open — meaningful gaps for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. It is efficient, though the trailing phrase 'from the first row of a sheet' is slightly compressed and could be clearer as a separate clause about header derivation.

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

Completeness3/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 no output schema, the description should clarify the return shape — whether it returns column names, header values, or column letters — but it leaves 'list columns with headers' ambiguous. It also omits any mention of prerequisites such as the workbook being open.

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%, with both workbookId and sheet documented, including the 1-based index option. The description adds no parameter 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?

States a specific verb and resource ('List columns') and adds a scope qualifier ('with headers from the first row of a sheet') that makes the read behavior concrete. It is distinguishable from siblings like read_range or get_sheet_info, though it does not name them.

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 guidance on when to prefer this over read_range, read_cell, or get_sheet_info for inspecting a sheet's structure. The agent must infer from the name alone that this is the structure-inspection tool rather than a data-reading tool.

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