Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_tables

Read-onlyIdempotent

List every Excel table (ListObject) in a workbook to retrieve its name, sheet, range, header/totals flags, and columns; optionally filter by sheet.

Instructions

Use this when you need to list every Excel ListObject ("Format as Table") in a workbook — name, sheet, range, header/totals flags, columns.

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": {
      "file_path": "<file_path>"
    },
    "name": "xlsx_tables"
  }
}

Input Schema

NameRequiredDescriptionDefault
sheetNoFilter to one sheet (default: all sheets).
file_pathYesAbsolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64).
include_columnsNoInclude column names per table (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv4.3.1
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx file. Pass the path string AS-IS — do NOT read, open, or base64-encode the file; the client handles all file I/O. The base64 surface in this connector is OUTPUT-only (_meta.file_b64).",
      +  "type": "string"
      +}
    • addedInput schema / properties / include_columns
      Added value: +{
      +  "description": "Include column names per table (default true).",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / options
      Removed value: -{
      -  "properties": {
      -    "include_columns": {
      -      "type": "boolean"
      -    },
      -    "sheet": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / sheet
      Added value: +{
      +  "description": "Filter to one sheet (default: all sheets).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile needs no restating. The description's added value is enumerating what an inspection returns (name, sheet, range, header/totals flags, columns), which matters because there is no output schema. Nothing is disclosed about behavior on files with no tables or errors, keeping it below a 5.

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 the trigger condition first and the returned fields second after an em dash. No redundant restatement of the tool name, no filler, and the parenthetical gloss on ListObject prevents a misread.

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?

With no output schema and only three simple parameters, the description covers the essential contract by naming the fields returned. What is missing is narrower context such as behavior when a workbook has zero tables or whether range values are A1-style, which would matter for an agent parsing results. Reasonably complete for a simple read-only lister.

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 all three parameters are already documented in the schema, including the sheet filter, default-true include_columns, and the AS-IS file path instruction. The description adds no parameter-level detail beyond the schema, so baseline 3 applies. The mention of 'columns' in the return list loosely corroborates include_columns but does not add new semantics.

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 ('list') and resource ('every Excel ListObject ("Format as Table") in a workbook'), and disambiguates the Excel concept with the UI terminology an agent or user would recognize. The appended field list (name, sheet, range, header/totals flags, columns) makes it clearly distinct from sibling tools like xlsx_pivot_tables or xlsx_list_sheets.

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?

Opens with an explicit trigger condition: 'Use this when you need to list every Excel ListObject in a workbook.' That gives clear positive guidance about the situation that selects this tool. It stops short of naming alternatives or exclusions (e.g., use xlsx_list_sheets for plain sheets instead), so it lands at 4 rather than 5.

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