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

# Templated MCP

Render Templated templates to images, PDFs and videos, and manage templates, folders, uploads and fonts, through Templated's hosted MCP server.

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

## Tools

### Clone template

**Slug:** `TEMPLATED_MCP_CLONE_TEMPLATE`

Copy a template, with all its layers and pages, into a new template in the same account. Use this to make a variation without changing the original. Returns the copy, which keeps the original's name unless 'name' is given.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Name for the cloned template |
| `template_id` | string | Yes | The template ID to clone |

### Create folder

**Slug:** `TEMPLATED_MCP_CREATE_FOLDER`

Create a folder to organize templates in the connected Templated account. Use this when the user wants to group templates. Returns the new folder with its ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Folder name |

### Create render

**Slug:** `TEMPLATED_MCP_CREATE_RENDER`

Render a Templated template into an image (JPG, PNG or WebP), a PDF or an MP4 video, with new text, images and colors in its layers. Use this when the user wants a finished design from one of their templates, such as a social media post, banner, OG image, certificate or invoice. Templated fills the saved template with the exact values given: this is template rendering, not AI image generation. Pass the template ID and 'layers' keyed by the layer names from get_template_layers; names the template doesn't have are rejected before anything is rendered. Multi-page templates render every page, or only the pages listed in 'pages'. Each output counts toward the account's render usage. Returns the render with its file URL (one render per page for multi-page templates).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `fps` | number | No | Frames per second (MP4 only, 1-60) |
| `cmyk` | boolean | No | Use CMYK color mode (PDF only) |
| `name` | string | No | Custom name for the render |
| `pages` | array | No | For multi-page templates: the pages to render, each with its own layer values. Each item has 'page' (a page name from get_template_pages) and 'layers' keyed by layer name, like the top-level 'layers'. Only the listed pages are rendered. Use either 'layers' or 'pages' in one call. |
| `scale` | number | No | Scale factor (0.1-2.0) |
| `width` | number | No | Custom width in pixels (100-5000) |
| `format` | string ("jpg" | "png" | "webp" | "pdf" | "mp4") | No | Output format. Default: jpg |
| `height` | number | No | Custom height in pixels (100-5000) |
| `layers` | object | No | Layer values keyed by layer name, e.g. { "title": { "text": "Hello" }, "photo": { "image_url": "https://..." } }. Each value can set text, image_url, color, background, hide and other layer properties. When new text is longer than the template's, 'autofit' ('height' or 'width') with 'max_font_size' on that layer sizes it to the layer's box; a 'font_size' in the same layer turns autofit off. 'animation' (MP4 only) takes 'in' (entrance: type slide&#124;fade&#124;zoom&#124;rotate, direction, duration, writingStyle), 'loop' (type spin&#124;pulse, duration), 'out' (exit: type slide&#124;fade&#124;zoom, direction, duration), 'start' and 'end' (when the layer appears and disappears). All animation times are in milliseconds. |
| `flatten` | boolean | No | Flatten PDF for print-ready documents |
| `duration` | number | No | Video duration in milliseconds (MP4 only, max 90000) |
| `template` | string | Yes | The template ID to render (from list_templates) |
| `background` | string | No | Background color in hex format (e.g., #FF0000) |
| `transparent` | boolean | No | Make background transparent (PNG only) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No |  |
| `url` | string | No | File URL |
| `name` | string | No |  |
| `page` | string | No | Page name, for multi-page templates |
| `width` | number | No |  |
| `format` | string | No | jpg, png, webp, pdf or mp4 |
| `height` | number | No |  |
| `status` | string | Yes | completed, pending or failed; for several renders, pending while any of them is |
| `renders` | array | No | Present when the call produced several renders (one per page); single renders put their fields at the top level |
| `editorUrl` | string | No | Link to edit the template in the Templated editor |
| `templateId` | string | No |  |
| `templateName` | string | No |  |

### Create template

**Slug:** `TEMPLATED_MCP_CREATE_TEMPLATE`

Create a new template in the connected Templated account from layers, for example a social media post, banner, OG image, certificate or invoice. Use this when none of the existing templates fits or the account has no templates yet. Each layer has a unique name in 'layer' and a 'type': text, image, shape or rating. Shape layers draw rectangles, circles and other shapes from SVG content in 'html'. Text wider than its box wraps onto extra lines, which can spill over the layers above and below: a line is roughly its character count x font size x 0.6 wide (0.7 for heavy weights, wide display fonts and capitals). Setting 'autofit' with 'max_font_size' on a text layer lets Templated size the text to the box, which suits headlines and text that changes per render. For a multi-page or multi-size template (several sizes in one template), pass 'pages' in place of 'layers'. Returns the new template; its ID can be rendered right away with create_render.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Template name |
| `pages` | array | No | Pages for a multi-page or multi-size template (for example an Instagram square, a story and an X landscape version in one template, each with its own width and height). Used in place of top-level 'layers'. Each page has 'page' (a unique name), optional 'width'/'height' (default: the template size), and 'layers' as an object keyed by layer name, the same shape get_template_pages returns. |
| `width` | number | Yes | Template width in pixels |
| `height` | number | Yes | Template height in pixels |
| `layers` | array | No | Layers of a single-page template. Each layer object has 'layer' (its unique name, later used as the key in create_render) and 'type'. |
| `duration` | number | No | Default video duration in milliseconds for MP4 renders (e.g., 5000 for 5 seconds). Used as fallback when no duration is specified at render time. |
| `background` | string | No | Template background color (e.g., '#ffffff', 'rgb(255,255,255)', 'transparent') |

### Create upload

**Slug:** `TEMPLATED_MCP_CREATE_UPLOAD`

Upload an image (JPG, PNG, WebP or SVG, up to 10 MB) from a public URL to the connected Templated account. Use this to keep an image in the account's assets for templates and renders. Returns the upload; its 'path' is the URL to use as image_url. API reference: https://templated.io/docs

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Public URL of the image to upload |
| `name` | string | No | Optional name for the upload |

### Delete folder

**Slug:** `TEMPLATED_MCP_DELETE_FOLDER`

Delete a folder from the connected Templated account. The templates inside it are not deleted: they move out of the folder to the top level of the account. Use this when the user asks to remove a folder.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `folder_id` | string | Yes | The folder ID to delete |

### Delete font

**Slug:** `TEMPLATED_MCP_DELETE_FONT`

Permanently delete a custom font from the connected Templated account by family name, including every file uploaded under that name. Templates that use it fall back to another font in later renders. Use this when the user asks to remove a font.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `font_name` | string | Yes | The font family name to delete, as returned by list_fonts |

### Delete render

**Slug:** `TEMPLATED_MCP_DELETE_RENDER`

Permanently delete a render from the connected Templated account; it can't be restored. Use this when the user asks to remove a render. Takes the render ID from list_renders and returns a confirmation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `render_id` | string | Yes | The render ID to delete |

### Delete template

**Slug:** `TEMPLATED_MCP_DELETE_TEMPLATE`

Permanently delete a template from the connected Templated account; it can't be restored or rendered afterwards. Renders already created from it are kept. Use this when the user asks to delete a template.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `template_id` | string | Yes | The template ID to delete |

### Delete upload

**Slug:** `TEMPLATED_MCP_DELETE_UPLOAD`

Permanently delete an uploaded image from the connected Templated account; it can't be restored. Use this when the user asks to remove an upload. Takes the upload ID from list_uploads.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `upload_id` | string | Yes | The upload ID to delete |

### Get account

**Slug:** `TEMPLATED_MCP_GET_ACCOUNT`

Get the connected Templated account's render usage for the current period: renders used (apiUsage), renders included (apiQuota) and the percentage used. Use this to check how many renders are left before a large batch.

### Get render

**Slug:** `TEMPLATED_MCP_GET_RENDER`

Get one render by ID with its status, format, size and file URL. Use this to check whether a render has finished or to find its URL again.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `render_id` | string | Yes | The render ID |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No |  |
| `url` | string | No | File URL |
| `name` | string | No |  |
| `page` | string | No | Page name, for multi-page templates |
| `width` | number | No |  |
| `format` | string | No | jpg, png, webp, pdf or mp4 |
| `height` | number | No |  |
| `status` | string | Yes | completed, pending or failed; for several renders, pending while any of them is |
| `renders` | array | No | Present when the call produced several renders (one per page); single renders put their fields at the top level |
| `editorUrl` | string | No | Link to edit the template in the Templated editor |
| `templateId` | string | No |  |
| `templateName` | string | No |  |

### Get template

**Slug:** `TEMPLATED_MCP_GET_TEMPLATE`

Get one template's details by ID: name, size, background, thumbnail, tags, folder, and layer and page counts. Use this to check a template's size or settings; get_template_layers returns its editable layers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `template_id` | string | Yes | The template ID |

### Get template layers

**Slug:** `TEMPLATED_MCP_GET_TEMPLATE_LAYERS`

List a template's layers with their names, types and current values (text, image_url, colors, fonts, position and size). Use this before create_render: the layer names are the keys create_render accepts in 'layers'. Covers every page of a multi-page template; get_template_pages groups the layers by page.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `template_id` | string | Yes | The template ID |

### Get template pages

**Slug:** `TEMPLATED_MCP_GET_TEMPLATE_PAGES`

List the pages of a multi-page or multi-size template, each with its name, width, height and layers keyed by layer name. Use this to render specific pages with create_render ('pages') or to edit pages with update_template, which accepts the same shape.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `template_id` | string | Yes | The template ID |

### List folders

**Slug:** `TEMPLATED_MCP_LIST_FOLDERS`

List the folders in the connected Templated account with the number of templates in each, 25 per page by default (max 100). Use this to find a folder ID for update_folder or delete_folder. Returns the folders plus total and hasMore.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | number | No | Page number, starting at 0 (default: 0) |
| `limit` | number | No | Results per page (default: 25, max: 100) |

### List fonts

**Slug:** `TEMPLATED_MCP_LIST_FONTS`

List the custom fonts uploaded to the connected Templated account, 25 per page by default (max 100). Templates can also use any Google Font by family name: set include_google_fonts to true to list those too, and query to search by name. Use this to choose a font_family for create_template or update_template, or to find the name for delete_font. Returns the font names plus total and hasMore.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | number | No | Page number, starting at 0 (default: 0) |
| `limit` | number | No | Results per page (default: 25, max: 100) |
| `query` | string | No | Only fonts whose name contains this text (case-insensitive) |
| `include_google_fonts` | boolean | No | Also list the Google Fonts available to every template (default: false) |

### List renders

**Slug:** `TEMPLATED_MCP_LIST_RENDERS`

List the renders in the connected Templated account, newest first, 25 per page by default (max 100). Use this to find a render's ID or file URL, for example to merge PDFs with merge_renders. Returns each render's id, url, status, format, size and template.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | number | No | Page number, starting at 0 (default: 0) |
| `limit` | number | No | Results per page (default: 25, max: 100) |

### List templates

**Slug:** `TEMPLATED_MCP_LIST_TEMPLATES`

List the templates in the connected Templated account, 25 per page by default (max 100), optionally filtered by name (query), size (width, height) or tags. Use this first to find the template ID for create_render, get_template_layers or update_template. Returns each template's id, name, size, thumbnail, folder, and layer and page counts.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | number | No | Page number, starting at 0 (default: 0) |
| `tags` | string | No | Filter by tags (comma-separated) |
| `limit` | number | No | Results per page (default: 25, max: 100) |
| `query` | string | No | Search query to filter templates by name |
| `width` | number | No | Filter by template width |
| `height` | number | No | Filter by template height |
| `includeLayers` | boolean | No | Include each template's layers (a much larger response; get_template_layers reads one template's layers) |

### List template renders

**Slug:** `TEMPLATED_MCP_LIST_TEMPLATE_RENDERS`

List the renders created from one template, 25 per page by default (max 100). Use this to find earlier outputs of a template. Returns each render's id, url, status and format.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | number | No | Page number, starting at 0 (default: 0) |
| `limit` | number | No | Results per page (default: 25, max: 100) |
| `template_id` | string | Yes | The template ID |

### List uploads

**Slug:** `TEMPLATED_MCP_LIST_UPLOADS`

List the images uploaded to the connected Templated account, 25 per page by default (max 100). Use this to reuse an uploaded image: its 'path' is a URL that can be set as image_url on an image layer. Returns each upload's id, name, type, size and path.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | number | No | Page number, starting at 0 (default: 0) |
| `limit` | number | No | Results per page (default: 25, max: 100) |

### Merge renders

**Slug:** `TEMPLATED_MCP_MERGE_RENDERS`

Merge several renders into one PDF, in the order given, for example one certificate or invoice per recipient. Image renders become PDF pages. Use this after creating the individual renders. Each merge counts toward the account's render usage. Returns the URL of the merged PDF. With host set to false the PDF itself is returned inline instead, which only works for PDFs up to 100 KB.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `host` | boolean | No | true (default): return a URL to the merged PDF. false: return the PDF inline as an embedded file, for PDFs up to 100 KB. |
| `render_ids` | array | Yes | Render IDs to merge, in page order |

### Update folder

**Slug:** `TEMPLATED_MCP_UPDATE_FOLDER`

Rename a folder. Use this when the user wants to change a folder's name. Returns the updated folder.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | New folder name |
| `folder_id` | string | Yes | The folder ID |

### Update template

**Slug:** `TEMPLATED_MCP_UPDATE_TEMPLATE`

Change an existing template: name, description, size, background, default video duration, layers or pages. Use this to edit a design, resize it, or add sizes to a multi-size template. Layers are matched by their 'layer' name: an existing layer is updated in place and a new name is added. Top-level 'layers' apply to the first page; 'pages' reaches the others. With replaceLayers true, layers missing from the request are deleted. To move a layer, send both x and y (a missing coordinate is set to 0). In 'pages', a page name that doesn't exist yet is added and an existing page has its layers updated. On a multi-size template, set width and height per page inside 'pages'; top-level width and height are rejected there because they would resize every page. Returns the updated template.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New template name |
| `pages` | array | No | Pages for a multi-page or multi-size template (for example an Instagram square, a story and an X landscape version in one template, each with its own width and height). Used in place of top-level 'layers'. Each page has 'page' (a unique name), optional 'width'/'height' (default: the template size), and 'layers' as an object keyed by layer name, the same shape get_template_pages returns. |
| `width` | number | No | New width in pixels. Applies to every page; rejected on multi-size templates (use per-page width inside 'pages') |
| `height` | number | No | New height in pixels. Applies to every page; rejected on multi-size templates (use per-page height inside 'pages') |
| `layers` | array | No | Layer definitions. Each has 'layer' (its unique name) and 'type' (text, image, shape or rating). |
| `duration` | number | No | Default video duration in milliseconds for MP4 renders (e.g., 5000 for 5 seconds) |
| `background` | string | No | Template background color |
| `description` | string | No | New template description |
| `template_id` | string | Yes | The template ID to update |
| `replaceLayers` | boolean | No | true: delete the layers (on the pages being updated) that are missing from the request. false (default): keep them. |

### Upload font

**Slug:** `TEMPLATED_MCP_UPLOAD_FONT`

Upload a custom font file (TTF, OTF, WOFF or WOFF2) from a public URL to the connected Templated account under the given family name. Use this when a design needs a font that isn't a Google Font; templates then use it as font_family. Returns the font. API reference: https://templated.io/docs

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | URL of the font file (TTF, OTF, WOFF, WOFF2) |
| `name` | string | Yes | Font family name |
