Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_topology

Read-onlyIdempotent

Inspect an .xlsx workbook in one call: retrieve sheet names, formulas, named ranges, tables, validations, hyperlinks, merges, and feature flags to understand structure before edits.

Instructions

Use this when you need one-call workbook orientation — sheets, formulas, named ranges, tables, validations, hyperlinks, merges, and feature flags in one shot.

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_topology"
  }
}

Input Schema

NameRequiredDescriptionDefault
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).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A3.7/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 safety and repeatability are covered without the description. The description's real contribution is disclosing the return payload — the eight categories of topology data returned in one shot, including feature flags — which matters because there is no output schema. It omits any volume, performance, or truncation caveats for large workbooks.

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 sentence, front-loaded with the usage condition, followed by an em-dash enumeration of returned content. Every item in the list is informative rather than filler, though the list is long enough that the core claim ("one-call orientation") could have led with slightly less enumeration.

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 one-parameter, read-only inspection tool with no output schema, the description supplies the missing return-value picture and the correct usage trigger. The only material gap is routing relative to the many sibling inspection tools, which the definition leaves entirely implicit.

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?

There is a single required parameter and schema coverage is 100%, with the schema itself carrying a detailed warning about passing the path AS-IS and not reading or base64-encoding the file. The description adds nothing about file_path at all. With the schema doing all the work, 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?

The description states a specific capability — a single-call workbook orientation pass — and enumerates exactly what it surfaces (sheets, formulas, named ranges, tables, validations, hyperlinks, merges, feature flags). That is far more concrete than the name alone. It stops short of differentiating itself from near-neighbours like xlsx_list_sheets or xlsx_describe, so an agent must infer the boundary.

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?

"Use this when you need one-call workbook orientation" gives a positive trigger condition and implies it is the broad survey tool rather than a targeted extractor. However, there is no when-not guidance and no sibling is named, so the agent gets no explicit instruction to prefer xlsx_list_sheets for sheets only or xlsx_describe for a narrative profile.

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