Skip to main content
Glama
SiYuan MCP Server
by MyrkoF

update_block

Replace the content of an existing SiYuan block by providing its block ID and new Markdown content.

Instructions

Replace the content of an existing block.

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

Input Schema

NameRequiredDescriptionDefault
idYesBlock ID to update
contentYesNew markdown content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Replace' does disclose that existing content is overwritten, which is useful, but nothing is said about required permissions, whether the whole block or only its text is rewritten, whether child blocks are affected, or what the call returns.

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?

A single front-loaded sentence with no filler, and the destructive nature of the operation is stated first via 'Replace'. It is efficient, though its brevity reflects under-specification rather than tight editing of rich content.

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 two-parameter mutation tool with no annotations and no output schema, the definition covers the core action adequately. It leaves gaps an agent would want: what happens to block attributes or children, behavior on a missing ID, and what the response contains.

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 description coverage is 100%, so both 'id' and 'content' are already documented as a block ID and new markdown content. The description adds no format, length, or markdown-parsing detail beyond the schema, so the baseline 3 applies.

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 gives a specific verb ('Replace') and resource ('content of an existing block'), which implicitly distinguishes it from insert_block by requiring a pre-existing block. It stops short of naming or contrasting any sibling explicitly, so it is clear but not fully differentiated.

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 phrase 'existing block' implies the tool is for modifying rather than creating content, and the required id signals a precondition. There is no explicit statement of when to use this versus insert_block or batch_block_ops, and no mention of failure conditions for a nonexistent block.

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