Skip to main content
Glama

List templates

list_templates
Read-onlyIdempotent

List templates visible to the caller: the curated makesPDF library and the caller's own saved templates. Returns metadata only (no DSL), one page at a time. Mirrors GET /api/v1/templates.

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
qNoFree text matched as a case-insensitive substring against template names and descriptions.
tagsNoComma-separated tags; a template must carry every one to match, e.g. 'receipt,retail'. The `tags` field of earlier results shows the values in use.
limitNoPage size: how many templates to return.
ownerNoWhose templates to list: 'mine' for templates you saved, 'library' for the curated makesPDF catalog, 'all' for both.all
offsetNoHow many matching templates to skip, for paging. Add `limit` to it to fetch the next page.
categoryNoDocument type to match exactly. Library templates use 'certificate', 'civic', 'form', 'invoice', 'letter', 'packing-slip', 'quote', 'receipt', 'report', 'resume', 'shipping-label' and 'statement'; your own templates may use others, shown in the `category` field of earlier results.

Output Schema

NameRequiredDescriptionDefault
limitYesPage size used.
totalYesMatching templates across all pages.
offsetYesOffset used.
templatesYesOne page of matching templates, metadata only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / category / description
      Previous value: -"Document type to match exactly. Library templates use 'certificate', 'civic', 'form', 'invoice', 'letter', 'quote', 'receipt', 'report', 'resume', 'shipping-label' and 'statement'; your own templates may use others, shown in the `category` field of earlier results."New value: +"Document type to match exactly. Library templates use 'certificate', 'civic', 'form', 'invoice', 'letter', 'packing-slip', 'quote', 'receipt', 'report', 'resume', 'shipping-label' and 'statement'; your own templates may use others, shown in the `category` field of earlier results."
  2. Changed1 schema field changed
    • changedOutput schema / properties / templates / description
      Previous value: -"One page of matching templates, metadata only. Fetch the DSL with get_template."New value: +"One page of matching templates, metadata only."
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "limit": {
      +      "description": "Page size used.",
      +      "type": "integer"
      +    },
      +    "offset": {
      +      "description": "Offset used.",
      +      "type": "integer"
      +    },
      +    "templates": {
      +      "description": "One page of matching templates, metadata only. Fetch the DSL with get_template.",
      +      "items": {
      +        "properties": {
      +          "category": {
      +            "description": "Document type (e.g. 'invoice'); null when uncategorised.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "createdAt": {
      +            "description": "When the template was created, as a UTC 'YYYY-MM-DD HH:MM:SS' timestamp.",
      +            "type": "string"
      +          },
      +          "description": {
      +            "description": "One-sentence summary; empty when none is stored.",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Display name.",
      +            "type": "string"
      +          },
      +          "ownerUserId": {
      +            "description": "Owner's user ID, or null for a curated library template.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "tags": {
      +            "description": "Tags for filtering.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "templateId": {
      +            "description": "Template ID: a slug for library templates, a UUID for your own.",
      +            "type": "string"
      +          },
      +          "updatedAt": {
      +            "description": "When the template was last changed, as a UTC 'YYYY-MM-DD HH:MM:SS' timestamp.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "templateId",
      +          "ownerUserId",
      +          "name",
      +          "description",
      +          "category",
      +          "tags",
      +          "createdAt",
      +          "updatedAt"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "description": "Matching templates across all pages.",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "templates",
      +    "total",
      +    "limit",
      +    "offset"
      +  ],
      +  "type": "object"
      +}
  4. Changed6 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Document type to match exactly. Library templates use 'certificate', 'civic', 'form', 'invoice', 'letter', 'quote', 'receipt', 'report', 'resume', 'shipping-label' and 'statement'; your own templates may use others, shown in the `category` field of earlier results."
    • addedInput schema / properties / limit / description
      Added value: +"Page size: how many templates to return."
    • addedInput schema / properties / offset / description
      Added value: +"How many matching templates to skip, for paging. Add `limit` to it to fetch the next page."
    • addedInput schema / properties / owner / description
      Added value: +"Whose templates to list: 'mine' for templates you saved, 'library' for the curated makesPDF catalog, 'all' for both."
    • addedInput schema / properties / q / description
      Added value: +"Free text matched as a case-insensitive substring against template names and descriptions."
    • addedInput schema / properties / tags / description
      Added value: +"Comma-separated tags; a template must carry every one to match, e.g. 'receipt,retail'. The `tags` field of earlier results shows the values in use."
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: results are metadata only, excluding the DSL, and are paginated one page at a time. It does not mention ordering of results or authentication requirements, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the scope, then the result shape, then provenance. Nothing is redundant and nothing could be cut without losing information.

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?

With an output schema present, return-value details need not be restated, and the description covers what remains: scope of visibility, metadata-only payload, pagination, and the REST endpoint it mirrors. Nothing an agent needs in order to call this correctly is missing.

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 every parameter (q, tags, limit, owner, offset, category) already carries a detailed description, including enum values and examples. The description adds only the general 'one page at a time' framing, which is already captured by the limit/offset descriptions, so the baseline of 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?

The description names a specific verb and resource ('List templates') and bounds the scope precisely: the curated makesPDF library plus the caller's own saved templates. 'Returns metadata only (no DSL)' implicitly separates it from the detail-fetching siblings such as get_template, so an agent can tell what kind of result to expect without opening a schema.

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?

Usage context is clear — this is the discovery/browse entry point, paged one page at a time, and metadata-only results mean a follow-up call is needed for content. It stops short of explicitly naming the follow-up tool (get_template) or stating exclusions, so the routing is implied rather than spelled out.

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