Skip to main content
Glama

replace_in_range

Replace text in string cells within a range, leaving numbers, dates, and formulas unchanged. Supports regex and case-sensitive matching.

Instructions

Replace text in every matching cell within a range.

Only text (string) cells are modified; numbers, dates, and formulas are left untouched. With regex=True, replace may use groups like \1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findYes
rangeYes
regexNo
replaceYes
match_caseNo
session_idYes
Behavior3/5

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

Discloses that only text cells are modified and regex group usage, which adds value beyond no annotations. But missing details like whether range refers to current sheet, if operation is undoable, or error handling for no matches.

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 sentences, clear and front-loaded. No unnecessary words. Each sentence adds distinct value.

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

Completeness2/5

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

Lack of output schema and no parameter descriptions for half the params. Does not explain range format, case sensitivity behavior, or what happens if no matches. For a mutation tool with 6 params, much more context needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 0% parameter description coverage. Description only explains 'regex' and 'replace' groups. 'range', 'match_case', and 'session_id' are not explained. Insufficient for a 6-parameter tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states verb 'replace' and resource 'matching cells within a range'. Distinguishes from sibling tools like write_cell/write_range by specifying that only text cells are modified.

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?

Implies usage for replacing text in string cells by stating that numbers/dates/formulas are untouched. However, no explicit when-to-use or when-not-to-use guidance, and no alternatives are named.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ShubhamDbug/Excel-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server