Skip to main content
Glama
mcp-server-redmine

mcp-server-redmine

by mirceaion

patch_wiki_page

Edits part of a Redmine wiki page without resending the whole body: fetches current text, applies an append, prepend, or replace change, and writes it back so untouched content is preserved.

Instructions

Edit part of a wiki page without resending the whole body. Fetches the current text, applies one change, and writes it back — so untouched content cannot be lost the way a full update_wiki_page overwrite can lose it. Modes: append, prepend, 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": {
      "project_id": "<project_id>",
      "title": "<title>",
      "mode": "<mode>"
    },
    "name": "patch_wiki_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
findNoreplace mode only: the exact literal string to find. Not a regex. Must match expect_count times or the edit is refused.
modeYesappend: add `text` to the end. prepend: add `text` to the start. replace: substitute `find` with `text`.
textNoThe text to append, prepend, or substitute in. For replace, an empty string deletes the matched text.
titleYesPage title
commentsNoVersion comment
project_idYesProject identifier (not ID)
expect_countNoreplace mode only (default 1): how many occurrences of `find` are expected. The edit is refused if the real count differs — this is the guard that turns a silent no-op or an accidental mass-replace into an error.
check_versionNoDefault true: send the version read during the fetch so Redmine refuses the write if someone else edited the page in between. Set false only to force through a known conflict.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral burden and explains the fetch-apply-write-back mechanism, including the safety benefit that untouched content cannot be lost. It does not discuss permissions, failure behavior, or concurrency in the description itself, though the schema covers version conflict handling via check_version.

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 are front-loaded with the core purpose and safety rationale, followed by a compact mode list. There is no redundant or wasted wording.

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

Completeness4/5

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

For an 8-parameter mutation tool with no annotations and no output schema, the description explains the core mechanism and the main safety advantage. It is mostly complete, though it could say more about what the tool returns or what permissions are required.

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 the input schema already documents every parameter in detail, including find, expect_count, and check_version semantics. The description only restates the three modes and adds little parameter meaning beyond what the schema provides, so baseline 3 is appropriate.

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?

The description states a specific verb and resource: 'Edit part of a wiki page', and explicitly scopes it as a partial edit rather than a full-page update. It distinguishes itself from update_wiki_page by explaining why the partial edit avoids loss of untouched content.

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?

It clearly positions the tool against update_wiki_page by saying a full overwrite can lose untouched content, which implies when to prefer this tool. It does not explicitly state when not to use it, such as when the entire page body must be replaced.

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