Skip to main content
Glama

create_document

Create a document: a video edit with versions, like a git repository. Give jsx, the whole document, to create it in one call at any size, frame rate and length; without jsx it starts empty (10 seconds of 1920x1080 at 30 fps). The canvas needs every one of its fields (a sound-only document's too, whose width and height then draw nothing), and the timeline its schemaVersion, as in this 6-second vertical (9:16) video with a background: export default (<timeline canvas={{alphaMode: "premultiplied", colorSpace: "srgb", duration: 6, frameRate: {numerator: 30, denominator: 1}, height: 1920, ticksPerSecond: 1000, width: 1080}} schemaVersion={23}><fill id="bg" common={{order: "a0"}} paint={{style: "fill", source: {type: "solid", color: "#10233f"}}} /></timeline>); Each node is an element whose tag is its type, with an id, its fields as attributes and its children inside. Times are seconds, colours "#rrggbb" or, with alpha, "#rrggbbaa", and Doc.keys([seconds, value, easing], ...) is a keyframe curve, whose times count from the node's own start. edit_document's description shows how to write each kind of node and asset, and https://rendermate.com/docs/documents has the rest. The JSX get_document returns starts with a comment that explains the whole notation. Write the document out whole, without Doc.cut or Doc.more.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsxNoThe whole document to start from, written as JSX (https://rendermate.com/docs/documents): `export default (<timeline canvas={{…}}>…</timeline>)`. When absent, the document starts empty: 10 seconds of 1920×1080 at 30 fps.
nameNoA name people recognize it by, such as "Q3 update"; at most 200 characters.
messageNoThe first commit's message.
commit_idNoA UUID that makes the create safe to send again: sent again with the same one, it answers with the document it made instead of making another. The `Idempotency-Key` header does the same.
project_idNoThe project to put it in, `prj_…`; the workspace's default project when absent.

Output Schema

NameRequiredDescriptionDefault
idYesThe document, `doc_…`.
jsxNoThe [Rendermate document](https://rendermate.com/docs/documents) at this version, written as JSX; only when it's read, not when it's created or committed. Edit it with edit_document, giving this version as `base_version`.
authorNoThe API key, or the member, that made it.
sha256YesSHA-256 of the document as canonical JSON.
messageNoWhat the commit changes and why.
versionYesThe version's number: 1 for the document as created, one more for each commit.
commit_idYesThe commit that made the version.
committed_atNoRFC 3339.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false), and the description adds genuinely useful behavior: the exact empty-document defaults, the requirement that canvas and timeline fields be complete, unit/colour conventions, and the constraint to write the document whole without Doc.cut/Doc.more. It stops short of stating permissions or size limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The opening sentence is well front-loaded, but the body is a single dense paragraph carrying a full inline JSX example and notation rules that overlap with what edit_document and the docs URL supposedly cover. It is informative but heavier than a create call needs.

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

Completeness5/5

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

For a tool whose payload is a bespoke JSX DSL, the description supplies the defaults, the minimum valid structure, unit conventions, and pointers to edit_document and the docs for node-level detail. With an output schema present and idempotency documented in the schema, nothing essential to a correct call is 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?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema by spelling out the JSX notation (element-per-node, times in seconds, #rrggbb/#rrggbbaa, Doc.keys keyframe curves) that an agent needs to construct a valid jsx value. It adds less for name/message/commit_id/project_id, which the schema already documents.

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?

A specific verb plus resource: 'Create a document: a video edit with versions, like a git repository,' which even defines the domain concept. It does not, however, position itself against siblings such as fork_document or edit_document for selection purposes – edit_document is referenced only as a notation reference, not as an alternative.

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

Usage Guidelines3/5

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

The description clarifies how to call it (supply full jsx for one-shot creation vs omit it for an empty 10s/1920x1080/30fps default) but gives no explicit when-to-use/when-not versus fork_document or the create_* siblings. Usage is implied by the 'create' verb rather than routed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources