---
canonical_url: "https://docs.composio.dev/toolkits/carbone_mcp"
markdown_url: "https://docs.composio.dev/toolkits/carbone_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Carbone MCP

Generate PDF, DOCX, XLSX and other documents from templates and JSON data, convert files and manage stored templates through Carbone's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 14
- **Triggers:** 0
- **Slug:** `CARBONE_MCP`
- **Version:** 00000000_00

## Tools

### Convert document

**Slug:** `CARBONE_MCP_CONVERT_DOCUMENT`

Convert a file to another format, e.g. DOCX, XLSX, PPTX, HTML or Markdown to PDF, or any document to PNG. No data is merged: Carbone tags such as {d.name} stay as written (use render_document to fill them). Example: { "file": "https://example.com/report.docx", "convertTo": "pdf" }. To check a layout, convert to png: the image is returned inline (for HTML or SVG, converter "C" with formatOptions { "Scale": 2 }). Returns text and images (png, jpg, gif, webp) inline; other formats as a one-time download link: give it to the user as is, never open it yourself (the first download consumes it).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | string | No | The file to convert. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX). |
| `failOn` | array | No | ["IMAGE_URL_ERROR"] with converter "C": fail when an image of the HTML or SVG cannot be downloaded. |
| `convertTo` | string | Yes | Output format, e.g. "pdf". Valid outputs depend on the input format (HTML converts to pdf or png, not xlsx; doc, xls and ppt are output only). With options: { "formatName": "pdf", "formatOptions": { ... } }. |
| `converter` | string ("L" | "O" | "C" | "I") | No | Converter, used whenever the format changes. "L" LibreOffice (default): every format, and the only one with PDF/A, page ranges and accessibility. "I" Carbone ICE: DOCX and ODT to PDF, the fastest (keep "L" for WEBP or EMF/WMF images, SmartArt, complex charts, comments, form fields, equations, bookmarks, endnotes, and ODT tracked changes or footnotes). "O" OnlyOffice: DOCX, XLSX, PPTX to PDF. "C" Chromium: HTML and SVG to PDF, PNG, JPG, WEBP. Details: get_capabilities. |
| `reportName` | string | No | File name without extension, taken literally (no tags), e.g. "contract". |
| `returnLink` | boolean | No | If false, return the file itself (as asAttachment). True by default for formats not returned inline. Exclusive with asAttachment. |
| `hardRefresh` | boolean | No | If true, run the converter even for the same format, and recompute pagination. Set automatically for PDF to PDF with formatOptions (password, watermark, PDF/A), which otherwise come back unchanged. |
| `asAttachment` | boolean | No | If true, return the file itself as a base64 attachment, for any format, instead of the default (link or inline). Not every client can open it. |
| `attachedFile` | object | No | A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass file instead. Mutually exclusive with file. |
| `egressAuthorization` | string | No | Authorization header value Carbone sends when it fetches images or styles of the file, e.g. "Bearer abc". |

### Delete template

**Slug:** `CARBONE_MCP_DELETE_TEMPLATE`

Delete a stored template now: a Template ID removes every version, a Version ID only that one. Confirm with the user first: it cannot be undone. To schedule a deletion instead, use update_template_metadata with expireAt.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `templateId` | string | Yes | Template ID (every version) or Version ID (that version only), from list_templates. |

### Download template

**Slug:** `CARBONE_MCP_DOWNLOAD_TEMPLATE`

Download a stored template's original file (DOCX, XLSX, HTML...), or with sample: true the sample dataset stored with it. Text and images come back inline; other files as a base64 attachment, which not every client can open.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sample` | boolean | No | If true, return the sample dataset stored at upload, as JSON, instead of the file; an error if there is none. |
| `templateId` | string | Yes | Template ID (its deployed version) or Version ID, from list_templates. |
| `asAttachment` | boolean | No | If true, return a text or image file as a base64 attachment too. |

### Find template examples

**Slug:** `CARBONE_MCP_FIND_TEMPLATE_EXAMPLES`

Find a ready-to-run Carbone example: when the user wants to try Carbone, needs a starting template, or asks how to build a kind of document (invoice, label, report, contract, e-invoice...) or use a feature (loop, chart, barcode...). Each example is a real template (DOCX, XLSX, PPTX, ODT, HTML, SVG, CSV, XML, IDML...) with its JSON data, the document it produces, and a page explaining its tags. Each comes with renderArguments: pass them, unchanged, to render_document to fill it with its data (converting it is optional). inspect_template on its template URL lists the data it expects; upload_template keeps it in the account to adapt. No argument: the newest examples and the use cases.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | One example, by its id. |
| `kind` | string ("gallery" | "format-guide") | No | "gallery": complete business documents. "format-guide": one feature of one format, for beginners. |
| `level` | string ("beginner" | "intermediate" | "advanced") | No |  |
| `limit` | integer | No | 1 to 25 results (default 8). |
| `query` | string | No | Keywords, e.g. "invoice barcode", "excel chart", "shipping label", "pdf form". |
| `useCase` | string | No | A use case: finance, logistics, reports, compliance, tickets, planning, presentations, publishing. |
| `resultFormat` | string | No | Generated format, e.g. "pdf", "xlsx", "csv". |
| `templateFormat` | string | No | Template format, e.g. "docx", "xlsx", "html". |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `total` | integer | Yes | How many examples match (more than listed when above the limit). |
| `examples` | array | Yes |  |

