Skip to main content
Glama

rename_notebook

Rename a OneNote notebook stored in OneDrive or SharePoint using its drive and item IDs; requires file write permission and returns the updated drive item ID.

Instructions

Rename an existing OneDrive or SharePoint OneNote package by explicit storage IDs. Supply a token with file write permission. The returned ID is the drive item's ID.

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": {
      "drive_id": "<drive_id>",
      "item_id": "<item_id>",
      "name": "<name>"
    },
    "name": "rename_notebook"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
item_idYesDriveItem ID with package.type oneNote
drive_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does deliver two useful facts: write-permission auth is required, and the return value is the drive item's ID. It omits whether the rename is reversible, how name collisions are handled, and whether the caller must first resolve IDs via a listing tool.

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?

Three short sentences, front-loaded with purpose, then the auth requirement, then the return value. No redundant wording; each sentence adds something, though the return-value sentence could be merged more tightly.

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?

For a simple three-parameter mutation with no output schema, the description covers purpose, auth, and return value — enough to invoke it correctly. Missing pieces are failure-mode behavior (collisions, invalid package type) rather than core calling information.

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 only 33% — only item_id is documented (as a DriveItem with package.type oneNote). The phrase "explicit storage IDs" signals that drive_id and item_id are identifiers rather than names, but the description never explains where to obtain them or how drive_id relates to item_id, leaving the gap partly unclosed.

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?

The description opens with a specific verb and resource ("Rename an existing OneDrive or SharePoint OneNote package") and scopes it to explicit storage IDs, which makes it distinguishable from generic update tools. It does not explicitly contrast with rename_section, but the notebook/package framing is clear enough.

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?

It states a prerequisite ("Supply a token with file write permission") which tells the agent when the call can succeed. It gives no guidance on when to prefer this over other rename or update tools, nor any exclusions or preconditions about package state.

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