Skip to main content
Glama
Backlog MCP Server

Backlog MCP Server

update_document_content

DestructiveIdempotent

Replaces a Backlog document's entire body with Pandoc Markdown; read the full current body first, then send the complete edited content to apply changes.

Instructions

Replaces the entire document body with Pandoc Markdown. Read the whole current body with get_document before making a partial edit, then send the full edited body. The result is a summary. Read the document again before editing further because Backlog normalizes Markdown. On HTTP 409, read the latest body and reapply the edit before retrying. When present, code explains why the body was left unchanged. NO_CHANGE means the body was already current. If markdownIsFallback is true, the stored Markdown may be stale. Stop editing and ask the user to check the document in Backlog.

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": {
      "documentId": "<documentId>",
      "content": "<content>"
    },
    "name": "update_document_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe entire new body in Pandoc Markdown. An empty string clears the body.
documentIdYesDocument ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.24.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and readOnlyHint=false, and the description adds substantial context beyond them: server-side Markdown normalization, 409 conflict semantics, the meaning of the code field, the NO_CHANGE outcome, and the stale-Markdown risk signalled by markdownIsFallback. The absence of a 5 reflects that it never explicitly states the destructive consequence (prior body permanently overwritten) as plainly as the annotation implies.

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

Conciseness4/5

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

The action and the required read-then-full-write loop are front-loaded, and nearly every sentence carries non-redundant operational information. It is a dense block of separate edge-case rules (409, code, NO_CHANGE, markdownIsFallback) without visual structuring, so it reads as a wall of text, but little could be cut.

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

Completeness5/5

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

Even with no output schema, the description explains the return summary, the code field, the NO_CHANGE outcome, and the stale-Markdown flag. Combined with conflict handling and the normalization caveat, an agent has everything needed to call this mutation safely and interpret its result.

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 coverage is 100%, so both documentId and content are already documented, including that an empty string clears the body. The description reinforces that content must be the entire edited body in Pandoc Markdown, but adds no syntax, size limits, or other detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource (replaces the entire document body) plus the required format (Pandoc Markdown), and immediately makes clear this is whole-body replacement rather than a partial patch. That distinction, together with the named read counterpart get_document, lets an agent separate this from update_document or add_document without opening any schema.

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?

Gives an explicit workflow: read the whole body with get_document first, submit the full edited body, then re-read before further edits because Backlog normalizes Markdown. It also prescribes exact recovery behavior for HTTP 409 (re-read, reapply, retry) and tells the agent to stop and escalate to the user when markdownIsFallback is true.

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