### Get api status

**Slug:** `CARBONE_MCP_GET_API_STATUS`

Check Carbone API health and version. Returns the current API version and a status message. Useful for verifying connectivity and confirming which Carbone version is active.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `message` | string | Yes | Status message returned by the API. |
| `version` | string | Yes | The running Carbone API version. |

### Get capabilities

**Slug:** `CARBONE_MCP_GET_CAPABILITIES`

Returns a summary of all Carbone capabilities: supported formats, features, tool usage examples, and links to full documentation. Call this first if you are unsure what Carbone can do.

### Get render result

**Slug:** `CARBONE_MCP_GET_RENDER_RESULT`

Get the result of a render_document call made with async: true: the one-time download link (give it to the user, never open it), the error, or "still rendering" (call again about 5 seconds later; no result after 10 minutes is reported as failed). Results are kept 1 hour, for the caller who started the render.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `jobId` | string | Yes | The job ID render_document returned. |

### Inspect template

**Slug:** `CARBONE_MCP_INSPECT_TEMPLATE`

List the Carbone tags a template uses and return a sample JSON dataset matching its structure. Call it before render_document when you do not know which data a template expects. Pass templateId (a stored template) or template (HTTPS URL or base64). It counts as one render on the account; {t()} tags are not listed.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `template` | string | No | A template to inspect, not stored. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX). Exclusive with templateId. |
| `templateId` | string | No | Template ID (its deployed version) or Version ID, from list_templates. Exclusive with template. |
| `attachedTemplate` | object | No | A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass template instead. Mutually exclusive with template and templateId. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | Yes | The Carbone tags of the template, as written, e.g. "{d.customer.name}", "{d.items[i].label}", "{c.company}". {t()} translation tags are not listed. |
| `error` | object | No | Error reported by Carbone while inspecting; only present when there is one. |
| `sample` | object | Yes | A sample dataset matching the template structure, with placeholder values: { "data": {...}, "complement": {...} }. Pass sample.data as render_document data, and sample.complement as complement. |
| `signatures` | array | No | Signature fields found in the template; only present when there are any. |

### List categories

**Slug:** `CARBONE_MCP_LIST_CATEGORIES`

List the template categories in use, for the category filter of list_templates or upload_template.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `categories` | array | Yes | Template category names in use. |

### List tags

**Slug:** `CARBONE_MCP_LIST_TAGS`

List the tags in use across templates. To find the templates with a tag, call list_templates and keep the results whose tags include it.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | Yes | Template tag names in use. |

### List templates

**Slug:** `CARBONE_MCP_LIST_TEMPLATES`

List stored templates, with filters and pagination. Each result has an id (Template ID; null for a template uploaded with versioning: false) and a versionId: pass either as templateId to render_document, download_template or delete_template. Each result lists its tags: to find templates by tag, keep the results whose tags include it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Filter by Template ID. Cannot be a Version ID. |
| `limit` | integer | No | 1 to 100 results (default 100); use cursor for more. |
| `cursor` | string | No | The nextCursor of the previous response. |
| `origin` | integer | No | Upload origin: 0 API (this server), 1 Carbone Studio, 2 Salesforce, 3 Odoo, 4 HubSpot. |
| `search` | string | No | Fuzzy search in template names, or exact match on Template ID / Version ID. |
| `category` | string | No | Filter by category (e.g. "invoices", "legal"). |
| `versionId` | string | No | Filter by Version ID (SHA-256 format). |
| `includeVersions` | boolean | No | If true, returns all versions for each template. Default: false (only deployed version). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `hasMore` | boolean | Yes | Whether more results are available via the cursor. |
| `templates` | array | Yes | The matching templates (all fields). |
| `nextCursor` | string | No | Cursor to pass to the next list_templates call. |

### Render document

**Slug:** `CARBONE_MCP_RENDER_DOCUMENT`

