Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_conditional_formats

Read-onlyIdempotent

Lists every conditional formatting rule in an Excel .xlsx file—with range, type, and priority—so you can audit color scales, data bars, icon sets, and formula-based highlights.

Instructions

Use this when you need to list every conditional formatting rule (color scales, data bars, icon sets, formula-based highlights, …) with range, type, and priority.

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

Input Schema

NameRequiredDescriptionDefault
sheetNoOptional: restrict to a specific sheet.
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. Changed5 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"
      +}
    • removedInput schema / properties / options
      Removed value: -{
      -  "properties": {
      -    "limit": {
      -      "maximum": 5000,
      -      "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.9/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 is fully covered without description help. The description adds genuinely new behavioral information: the shape of what comes back (range, type, priority) plus the kinds of rules surfaced, which matters because no output schema exists. It omits edge cases (empty results, missing file behavior), keeping it at 4.

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 the trigger condition first and the payoff second — no wasted preamble. The trailing ellipsis inside the parenthetical is slightly loose and hints at an unbounded list rather than a crisp 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 simple two-parameter read tool with full schema coverage and rich annotations, the description covers purpose, trigger, and return content adequately. The only residual gap is absence of an output schema combined with no statement about ordering or volume of results, which is minor for a listing tool.

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% — both file_path and sheet are documented in-schema, including the notable 'pass the path AS-IS, do not read or base64-encode' guidance. The description adds nothing about either parameter, so the baseline 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 gives a specific verb ('list') plus the exact resource ('every conditional formatting rule') and even enumerates the rule families (color scales, data bars, icon sets, formula-based highlights), which cleanly separates it from siblings like xlsx_data_validations or xlsx_formulas. It stops short of explicitly naming a sibling to contrast with, so it lands at 4 rather than 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 list...' supplies an explicit trigger condition, which is more than implied usage. There are no exclusions or named alternatives (e.g., when to prefer xlsx_data_validations), so it does not reach the 5 tier.

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