Skip to main content
Glama

update_page

Destructive

Edit a OneNote page in place by appending, prepending, inserting, or replacing content in its body, title, or specific elements; all changes in one call succeed or fail together.

Instructions

Edit a page in place. Each change targets 'body', 'title', or an element by '#' or its generated id (from read_page with includeIds=true). Actions: append (end of target), prepend (start of target), insert (before/after target), replace (swap target; use target 'title' + replace to rename the page). Example: tick a to-do with {target:'#task1', action:'replace', content:'Done'}. All changes in one call succeed or fail together. A version of the page is saved first (see list_page_versions).

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": {
      "pageId": "<pageId>",
      "changes": "<changes>"
    },
    "name": "update_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
changesYes
attachmentsNoLocal images/files to embed. Reference them in HTML as <img src="name:file1"/> or <object data="name:file1" data-attachment="report.pdf" type="application/pdf"/>. Unreferenced parts are added at the end automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructive=true and openWorldHint=true, yet the description adds two behaviors that annotations do not convey: all changes in one call are atomic (succeed or fail together) and a page version is saved first, with a pointer to list_page_versions. It omits permission requirements and any statement about what the call returns, which keeps it below a 5.

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?

Front-loaded with the core verb and scope, then organized by targeting, actions, and the atomicity/version caveats. The inline to-do example is long but demonstrates the trickiest case (replacing an element by data-id), so it earns its space; a couple of clauses could still be tightened.

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

Completeness3/5

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

For a multi-change, destructive mutation with no output schema, the description covers targeting, action semantics, atomicity, and versioning, but never states the success/failure response shape or how partial failures are reported to the caller. Adding what the call returns would round it out.

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 only 33%, so the description must carry weight, and it does: it defines target semantics, explains the action enum in plain terms ('append' at end, 'prepend' at start, 'insert' before/after, 'replace' swaps), and shows a full worked change object. The attachments parameter is left entirely to the schema's own descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Edit a page in place" names a specific verb and resource, and the description enumerates the exact targets ('body', 'title', '#<data-id>', generated id) and the four actions, so an agent can tell what the tool does without opening the schema. It stops short of distinguishing itself from the sibling append_to_page, whose purpose overlaps with the 'append' action listed here.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: it explains that element ids come from read_page with includeIds=true and that target 'title' + replace renames, which is useful prerequisite context. However it never says when to prefer this tool over append_to_page or when not to use it, leaving the alternative routing to the agent.

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