Skip to main content
Glama

List Templates

list_templates
Read-onlyIdempotent

List stored templates with filters for ID, category, origin, search, and versions, plus cursor pagination. Use results to find templateId or versionId for rendering, downloading, or deleting.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoFilter by Template ID. Cannot be a Version ID.
limitNo1 to 100 results (default 100); use cursor for more.
cursorNoThe nextCursor of the previous response.
originNoUpload origin: 0 API (this server), 1 Carbone Studio, 2 Salesforce, 3 Odoo, 4 HubSpot.
searchNoFuzzy search in template names, or exact match on Template ID / Version ID.
categoryNoFilter by category (e.g. "invoices", "legal").
versionIdNoFilter by Version ID (SHA-256 format).
includeVersionsNoIf true, returns all versions for each template. Default: false (only deployed version).

Output Schema

NameRequiredDescriptionDefault
hasMoreYesWhether more results are available via the cursor.
templatesYesThe matching templates (all fields).
nextCursorNoCursor to pass to the next list_templates call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.5.1
    • changedInput schema / properties / id / description
      Previous value: -"Filter by Template ID (64-bit format, digits only). Cannot be a Version ID."New value: +"Filter by Template ID. Cannot be a Version ID."
    • addedInput schema / properties / id / maxLength
      Added value: +256
    • addedInput schema / properties / id / minLength
      Added value: +1
    • removedInput schema / properties / id / pattern
      Removed value: -"^\\d+$"
    • addedInput schema / properties / versionId / maxLength
      Added value: +256
    • addedInput schema / properties / versionId / minLength
      Added value: +1
  2. Changed7 schema fields changedv2.2.0
    • changedInput schema / properties / cursor / description
      Previous value: -"Pagination cursor from the previous response nextCursor field. Use to fetch the next page."New value: +"The nextCursor of the previous response."
    • changedInput schema / properties / id / description
      Previous value: -"Filter by Template ID (64-bit format). Cannot be a Version ID."New value: +"Filter by Template ID (64-bit format, digits only). Cannot be a Version ID."
    • addedInput schema / properties / id / pattern
      Added value: +"^\\d+$"
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return, between 1 and 100 (Carbone API limit). Default: 100. Use cursor to page beyond that."New value: +"1 to 100 results (default 100); use cursor for more."
    • changedInput schema / properties / origin / description
      Previous value: -"Filter by upload origin: 0 = API, 1 = Carbone Studio, 2 = Salesforce integration, 3 = Odoo integration, 4 = HubSpot integration. Templates uploaded through this MCP server are origin 0."New value: +"Upload origin: 0 API (this server), 1 Carbone Studio, 2 Salesforce, 3 Odoo, 4 HubSpot."
    • removedInput schema / properties / origin / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / origin / minimum
      Removed value: --9007199254740991
  3. Changed4 schema fields changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return, between 1 and 100. Default: 100. Use cursor to page beyond that."New value: +"Maximum number of results to return, between 1 and 100 (Carbone API limit). Default: 100. Use cursor to page beyond that."
    • changedInput schema / properties / origin / description
      Previous value: -"Filter by upload origin. 0 = API, 1 = Carbone Studio, 2 = Salesforce, 3 = Odoo, 4 = HubSpot. Templates created through this MCP are origin 0."New value: +"Filter by upload origin: 0 = API, 1 = Carbone Studio, 2 = Salesforce integration, 3 = Odoo integration, 4 = HubSpot integration. Templates uploaded through this MCP server are origin 0."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return. Must be between 1 and 100 (Carbone API limit). Default: 100."New value: +"Maximum number of results to return, between 1 and 100. Default: 100. Use cursor to page beyond that."
    • changedInput schema / properties / origin / description
      Previous value: -"Filter by upload origin. 0 = uploaded via API, 1 = uploaded via Carbone Studio."New value: +"Filter by upload origin. 0 = API, 1 = Carbone Studio, 2 = Salesforce, 3 = Odoo, 4 = HubSpot. Templates created through this MCP are origin 0."
  5. Changed5 schema fields changedv1.2.2
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results to return (default: 100)."New value: +"Maximum number of results to return. Must be between 1 and 100 (Carbone API limit). Default: 100."
    • removedInput schema / properties / limit / exclusiveMinimum
      Removed value: -0
    • changedInput schema / properties / limit / maximum
      Previous value: -9007199254740991New value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "hasMore": {
      +      "description": "Whether more results are available via the cursor.",
      +      "type": "boolean"
      +    },
      +    "nextCursor": {
      +      "description": "Cursor to pass to the next list_templates call.",
      +      "type": "string"
      +    },
      +    "templates": {
      +      "description": "The matching templates (all fields).",
      +      "items": {
      +        "additionalProperties": {},
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "templates",
      +    "hasMore"
      +  ],
      +  "type": "object"
      +}
  6. First observedv1.1.2

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral detail — id may be null for templates uploaded with versioning: false, and tags are returned per result — but says nothing about ordering, pagination termination, or result volume beyond the schema's limit/cursor fields.

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?

Three compact sentences with the core action front-loaded and the identifier semantics trailing. Dense but every clause carries information; only minor redundancy in restating that results 'list their tags' before explaining the tag filter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter optional-filter list tool with a full output schema and strong annotations, the description covers what matters: what comes back, how identifiers chain into other tools, and how to filter by tag. It need not re-explain return values, and the enum-like origin values are already documented in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns an extra point by clarifying the template vs version distinction and how each identifier is reused as templateId in other tools — meaning the schema alone does not convey. Remaining filters (origin, category, includeVersions) are left entirely to 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 ('List stored templates') plus scope ('with filters and pagination'), and immediately distinguishes what the results contain (id, versionId, tags) so an agent knows it is not a lookup-by-name tool.

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?

Explains downstream routing clearly: either the id or the versionId can be passed as templateId to render_document, download_template or delete_template. It also gives an explicit procedure for tag-based discovery (fetch results, keep those whose tags include the value), though it does not contrast itself against siblings like inspect_template or find_template_examples.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.