Skip to main content
Glama

Create Semantic Page

create_semantic_page

Create AFFiNE-native pages with semantic templates or custom sections, adding bullets, callouts, paragraphs, and optional parent placement to organize workspace content.

Instructions

Create an AFFiNE-native page with intentional section structure and native block composition.

Input Schema

NameRequiredDescriptionDefault
titleNoPage title.
pageTypeNoSemantic page template to seed default sections.
sectionsNoOptional explicit section structure. If omitted, the page type defaults are used.
parentDocIdNoOptional parent doc to link the new page under in the sidebar.
workspaceIdNoAFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured.

Output Schema

NameRequiredDescriptionDefault
okNo
codeNo
docIdNo
errorNo
stageNo
titleNo
noteIdNo
pageIdNo
statusNo
detailsNo
blockIdsNo
pageTypeNo
warningsNo
causeCodeNo
retryableNo
workspaceIdNo
parentLinkedNo
sectionCountNo
contentPersistedNo
recoveryGuidanceNo
metadataPersistedNo
sectionHeadingIdsNo
requiresManualRepairNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.10.2

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare non-readOnly, non-idempotent, non-destructive, open-world, so the safety profile is covered. The description adds nothing beyond a restatement of intent: it does not say what happens when pageType is omitted, whether defaults seed sections, whether a parent is required, or how it resolves workspace scope. For a non-idempotent write with an open-world hint, that is a real gap.

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, verb and resource first. It is efficient, though the brevity borders on under-specification rather than tightness.

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?

An output schema exists and the schema documents all five optional parameters, so return values and inputs need not be re-explained. But with zero required parameters and a non-idempotent write, the description should clarify defaults, override behavior, and workspace resolution; it leaves those to inference.

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 every parameter is documented in structured fields and baseline 3 applies. The description's phrases 'section structure' and 'native block composition' loosely gesture at sections and pageType but add no format, precedence, or interaction detail (e.g., how explicit sections override pageType defaults) beyond the schema.

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?

States a specific verb and resource ('Create an AFFiNE-native page') and adds a distinguishing qualifier about section structure and native block composition, which separates it from a plain doc-creation tool. It never names the sibling it is contrasted with (create_doc, instantiate_template_native), so the differentiation stays implicit.

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?

There is no when-to-use guidance and no mention of alternatives among the many nearby creation tools (create_doc, create_doc_from_markdown, instantiate_template_native, append_semantic_section). The agent must infer that this is the structured-page path versus the markdown or template path.

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