Generate a document (PDF, DOCX, XLSX, PPTX, ...) by merging JSON data into a Carbone template. Pass templateId for a stored template, or template (HTTPS URL or base64) for a one-off render. To change the format of a file without data, use convert_document; unsure which data a template expects, call inspect_template first. Returns text and images (png, jpg, gif, webp) inline; other formats as a one-time download link: give it to the user as is, never open it yourself (the first download consumes it). Batches and renders over a minute: pass async: true, then call get_render_result with the job ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | No | JSON for the {d.…} tags: an object, a top-level array, or a reference to a JSON file (HTTPS URL or base64). Omitted: every tag renders empty; to keep tags as written, use keepTags. Tag syntax: the Carbone Skill. |
| `enum` | string | No | Labels for :convEnum(TYPE), e.g. { "STATUS": { "1": "Active" } }, or a reference to a JSON file. |
| `lang` | string | No | Locale for {t()} translations, :formatN and :formatC, e.g. "fr-fr", "en-us". |
| `async` | boolean | No | If true, render in the background (up to 10 minutes) and return a job ID at once; then call get_render_result with it. For batches and long renders. Exclusive with webhookUrl. |
| `failOn` | array | No | ["IMAGE_URL_ERROR"]: fail when an image URL cannot be downloaded, instead of showing a placeholder. |
| `keepTags` | boolean | No | If true, skip templating: tags stay as written, to proof a template's layout. Exclusive with data. |
| `template` | string | No | A one-off template, not stored. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX). To reuse one, upload_template (requestUploadUrl for a large file) then pass templateId. Exclusive with templateId. |
| `timezone` | string | No | IANA time zone for :formatD dates, e.g. "America/New_York". Default "Europe/Paris". |
| `convertTo` | string | No | Output format, e.g. "pdf". Omitted: the template's own format. Valid outputs depend on the input format (HTML converts to pdf or png, not xlsx; doc, xls and ppt are output only). With options: { "formatName": "pdf", "formatOptions": { ... } }. |
| `converter` | string ("L" | "O" | "C" | "I") | No | Converter, used whenever the format changes. "L" LibreOffice (default): every format, and the only one with PDF/A, page ranges and accessibility. "I" Carbone ICE: DOCX and ODT to PDF, the fastest (keep "L" for WEBP or EMF/WMF images, SmartArt, complex charts, comments, form fields, equations, bookmarks, endnotes, and ODT tracked changes or footnotes). "O" OnlyOffice: DOCX, XLSX, PPTX to PDF. "C" Chromium: HTML and SVG to PDF, PNG, JPG, WEBP. Details: get_capabilities. |
| `complement` | string | No | Extra data for {c.…} tags (company details, constants), or a reference to a JSON file. |
| `reportName` | string | No | File name without extension; may use tags, e.g. "invoice-{d.id}" (taken literally with keepTags). |
| `returnLink` | boolean | No | If false, return the file itself (as asAttachment). True by default for formats not returned inline. Exclusive with asAttachment. |
| `templateId` | string | No | A stored template, from list_templates or upload_template (never guess one): its Template ID (renders the deployed version) or a Version ID (64 hex characters, pins that version). Exclusive with template. |
| `webhookUrl` | string | No | Only an endpoint the user owns and gives you: Carbone POSTs { "success": true, "data": { "renderId" } } to it when the document is ready, and that server downloads it once. This call then returns no document. Prefer async: true. |
| `batchOutput` | string ("zip" | "pdf") | No | Batch result: "zip" (default, named after reportName, or batch.zip without one) or "pdf", one concatenated PDF (needs convertTo "pdf"). |
| `hardRefresh` | boolean | No | If true, recompute pagination and the table of contents after rendering. Needs convertTo. |
| `variableStr` | string | No | Aliases for the whole template, e.g. "{#buyer = d.order.customer}", then {$buyer.name} in it. |
| `asAttachment` | boolean | No | If true, return the file itself as a base64 attachment, for any format, instead of the default (link or inline). Not every client can open it. |
| `batchSplitBy` | string | No | One document per item of an array: "d" when data is the array, "d.items" for a child array; at most 100. Needs async: true (or a webhookUrl the user provides). |
| `translations` | string | No | Strings for {t(key)}, selected by lang: { "fr-fr": { "hello": "Bonjour" } }, or a reference to a JSON file. |
| `currencyRates` | string | No | Rates per currency, base 1: { "EUR": 1, "USD": 1.08 }, or a reference to a JSON file. |
| `currencySource` | string | No | ISO 4217 currency of the amounts in data, for :formatC. Set with currencyTarget and currencyRates. |
| `currencyTarget` | string | No | ISO 4217 currency to convert the amounts to. |
| `webhookHeaders` | object | No | Headers Carbone sends to webhookUrl, e.g. { "authorization": "secret" }. |
| `batchReportName` | string | No | Name of each file in the batch ZIP, without extension; tags resolve per item, e.g. "invoice-{d.id}". |
| `attachedTemplate` | object | No | A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass template instead. Mutually exclusive with template and templateId. |
| `egressAuthorization` | string | No | Authorization header value Carbone sends when it fetches images, PDFs or the webhook while rendering. |
| `preReleaseFeatureIn` | integer | No | Turn on Carbone pre-release features up to this version tag, e.g. 5000000. |

