Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_merged_cells

Read-onlyIdempotent

Lists all merged-cell regions in an .xlsx sheet, including each region's master value, cell range, and inferred layout type (header, horizontal, vertical, or block).

Instructions

Use this when you need to list every merged-cell region with its master value, range, and a layout-kind heuristic (header / horizontal / vertical / block).

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

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.8/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 is covered. The description adds real behavioral content on top: it tells the agent the result is a complete enumeration ('every merged-cell region') and discloses the heuristic classification categories (header / horizontal / vertical / block), which the agent would otherwise not know to interpret. It does not cover error handling for a bad path, which keeps it from 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?

One sentence, front-loaded with the usage trigger, then the resource, then the fields returned. Nothing is redundant and every clause carries distinct information.

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 two-parameter, read-only, single-purpose tool with no output schema, the description is nearly sufficient: it says what comes back per region, which compensates for the missing output schema. Only edge-case behavior (missing file, sheet with no merges) is unaddressed.

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 file_path description is unusually strong (absolute path, pass as-is, no base64 encoding). The tool description adds nothing about either parameter, so per the baseline this is a 3 — the schema is doing the work here.

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) and a precise resource (every merged-cell region) and even enumerates what each entry carries: master value, range, and a layout-kind heuristic. That makes it unmistakable against siblings like xlsx_list_sheets or xlsx_named_ranges. It stops short of explicitly naming a sibling to contrast with, so 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 Guidelines3/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...' supplies a trigger condition, which is more than nothing. But there are no exclusions (e.g., when a plain sheet listing suffices) and no alternatives named, so the agent must infer the boundary from the operation itself.

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