Skip to main content
Glama

update_block

Modify content in an Obsidian paragraph or list item by its ^block-id: replace, append, or prepend text while preserving the block ID.

Instructions

Replace, append to or prepend to the paragraph/list item with a ^block-id (the id is kept).

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": {
      "file": "<file>",
      "block": "<block>",
      "content": "<content>"
    },
    "name": "update_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
modeNo
blockYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
contentYes

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 annotations present, the safety profile is already covered (readOnlyHint=false, destructiveHint=false). The description contributes one useful behavioral fact — '(the id is kept)' — but omits what happens if the block id is not found, whether replace destroys the full block content, and how writes are applied.

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?

A single front-loaded sentence that names the operations, the target, and the id-retention behavior with zero filler. Nothing can be removed without losing information.

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 5-parameter mutation tool with no output schema, the definition leaves meaningful gaps: error behavior on missing block ids, content format expectations, and the semantics of the 'content' and 'block' parameters. It is adequate for an expert user of Obsidian but not self-sufficient for a first-time agent.

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 40%, so half the parameters are undocumented in the schema. The description does add real meaning by tying 'block' to the ^block-id and mapping the three mode enum values to replace/append/prepend, but it says nothing about the 'content' format or whether the ^ prefix belongs in the block value.

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 specific verbs (replace, append, prepend) and a precise target (the paragraph/list item with a ^block-id), which distinguishes it from update_section or append_to_note at a glance. It does not explicitly name the sibling it is not, so it falls short of a 5.

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?

By naming the ^block-id as the target it implicitly tells the agent to use this tool only for blocks carrying an id, but it never states prerequisites (e.g., the block must already have an id — see add_block_id) or when to prefer a note-level tool. Usage is implied rather than directed.

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

Deploy Server

Other Tools