Skip to main content
Glama
xlsx-mcp-server
by knorq-ai

search_cells

Find text or numbers in Excel workbooks across all sheets or a chosen sheet, with optional case-sensitive matching to locate cell values in .xlsx files.

Instructions

Search for text or numbers in cells. Searches all sheets by default, or specify a sheet.

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>",
      "query": "<query>"
    },
    "name": "search_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesText to search for
sheetNoSheet to search in (omit for all sheets)
file_pathYesAbsolute path to the .xlsx file
case_sensitiveNoCase-sensitive search. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It discloses the default all-sheets scope, which is genuinely useful, but never states what a hit looks like (cell coordinates, value, sheet name), whether formulas or only values are scanned, or whether matching is exact or substring.

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?

Two short sentences with no filler, and the default-scope behavior is front-loaded where an agent will read it first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (4 params, 2 required, no nested objects), and the description covers the core call decision. However, with no output schema and no annotations, the undefined return shape leaves a real gap for an agent that must interpret 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%, so all four parameters are already documented, including case sensitivity and sheet omission. The description's "omit for all sheets" restates the schema rather than adding new meaning, so 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?

States a specific verb and resource ("Search for text or numbers in cells") and clarifies scope (all sheets vs one). It is distinguishable from sibling readers like read_cell/read_sheet, though it never names them explicitly.

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 description explains the default scope and how to narrow it with the sheet parameter, which is implied usage guidance. It does not say when to prefer this over read_sheet or read_cell, nor when search is inappropriate.

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