Skip to main content
Glama

restore_page_version

Restore a saved OneNote page version as a new page with its images and files, keeping the original intact. Optionally place it in a different section, notebook, or section group.

Instructions

Restore a saved version as a new page (with its images and files), in its original section or another one. The current page is left as it is; delete it afterwards if you want the restored copy to replace it.

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

Input Schema

NameRequiredDescriptionDefault
titleNoTitle for the restored page. Defaults to "<original title> (restored)"
pageIdYes
toSectionNo
versionIdYes
toNotebookNo
toSectionIdNo
toSectionGroupNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already state destructiveHint=false, and the description reinforces this by explicitly saying the current page is left as it is and that images and files are carried over with the restored copy. That is real behavioral value beyond the flags. It does not address permissions, rate limits, or how the destination parameters interact, 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.

Conciseness5/5

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

Two compact sentences, no filler, with the outcome stated first and the non-destructive caveat second. Every sentence carries information the agent needs.

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 tool that creates a new page from a version and takes 7 parameters, the description covers the core semantics but leaves the destination-parameter model unexplained and never indicates what the call returns (presumably the new page identity). With no output schema, that return-value gap matters more. Adequate but with clear holes.

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

Parameters2/5

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

Schema description coverage is only 14% (only title is documented), and 7 parameters exist, including a tangle of destination options (toNotebook, toSection, toSectionId, toSectionGroup) plus versionId and pageId. The description only gestures at destinations with "in its original section or another one" and says nothing about precedence, mutual exclusivity, or defaults. With this low coverage the description needed to compensate and does not.

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?

"Restore a saved version as a new page (with its images and files)" gives a specific verb, a specific resource, and the resulting object, which is exactly what separates it from read_page_version or list_page_versions. The agent knows this produces a new page rather than mutating the existing one.

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 second sentence supplies the key usage rule: the current page is untouched, so if you want a replacement you must delete it afterwards. That is a non-obvious workflow instruction many definitions omit. It stops short of naming alternatives (e.g., reading a version first to verify before restoring), so it is not a full when/when-not statement.

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