Skip to main content
Glama

create_document_from_content

Generate a complete freeform card deck from structured content, including cover, content pages, optional ending, and template styling with charts, tables, timelines, or progress elements.

Instructions

按结构化内容生成一整套自由画布卡片(v44):封面 + 每个 page 一页 + 可选结尾页,风格沿用所选模板。适合已经整理好标题、正文、要点的内容;每页还能配一种数据元素(chart / table / timeline / progress)。content 的完整写法(页面字段、版式选择、数据元素、生成规则)见 get_guide("deck-content")。生成后建议先 check_document,再 render_document 看缩略图。

Input Schema

NameRequiredDescriptionDefault
contentYes
templateIdYeslist_templates 返回的自由画布模板 id,如 "editorial-freeform"
includeDocumentNo同时返回完整文档 JSON(默认只返回 documentId 和 version)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden. It discloses the versioned nature (v44) and that only documentId and version are returned unless includeDocument is set, which is useful. But it says nothing about permissions, whether an existing document is created new, or rate/limit behavior 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what gets generated, then the suitability condition, then the guide pointer and the suggested verification flow. Dense but each sentence carries information; only the version tag (v44) is arguably noise.

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 deeply nested, 3-parameter generator with no output schema, the description covers the output contract (documentId/version), the follow-up validation path, and where the complex content grammar is documented. Only behavioral details of the write itself are missing.

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?

Adds meaning beyond the 67%-covered schema: content's full authoring spec lives in get_guide("deck-content"), and each page may carry one data element (chart/table/timeline/progress) placed in the whitespace left by text — a constraint not obvious from the schema. templateId is tied to list_templates output, and the default return shape is explained.

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: generates a full set of freeform canvas cards (cover + one page per page + optional ending page) using the chosen template's style. It also scopes the input as already-organized title/body/points content, which separates it from outline-driven siblings, though it never names create_document_from_outline or create_document_from_template explicitly.

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?

Gives clear context — use when content is already structured — and prescribes a follow-up workflow (check_document, then render_document), plus routes content-format questions to get_guide("deck-content"). No explicit when-not or sibling comparison, so it stops short of 5.

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