Skip to main content
Glama
Redmine MCP Server

Redmine MCP Server

by popper2710

create_or_update_wiki_page

Create a new wiki page or edit an existing one in Redmine, including targeted find-and-replace patches, metadata changes, parent hierarchy, and file attachments.

Instructions

Create a new wiki page or update an existing one.

CONTENT - provide exactly one of text or text_patches (mutually exclusive):
  - text: Full page content. Required when creating a new page. For updates, replaces entire content.
  - text_patches: Apply targeted find-and-replace edits to the existing page content.
    Format: [{"old_text": "text to find", "new_text": "replacement"}]
    Optional "replace_all": true to replace all occurrences (default: false).
    Only works on existing pages. Cannot be used to create new pages.

METADATA-ONLY UPDATE:
  For existing pages, you can update only metadata (parent_title, comments, uploads)
  without providing text or text_patches.

Args:
    project_id: Project ID (numeric) or project identifier (string) (required)
    title: Wiki page title (required)
    text: Full page content in Textile or Markdown format.
        Required for creating new pages. Replaces entire content on update.
        Cannot be used together with text_patches.
    text_patches: List of find-and-replace edits for the existing page content.
        Each dict: {"old_text": "text to find", "new_text": "replacement"}.
        Optional "replace_all": true to replace all occurrences (default: false).
        Example: [{"old_text": "## Old Section", "new_text": "## New Section"}]
        IMPORTANT: Use get_wiki_page() first to see exact current content before constructing patches.
        Cannot be used together with text. Only works on existing pages.
    comments: Comment describing the change (optional)
    parent_title: Title of the parent page for hierarchy (optional)
    uploads: List of file uploads to attach. Each upload should be a dictionary with:
        - token: Upload token from upload_attachment() (required)
        - filename: Filename to use in Redmine (required)
        - content_type: MIME type (optional)
        - description: File description (optional)

Returns:
    Dictionary containing the created/updated wiki page information

Note:
    - Redmine automatically manages version history
    - Use existing upload_attachment() to get upload tokens for attachments

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>"
    },
    "name": "create_or_update_wiki_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
titleYes
uploadsNo
commentsNo
project_idYes
parent_titleNo
text_patchesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses destructiveness ('replaces entire content'), a hard failure mode (patches cannot create new pages), the dependency on upload_attachment() tokens, and that Redmine manages version history automatically. Gaps remain around permissions/authentication requirements and what happens on title collisions or invalid patch targets.

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?

Front-loading is good (purpose first, then content modes, then metadata-only case), but the 'CONTENT' block and the 'Args' block restate the same text/text_patches semantics almost verbatim, roughly doubling the length for no added information. The redundant Args duplication of text and text_patches is the main structural flaw.

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 a 7-parameter, un-annotated mutation tool with no output schema, the definition covers creation vs update semantics, the mutually exclusive content modes, metadata-only updates, and the upload-token workflow. The 'Returns' note is vague but acceptable given no output schema exists, and only permission/error behavior is meaningfully absent.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate entirely, and it does: every one of the 7 parameters is described with type, format, required/optional status, and mutual-exclusion constraints. Nested structures are spec'd too — the patch dict shape with old_text/new_text/replace_all (including default) and the upload dict with token/filename/content_type/description, plus a concrete JSON example.

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 opening sentence states a specific verb pair and resource: 'Create a new wiki page or update an existing one.' Combined with the sibling set (get_wiki_page, delete_wiki_page, list_wiki_pages), an agent can immediately tell this is the write/create path for wiki pages and is distinct from its read-only siblings.

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

Usage Guidelines5/5

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

The description gives explicit routing rules: text vs text_patches are mutually exclusive, text is required for creation and replaces entire content, text_patches only works on existing pages, and metadata-only updates are possible without content. It even names the prerequisite tool ('Use get_wiki_page() first to see exact current content'), leaving nothing to inference.

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