Skip to main content
Glama

replace_content

Replaces specified text in a document, with an option to replace all occurrences, enabling targeted content updates in local Hillnote workspaces.

Instructions

Replace text in document

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": {
      "workspace": "<workspace>",
      "documentId": "<documentId>",
      "searchText": "<searchText>",
      "replaceText": "<replaceText>"
    },
    "name": "replace_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoReplace all occurrences (default: false)
workspaceYes
documentIdYes
searchTextYes
replaceTextYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

C2.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 disclosure burden, and it only implies a mutation. Questions the agent needs answered are left open: is the match case-sensitive or regex, are all occurrences replaced by default, are changes reversible, does it require edit permissions, and does it fail when searchText is absent? Only the word "Replace" hints at write behavior.

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

Conciseness3/5

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

The phrase is front-loaded and wastes no words, but it is undersized rather than concise: essential scoping and matching behavior is absent because the sentence is too short, not because the idea is tight.

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

Completeness1/5

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

For a five-parameter mutation tool with no annotations, no output schema, and 20% schema coverage, the description is far too thin. Nothing tells the agent what a successful response looks like or what happens when no match is found.

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 coverage is only 20% and the description adds no parameter meaning beyond restating that text is searched and replaced. The four required parameters workspace, documentId, searchText and replaceText are undocumented in both places, including whether workspace is a name or an ID.

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

Purpose3/5

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

"Replace text in document" gives a verb and a resource, so the basic action is inferable. But it never says what kind of document is meant (canvas, HTML tool, database doc) or which scope the replacement applies to, so it does not distinguish this from siblings like replace_in_html_file or insert_content.

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?

The description contains no when-to-use guidance, no prerequisites, and no mention of any alternative. An agent cannot tell from this text whether to pick replace_content or replace_in_html_file for a given edit.

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