Skip to main content
Glama

Search cells

search_cells
Read-only

Search for cells whose formula or value contains the given text. searchIn defaults to 'formula' (fast, indexed); 'value' requires re-parsing the workbook and is slower. Pass scenarioId instead of workbookId to search values as recalculated under that what-if scenario (only affects searchIn: '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": {
      "query": "<query>",
      "searchIn": "<searchIn>",
      "limit": "<limit>",
      "offset": "<offset>"
    },
    "name": "search_cells"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitYes
queryYes
offsetYes
searchInYesformula
sheetNameNo
scenarioIdNo
workbookIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: the performance asymmetry between indexed formula search and slower value re-parsing, and the fact that scenarioId only takes effect when searchIn is 'value'.

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?

Three sentences, each carrying distinct information, with the core purpose front-loaded before the performance caveat. The third sentence is slightly tangled but still earns its place by explaining a non-obvious parameter interaction.

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?

For a read-only search with no output schema, the definition never indicates what a result looks like (cell addresses, matched text, sheet context) or how paging via limit/offset behaves. It is adequate to invoke the tool but incomplete about its 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 0%, so the description must carry parameter meaning, and it only partly does. It clarifies searchIn's default and enum tradeoffs and the scenarioId/workbookId relationship, but says nothing about limit, offset, or sheetName, leaving four of seven parameters undocumented anywhere.

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 first sentence gives a specific verb and resource: 'Search for cells whose formula or value contains the given text.' It clearly bounds the search space to formula-or-value text matching, but it never distinguishes this from nearby siblings such as get_cell_formula or tag_cells.

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 description gives real selection guidance between the two modes: 'searchIn defaults to formula (fast, indexed); value requires re-parsing the workbook and is slower.' It also states the condition for using scenarioId instead of workbookId. What's missing is guidance on when to reach for this tool versus other cell-level tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources