Skip to main content
Glama

create_export

Export a document version to download: an MP4 (H.264 video with AAC sound, silent when the document has none), or with format m4a its sound alone as an M4A, which is how a version that has only sound exports. It renders in the background: call get_export with its ID until it's done. Exporting a version again reuses what was already rendered.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "document_id": "<document_id>"
    },
    "name": "create_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNoAn alias, such as `latest`; `latest` when neither this nor `version` is given.
formatNo`mp4` or `m4a`. Absent, a version with a picture exports as `mp4` and one that has only sound (every node is `audio` or `tone`) as `m4a`, which is also its only format.
versionNoA version, by number.
document_idYesThe document to export, `doc_…`.

Output Schema

NameRequiredDescriptionDefault
idYes`exp_…`.
errorYesWhy it failed.
usageYesOnce it has succeeded, its video segments (an `m4a`'s audio segments) and how many of them it rendered; the rest were reused from earlier renders (playback, or an identical export) and cost nothing.
statusYes`queued`, `running`, `succeeded` or `failed`.
versionYesThe document version it exports.
file_nameYesThe file name it downloads as.
created_atYesRFC 3339.
updated_atYesRFC 3339: when its status last changed.
document_idYesThe document it exports.
download_urlYesOnce it has succeeded, where to download it (ranges work); it expires in about a day.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive, closed-world; the description adds genuinely useful behavior beyond that — asynchronous background rendering, the polling contract via get_export, render reuse on repeat calls, and the silent-audio case. Permissions, cost, and failure modes are not covered, keeping it below the top mark.

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?

The purpose is front-loaded in the opening clause and every sentence carries information about format, async behavior, or reuse. The middle clause ('which is how a version that has only sound exports') is somewhat convoluted relative to the surrounding text, but nothing is redundant.

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 an asynchronous creation tool with a rich output schema, the description supplies everything an agent needs: what is produced, how format defaults resolve, and the follow-up polling step with get_export. Return-value shape is covered by the output schema, so no gap remains.

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 coverage is 100% and the schema already documents alias, version, format, and document_id, including the mp4/m4a defaults and the 'latest' fallback. The description restates the format-to-content relationship but adds no syntax, precedence, or edge-case detail (e.g., what happens if an alias and version are both supplied) beyond the schema.

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?

States a specific verb and resource ('Export a document version to download') and immediately enumerates the two output artifacts (MP4 H.264/AAC or M4A audio-only). It also distinguishes itself from the sibling get_export by naming it as the polling counterpart, so an agent can tell the two apart without opening a schema.

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 operational context: this starts a background render and you must poll get_export with the returned ID until done, and re-exporting a version reuses prior renders. It does not discuss when a different approach is preferable (e.g., previews vs. full exports or picking a version vs. an alias), so it stops short of explicit alternatives.

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