Skip to main content
Glama

Presentations & Slides by Slaide

Export a Slaide document

export_document
Idempotent

Use this when the user asks for a file, a download, or 'the PowerPoint': it turns a document into a real file — pptx (editable PowerPoint), pdf, docx, png or xlsx (Excel workbook). An imported deck may preserve eligible original slides; an attached company template is used when the document fits it. Rendering takes up to a few minutes, so this returns a job_id. When the chat shows the user a live progress card for the job, the card follows it by itself and offers the download when the file is ready: say in a sentence that the file is being prepared, then stop — do not poll. Without such a card, poll get_job after poll_after_ms and, when it completes, hand the user the download link from the result. The link is private and expires after 15 minutes; it does not make the document public. Check available_exports from get_document if you are unsure a format is supported.

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>",
      "format": "<format>"
    },
    "name": "export_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYesThe file type the user asked for. Not every document supports every type; `available_exports` from get_document lists the ones this document supports.
document_idYesOpaque id of the document to export, taken from search_documents, get_document or a job result.
workbook_nameNoWhich workbook to export as xlsx when the document holds several. Use a `name` from `workbooks` in get_document. Not needed otherwise.
idempotency_keyNoA key of your choosing; reuse it when you retry after a lost response. Omitted, the same export of the same document version within 24 hours returns the earlier job instead of rendering again.

Output Schema

NameRequiredDescriptionDefault
noteNoPresent only when there is something to tell the user about this build; pass it on in your own words.
job_idYesHandle of the background job. Pass it to get_job or cancel_job.
statusYesState of the job when this response was sent: queued, running, completed, partial, failed or cancelled.
app_urlYesLink that opens the document in the Slaide web app. Share it with the user.
document_idYesThe document the job works on. Opaque id of the document. Pass it to get_document, update_document or export_document.
deduplicatedNoTrue when this request matched an earlier one and that earlier job is returned instead of a new one.
poll_after_msYesMilliseconds to wait before the first get_job call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: rendering can take minutes and returns a job_id, the download link is private and expires after 15 minutes without making the document public, and an attached company template may be applied. The annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=false) are consistent with this, though the description could say more about what happens to the original document or failed jobs.

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-loaded with the trigger and output formats, then the operational polling instructions. It is longer than typical but nearly every clause is actionable (stop-do-not-poll, poll_after_ms, expiry); the template/imported-deck sentence is the least essential.

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 export tool with an output schema, the description covers everything an agent needs: trigger conditions, formats, job_id return, polling vs progress-card behavior, and link lifetime. No gaps remain that would cause a wrong invocation.

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 description coverage is 100%, so the parameters (including the format enum and idempotency_key 24-hour reuse rule) are already fully documented in the schema. The description adds only the pointer to `available_exports` for format availability, which is useful but marginal against the schema's own 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?

States a specific verb (export/render) and resource (a document into a real file) and enumerates the concrete output formats (pptx, pdf, docx, png, xlsx). This clearly separates it from read-oriented siblings like get_document and from creation tools like create_document.

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

Usage Guidelines5/5

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

Gives an explicit trigger (user asks for a file, a download, or 'the PowerPoint'), then branches guidance: if a progress card exists, tell the user and stop polling; otherwise poll get_job after `poll_after_ms`. It also routes to get_document's `available_exports` when format support is uncertain, naming the sibling to use.

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