Skip to main content
Glama

Append blocks to page

append_blocks

Append blocks to the end of a huffl page. Preferred: "blocks", an array of rich block objects (paragraph, heading, bullet_list, numbered_list, task_list, quote, code_block, divider, image, table, mermaid, plantuml) stored in the editor's native shapes and stamped with your agent name. Legacy alternative: "paragraphs", an array of plain-text strings, one text block each. Returns the new block ids and their types.

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": {
      "document_id": "<document_id>"
    },
    "name": "append_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
blocksNoRich blocks. Each item is an object with "type" plus its fields: paragraph {text}; heading {text, level 1-3}; bullet_list {items: string[]}; numbered_list {items: string[]}; task_list {items: [{text, checked}]}; quote {text}; code_block {code, language?}; divider {}; image {url: http(s) or data:image URL, alt?, caption?, width?, height?}; table {columns: string[], rows: string[][]}; mermaid {code}; plantuml {code}. Text fields take plain text, not HTML.
paragraphsNo
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the safety profile is covered. The description adds real value beyond that: blocks are stored in the editor's native shapes, are 'stamped with your agent name', and the call returns new block ids and types. It does not state what happens on retry (non-idempotent append-duplicates?) or on invalid block types.

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 sentences, front-loaded with the action and the preferred parameter, then the legacy fallback, then the return value. The block-type enumeration partially repeats the schema enum but usefully signals the supported vocabulary at selection time.

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 mutation tool with no output schema, the description supplies the return shape (new block ids and types) and the two input modes, which is enough to call it correctly. Gaps are minor: no statement on failure modes, permissions, or idempotency behavior beyond what annotations imply.

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

Parameters4/5

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

Schema coverage is low (33%), so the description must compensate, and it does: it defines the blocks-versus-paragraphs distinction and states text fields take plain text, not HTML. It does not explain document_id (which page, where it comes from) or what happens to paragraphs/blocks omitted entirely.

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 and resource ('Append blocks to the end of a huffl page') and immediately scopes the content model by enumerating the accepted block types. It does not name a sibling for contrast (e.g. update_block vs append), so the agent must infer the boundary from 'append to the end'.

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?

Explicit selection guidance between the two input modes: 'Preferred: blocks' versus 'Legacy alternative: paragraphs', with the shape of each. It lacks any statement about when to prefer a different tool (update_block, delete_block) or prerequisites such as page existence or permissions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources