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 into a parent document to make it visible 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).
Behavior3/5

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

No annotations are provided, so the description must cover behavioral traits. It explains the embedding behavior but omits details like required authentication, workspace context, or what happens on failure. The creation and import behavior is clear but incomplete.

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?

The description is extremely concise with two sentences. The first sentence states the primary purpose, and the second adds key usage guidance. No redundant information.

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 the tool has 5 parameters (1 required) and no output schema or annotations, the description is incomplete. It does not explain workspaceId, title, strict parameters, or the return value. It only covers the basic creation and embedding behavior.

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

Parameters2/5

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

Schema coverage is only 40%, but the description only adds value for parentDocId (repeating schema info) and implies markdown is content. Other parameters (workspaceId, title, strict) are not explained, so the description falls short of compensating for the low coverage.

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 creates a new AFFiNE document and imports markdown content, which distinguishes it from sibling tools like 'create_doc' that likely create empty documents. The verb 'create' and resource 'document' are specific.

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 provides useful guidance on when to use the parentDocId parameter to embed the doc, implying its benefit for sidebar visibility. However, it does not explicitly contrast with alternative tools or mention when not to use this tool.

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