Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_styles

Read-onlyIdempotent

Extracts cell formatting from .xlsx files—number formats, fonts, fills, and alignment—so you can inspect how cells look, not just their raw values.

Instructions

Use this when you need to surface cell formatting (number formats, fonts, fills, alignment) — what a cell LOOKS like, not just its raw value.

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

Input Schema

NameRequiredDescriptionDefault
sheetNoOptional: restrict to a specific sheet.
detailedNoIf true, return per-cell breakdown (capped at 1000 cells). Default false (per-sheet rollup).
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. Changed6 schema fields changedv4.3.1
    • addedInput schema / properties / detailed
      Added value: +{
      +  "description": "If true, return per-cell breakdown (capped at 1000 cells). Default false (per-sheet rollup).",
      +  "type": "boolean"
      +}
    • 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"
      +}
    • removedInput schema / properties / options
      Removed value: -{
      -  "properties": {
      -    "detailed": {
      -      "type": "boolean"
      -    },
      -    "limit": {
      -      "maximum": 1000,
      -      "minimum": 1,
      -      "type": "integer"
      -    },
      -    "sheet": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / sheet
      Added value: +{
      +  "description": "Optional: restrict to a specific sheet.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "file_b64"
      -]New value: +[
      +  "file_path"
      +]
  2. First observedv3.2.1

TDQS

A3.8/5.0
Behavior3/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 is fully covered without the description's help. The description adds only the conceptual framing of styling versus raw values; it says nothing about the default per-sheet rollup shape, the 1000-cell cap, or output volume, which are relevant behavioral traits for this read.

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?

One sentence, front-loaded with the usage trigger, followed by a parenthetical enumeration that defines scope and a contrast clause that disambiguates. No filler or redundancy.

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, non-destructive read with three fully documented parameters and no output schema, the description supplies enough to know what the tool answers with. The remaining gap is that it never mentions the default rollup versus per-cell detail behavior, forcing the agent to open the schema to learn the shape of results.

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 schema already explains sheet scoping, the detailed flag with its 1000-cell cap, and the important AS-IS file_path handling. The description adds no parameter meaning at all, so the baseline 3 for fully documented schemas 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 gives a concrete verb-and-resource pair ("surface cell formatting") and enumerates the dimensions covered: number formats, fonts, fills, alignment. It does not name a specific sibling to contrast with, relying instead on the generic "not just its raw value" distinction, so it stops short of a 5.

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?

The leading clause "Use this when you need to surface cell formatting" is a clear selection condition, and "not just its raw value" implicitly steers value-only queries elsewhere. No sibling tool is named and no explicit exclusion list is given, but the usage context is unambiguous.

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