Skip to main content
Glama

Append Block

append_block

Append a block to an AFFiNE document with support for multiple types (paragraph, heading, image, embed, etc.) and optional placement control.

Instructions

Append document blocks with canonical types and legacy aliases (supports placement + strict validation).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdNo
docIdYes
typeYesBlock type. Canonical: paragraph|heading|quote|list|code|divider|callout|latex|table|bookmark|image|attachment|embed_youtube|embed_github|embed_figma|embed_loom|embed_html|embed_linked_doc|embed_synced_doc|embed_iframe|database|data_view|surface_ref|frame|edgeless_text|note. Legacy aliases remain supported.
textNoBlock content text
urlNoURL for bookmark/embeds
pageIdNoTarget page/doc id for linked/synced doc embeds
iframeUrlNoOverride iframe src for embed_iframe
htmlNoRaw html for embed_html
designNoDesign payload for embed_html
referenceNoTarget id for surface_ref
refFlavourNoTarget flavour for surface_ref (e.g. affine:frame)
widthNoWidth for frame/edgeless_text/note
heightNoHeight for frame/edgeless_text/note
backgroundNoBackground for frame/note
sourceIdNoBlob source id for image/attachment
nameNoAttachment file name
mimeTypeNoAttachment mime type
sizeNoAttachment/image file size in bytes
embedNoAttachment embed mode
rowsNoTable row count
columnsNoTable column count
latexNoLatex expression
levelNoHeading level for type=heading
styleNoList style for type=list
bookmarkStyleNoBookmark card style
viewModeNoInitial data view preset for type=database or type=data_view. Defaults: database=table, data_view=kanban
checkedNoTodo state when type is todo
languageNoCode language when type is code
captionNoCode caption when type is code
strictNoStrict validation mode (default true)
placementNoOptional insertion target/position
Behavior2/5

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

With no annotations, the description must provide all behavioral context. It mentions placement and strict validation but fails to disclose write semantics, permissions, side effects, or error behavior. 'Append' implies creation but lacks detail.

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?

Single sentence with 12 words, front-loading the main action and key differentiators. Every part earns its place with no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 31 parameters, nested objects, and no output schema, the description is too terse. It omits return value, strict validation behavior, and placement semantics, leaving gaps for an AI agent to fully understand the tool.

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 94%, so the schema already explains most parameters. The description adds context about canonical types, legacy aliases, placement, and strict validation, providing marginal value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool appends document blocks, naming canonical types and legacy aliases, and highlights placement and strict validation. It differentiates from siblings like append_paragraph (simpler) and append_markdown (conversion-based).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use append_block versus other block-related siblings (e.g., append_paragraph, append_semantic_section). The description lacks 'use this when' or 'alternatives' context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DAWNCR0W/affine-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server