### Update template metadata

**Slug:** `CARBONE_MCP_UPDATE_TEMPLATE_METADATA`

Change ONE template version: name, comment, category, tags, deployment (deployedAt), scheduled deletion (expireAt), or the Template ID it belongs to (moveToTemplateId). A Template ID patches its deployed version; a Version ID, that exact version. To delete now, use delete_template.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New name (max 200 characters). |
| `tags` | array | No | New tags, replacing the current ones: sorted, deduplicated, 100 characters in all. |
| `comment` | string | No | New comment (max 200 characters). |
| `category` | string | No | New category (max 200 characters). |
| `expireAt` | integer | No | Delete this version at this UTC Unix time (seconds); 0 cancels a scheduled deletion. |
| `deployedAt` | integer | No | 42000000000 deploys this version now: renders by Template ID use the most recently deployed version. |
| `templateId` | string | Yes | The version to change: a Version ID, or a Template ID for its deployed version. |
| `moveToTemplateId` | string | No | Only when the user asks to move a version: moves it to this other Template ID. Not the template to change (that is templateId). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Template ID the version now belongs to (returned when moveToTemplateId was used). |
| `name` | string | No | Name, returned if updated. |
| `tags` | array | No | Tags, returned if updated. |
| `comment` | string | No | Comment, returned if updated. |
| `category` | string | No | Category, returned if updated. |
| `expireAt` | number | No | Deletion timestamp (0 = never expires), returned if updated. |
| `versionId` | string | Yes | Version ID of the patched version. |
| `deployedAt` | number | No | Deployment timestamp, returned if updated. |

### Upload template

**Slug:** `CARBONE_MCP_UPLOAD_TEMPLATE`

Store a reusable template, then render it with render_document and its Template ID. Pass exactly one of template, attachedTemplate, requestUploadUrl. Returns id (Template ID) and versionId. A new version of an existing template (id) is used by renders only once deployed (deployedAt).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Template ID to add this upload to as a new version; omitted: a new template. Never a Version ID. |
| `name` | string | No | Display name, shown and searched by list_templates (max 200 characters). Defaults to the attached file name. |
| `tags` | array | No | Labels, e.g. ["sales", "billing"]: sorted, deduplicated, 100 characters in all. |
| `sample` | array | No | A sample dataset stored with the template, at most one: [{ "data": { "name": "Acme" } }]. |
| `comment` | string | No | Comment on this version (max 200 characters). |
| `category` | string | No | Category, e.g. "invoices" (max 200 characters). |
| `expireAt` | integer | No | Delete the template at this UTC Unix time (seconds); 0 (default) never. Until then, update_template_metadata with expireAt 0 cancels it. To delete now, use delete_template. |
| `template` | string | No | The template file. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX). |
| `deployedAt` | integer | No | 42000000000 deploys this version now: renders by Template ID use the most recently deployed version. Earlier versions stay stored. update_template_metadata redeploys one. |
| `versioning` | boolean | No | Leave true (default). false is legacy: no Template ID, only a SHA-256 templateId. |
| `attachedTemplate` | object | No | A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass template instead. Mutually exclusive with template. |
| `requestUploadUrl` | object | No | Instead of template, when you can run shell commands: the file size and SHA-256. Returns uploadUrl and headers, valid 10 minutes for that file only: POST the file as the raw body with those headers (curl -H '<name>: <value>' --data-binary @<file> <uploadUrl>); the answer is the stored template (id, versionId). Prefer it to base64 for any file over a few KB. Not with template, attachedTemplate or sample. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Stable Template ID (when versioning is enabled). |
| `name` | string | No | Template display name, when one was given. |
| `size` | number | No | Template size in bytes. |
| `type` | string | No | Detected template file type. |
| `headers` | object | No | requestUploadUrl only: the headers to send with the file. |
| `createdAt` | number | No | UTC Unix timestamp (seconds) of the upload. |
| `expiresAt` | number | No | requestUploadUrl only: UTC Unix timestamp after which the URL is refused. |
| `uploadUrl` | string | No | requestUploadUrl only: POST the file here as the raw body; the answer is the stored template. Nothing is stored before. |
| `versionId` | string | No | Version ID (SHA-256) of this uploaded version. |
| `deployedAt` | number | No | UTC Unix timestamp of deployment; 0 means this version is not explicitly deployed. |
| `templateId` | string | No | versioning: false only: the Version ID (SHA-256) of the upload, not a Template ID. |
| `templateExtension` | string | No | Detected file extension, e.g. "docx" (legacy/non-versioned mode). |
