publish_page
Publish a web part page: snapshots a new version and copies the working draft to the published content so viewers see it. Requires contribute access.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Page id. |
Publish a web part page: snapshots a new version and copies the working draft to the published content so viewers see it. Requires contribute access.
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Page id. |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Adds real behavioral detail beyond the annotations: it discloses that publishing creates a version snapshot and copies the draft to published content, and that contribute access is required. This is consistent with destructiveHint=true and idempotentHint=true. It stops short of covering failure modes (e.g., unpublish, missing draft).
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences with no filler; the action and effect are front-loaded and the access requirement follows immediately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter mutation with no output schema, the description covers what changes, what the side effect is, and the permission needed. Only edge cases such as what happens with no working draft or how to revert are unaddressed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter (pageId) with 100% schema description coverage, so the schema already documents the input. The description adds no format, scope, or identification detail beyond what the schema provides, making the baseline 3 appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (publish), a specific resource (web part page), and the mechanism (snapshot a new version, copy the working draft to published content). This clearly separates it from siblings like update_page, create_page, and restore_page_version, which do not publish.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives a prerequisite ('Requires contribute access') which is useful context, but says nothing about when to prefer this over update_page, design_page_draft, or restore_page_version. Usage is implied by the verb rather than explicitly scoped.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.