Skip to main content
Glama

Update Page Section

confluence_update_page_section
Destructive

Updates only the content beneath a specified heading on a Confluence page, preserving other sections and macros to prevent data loss from full-page edits.

Instructions

Update a single section of a Confluence page without affecting the rest.

Replaces only the content beneath a named heading, leaving all other sections, macros, layouts, and Confluence-specific elements completely intact. A following excerpt, expand, or layout that contains a heading of the same or higher level ends the section — that wrapper is not replaced. This avoids the data loss that occurs when a full page is downloaded as Markdown, edited, and re-uploaded.

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": {
      "page_id": "<page_id>",
      "heading_text": "<heading_text>",
      "new_content": "<new_content>"
    },
    "name": "confluence_update_page_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesThe ID of the page to update
new_contentYesReplacement content for the section body. Do NOT include the heading itself — only the body beneath it. Format is controlled by content_format.
heading_textYesExact text of the heading that starts the section to replace. Matching is case-sensitive. Use confluence_get_page with convert_to_markdown=false to inspect exact heading text when unsure.
is_minor_editNoWhether this is a minor edit
content_formatNo(Optional) Format of new_content. Options: 'markdown' (default) or 'storage' (raw Confluence storage XML). Use 'storage' to insert macros or elements that markdown cannot express.markdown
version_commentNoOptional comment for this version

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.4.1
    • addedInput schema / additionalProperties
      Added value: +false
    • removedOutput schema / description
      Removed value: -"Generic wrapper for non-object return types."
  2. Addedv1.2.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the mutation profile is known. The description goes further by delimiting exactly what is destroyed — only the body beneath the matched heading, with all other sections, macros, and layouts preserved — and by defining the boundary rule where a following wrapper containing an equal-or-higher heading terminates the section. Concurrency/version-conflict behavior is not addressed, but the destruction scope is unusually well disclosed.

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?

Four front-loaded sentences with no filler: scope first, then what is preserved, then the boundary edge case, then the justification. Each sentence adds distinct information and the ordering puts the most decision-relevant fact first.

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?

With an output schema present and full parameter documentation, the description only needs to carry mutation semantics and edge cases, which it does well. The remaining gap is operational context such as required edit permissions or handling of version conflicts on a destructive write.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description earns above that by clarifying the semantics of heading_text: the section it delimits ends at a following excerpt, expand, or layout containing a heading of the same or higher level, and that wrapper is not replaced. That is real behavioral meaning about the parameter that the schema alone does not convey.

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 opens with a specific verb and resource plus a scope qualifier: 'Update a single section of a Confluence page without affecting the rest.' This immediately distinguishes it from the full-page sibling confluence_update_page, so an agent can select between them without opening either schema.

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?

The final sentence gives a clear selection rationale — use this instead of downloading a full page as Markdown, editing, and re-uploading — which implicitly names the workflow it replaces. It does not explicitly name or contrast with the sibling confluence_update_page, so guidance is strong but not fully routing.

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

Deploy Server

Other Tools