Skip to main content
Glama

update_block

Replace a OneNote block with Markdown, edit a block’s text substring, or update page title/body; use get_page IDs and baseline content to prevent overwrite conflicts.

Instructions

Replace a block with Markdown, edit a block text substring, or update the page title/body. Get current Graph element IDs and baseline content from get_page.

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": "<page>"
    },
    "name": "update_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYes
forceNoOverride conflict check when true
titleNo
compactNoDefault true. Set false to include the full page object in the response.
sectionNoOptional section name, Notebook/Section path, ID, or scoped key to narrow title lookup
block_idNoGraph element ID from get_page (e.g. `p:{...}`)
markdownNo
with_textNoNew text for replace_text
replace_textNoExact text to replace in block_id; provide with_text and omit markdown
expected_contentNoBaseline block/page content from prior read; aborts with conflict if remote changed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It implies a destructive mutation ('Replace') and hints at a read-before-write baseline workflow via get_page, which is useful. It does not state what is overwritten, whether changes are reversible, permission requirements, or what the conflict-abort behavior (described only in the schema) actually looks like in practice.

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 tight sentences, front-loaded with the three capabilities and followed by the prerequisite. Every sentence adds information and nothing is padded or repetitive.

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?

The core modes and the read-before-write workflow are covered, which is the essential information for a 10-parameter mutation tool with no annotations or output schema. What remains thin – conflict semantics, the compact/force behavior, and the distinction from update_page – is partially covered by existing schema descriptions, so the gap is modest rather than critical.

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 70%, so the schema already documents most parameters including force, compact, replace_text, with_text and expected_content. The description only implicitly maps modes to parameters (markdown for replacement, block_id lookup via get_page) without adding syntax, format, or mutual-exclusivity detail beyond what the schema says.

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 names three concrete modes with specific verbs and resources: replacing a block with Markdown, editing a block text substring, and updating page title/body. This is far more specific than the tool name alone. It does not, however, distinguish itself from the sibling update_page, which plausibly also changes page title/body, leaving ambiguity about which tool owns that operation.

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?

The second sentence gives a real prerequisite workflow – 'Get current Graph element IDs and baseline content from get_page' – which tells the agent how to prepare a call. There is no guidance on when to choose this tool over update_page or append_page, and no explicit exclusion of cases where it should not be used.

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