Skip to main content
Glama

find_and_replace

Read-onlyIdempotent

Find replace

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": {
      "text": "<text>",
      "find": "<find>",
      "replace": "<replace>"
    },
    "name": "find_and_replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
findYesText or, with useRegex, a regular expression, for example colour.
textYesThe text to process, plain UTF-8, for example: The quick brown fox.
replaceYesReplacement text, for example color. May be empty.
useRegexNotrue or false: use regex. Default false.
wholeWordNotrue or false: whole word. Default false.
replaceAllNotrue or false: replace all. Default false.
caseSensitiveNotrue to match upper and lower case as different; default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / caseSensitive / description
      Added value: +"true to match upper and lower case as different; default false."
    • addedInput schema / properties / find / description
      Added value: +"Text or, with useRegex, a regular expression, for example colour."
    • addedInput schema / properties / replace / description
      Added value: +"Replacement text, for example color. May be empty."
    • addedInput schema / properties / replaceAll / description
      Added value: +"true or false: replace all. Default false."
    • addedInput schema / properties / text / description
      Added value: +"The text to process, plain UTF-8, for example: The quick brown fox."
    • addedInput schema / properties / useRegex / description
      Added value: +"true or false: use regex. Default false."
    • addedInput schema / properties / wholeWord / description
      Added value: +"true or false: whole word. Default false."
  2. Changed1 schema field changed
    • addedInput schema / properties / wholeWord
      Added value: +{
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / find / maxLength
      Added value: +2000
  4. Changed1 schema field changed
    • addedInput schema / properties / find / minLength
      Added value: +1
  5. First observed

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered structurally. However, the description adds nothing beyond that — no mention of how unmatched patterns are handled, whether replaceAll defaults matter, or what happens with an empty replacement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two words is short but front-loaded only by accident; nothing is actually explained. Brevity here is under-specification rather than conciseness, and no sentence earns a place because there is effectively only a label.

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?

A seven-parameter text-mutation tool with no output schema needs more than its own name to be callable with confidence. The rich annotations and full schema coverage mitigate this, but the description itself contributes nothing to completeness.

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 seven parameters, including the useRegex, wholeWord, replaceAll and caseSensitive toggles, are documented in the schema itself. The description adds no meaning beyond that, so the baseline 3 applies.

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

Purpose2/5

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

"Find replace" merely restates the tool name and title, adding no verb-resource specificity or scope. It doesn't clarify that this is plain-text substring/regex replacement rather than, say, file-level replacement such as pptx_find_replace.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites, and no mention of when a sibling like pptx_find_replace would be the better choice. An agent receives no signal about selecting this over alternatives.

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