Skip to main content
Glama

replace_article_text

Найти и заменить текст в статье. Поиск выполняется внутри полей data.text, data.code и data.caption блоков.

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": {
      "article_id": "<article_id>",
      "search": "<search>",
      "replace": "<replace>"
    },
    "name": "replace_article_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
searchYesПоисковая строка или regex-паттерн
replaceYesСтрока для замены
block_idsNoОграничить замену конкретными идентификаторами блоков. None — замена выполняется по всем блокам статьи.
use_regexNoИспользовать регулярные выражения
article_idYesИдентификатор статьи
replace_allNoЗаменять все вхождения

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that replacement is limited to the data.text, data.code, and data.caption fields of blocks, but it does not state that the operation mutates article content, whether changes are reversible, or what permissions or side effects apply.

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?

The description is two sentences, front-loaded with the core action, and contains no filler. Every sentence contributes useful scope information.

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?

An output schema exists and parameter coverage is complete, so return values need not be explained. However, for a mutation tool with no annotations, the description is thin on behavioral consequences and alternatives, leaving meaningful gaps for safe invocation.

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 six parameters, including search, replace, block_ids, use_regex, article_id, and replace_all, are already documented in the input schema. The description adds field-scope context but no additional parameter semantics, so the baseline of 3 is appropriate.

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 description states a specific verb+resource: find and replace text in an article, and adds scope by naming the block fields searched (data.text, data.code, data.caption). It does not explicitly distinguish this tool from related siblings such as set_article_content, modify_article_blocks, or replace_substring_in_artifact, so it falls short of a 5.

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 gives no guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. It only states where the search is performed, leaving an agent to infer the tool's role among many article and artifact editing siblings.

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