Skip to main content
Glama

Export a catalogue to PDF

export_pdf

Queue a PDF render of a catalogue. Returns a job immediately — rendering a long catalogue takes minutes — so poll get_export with the returned jobId until status is 'done' or 'failed'. This consumes the workspace's monthly export quota. On a plan that does not include PDF export it answers EXPORT_LOCKED with an unlockUrl: give that link to the user — you cannot pay or unlock on their behalf — and try again once they say they have unlocked or upgraded. If an identical export is already running, you join it rather than starting a second. Rendering may fetch external assets referenced by the catalogue.

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": {
      "documentId": "<documentId>",
      "llm_model": "<llm_model>"
    },
    "name": "export_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo'pdf' is the ordinary RGB web PDF and the default. 'print-pdf' is CMYK with an output intent, crop marks and bleed — much larger, and it renders muddy in a browser because a browser is not colour-managed. Only ask for it if the user wants files for a printer.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
documentIdYesThe catalogue's id, from list_documents.
conversation_idNoPass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare not-read-only, not-destructive and open-world; the description goes far beyond by disclosing that rendering is asynchronous and slow, that it consumes the workspace's monthly export quota, that locked plans return EXPORT_LOCKED with an unlockUrl the agent must hand off rather than act on, and that external assets may be fetched. These are exactly the operational traits an agent needs and cannot get from annotations.

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 core action and returns-immediately caveat before the quota and error-handling detail. Each sentence carries distinct information, though the density of five separate behavioral facts makes it slightly heavy for a single paragraph.

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?

No output schema exists, and the description compensates by explaining the immediate jobId return and the polling contract. Combined with quota, lock/unlock, dedupe and external-fetch caveats, there is no material gap for a mutation tool of this complexity.

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% and the parameter descriptions (format enum, llm_model, documentId source, conversation_id continuity) are already rich in the schema itself. The description adds essentially no parameter-level meaning beyond referencing the returned jobId, so the baseline 3 applies.

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 ("Queue a PDF render of a catalogue") and immediately clarifies the async semantics, distinguishing it from the synchronous read siblings. It also names get_export as the follow-up tool, so an agent can place it precisely in the workflow.

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 explicit when-to-use (queue then poll get_export until 'done' or 'failed'), when-not/implicit-alternative behavior (joining an already-running identical export rather than starting a second), and a concrete recovery path for the EXPORT_LOCKED case. Nothing about routing is left to inference.

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