Skip to main content
Glama

Create Document From Markdown

create_doc_from_markdown

Create a new AFFiNE document by importing markdown content. Optionally embed it as a child in a parent document to appear in the sidebar.

Instructions

Create a new AFFiNE document and import markdown content. Use parentDocId to automatically embed the new doc into a parent, making it visible in the sidebar instead of being an orphan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdNo
titleNo
markdownYesMarkdown content to import
strictNo
parentDocIdNoIf provided, the new doc is automatically embedded into this parent doc as a linked child (visible in sidebar).
Behavior2/5

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

Without annotations, the description carries the full burden. It only mentions side-effect of embedding via parentDocId but does not disclose other behaviors like required permissions, error responses, or consequences of leaving parentDocId unset (orphan doc implied but not explicit). This is insufficient for a mutation tool.

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?

Two concise sentences with no redundant information. The key feature (parentDocId) is front-loaded in the second sentence. Every sentence adds value.

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?

Given 5 parameters, no output schema, and siblings like create_doc, the description covers the main purpose and a key option, but misses important details: the purpose of workspaceId, the 'strict' parameter, and what the tool returns. It is partially complete but has gaps.

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

Parameters1/5

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

Schema description coverage is 40% (only markdown and parentDocId have descriptions). The description adds no new parameter semantics beyond what the schema already provides. It does not explain workspaceId, title, or strict, which are undocumented in both the schema and description.

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 action: create a new document and import markdown content. It specifies the resource (AFFiNE document) and distinguishes from sibling tools like append_markdown or create_doc by mentioning importing markdown and the parentDocId embedding feature.

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?

The description implicitly guides usage by highlighting the parentDocId option to embed and avoid orphan documents. However, it lacks explicit when-to-use or when-not-to-use guidance compared to siblings like create_doc (no markdown) or append_markdown. The context is clear but not exhaustive.

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