Skip to main content
Glama

list_templates

Lists shipped and saved user visual templates, with optional ID lookup, text search, or full-detail retrieval to find and inspect reusable templates.

Instructions

List shipped and saved user templates. By default returns a compact list (id, name, description, slots, source). Pass id for one complete template (slots, params, template, exampleSpec), search to filter by text, or full:true for every template in full (very large, about 550 KB). VILSEM_TEMPLATES_DIR may point to a shared library. Unreadable user files are reported explicitly.

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
idNo
fullNo
searchNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.9.2
    • addedInput schema / properties / full
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / id
      Added value: +{
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observedv0.6.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the default return shape (id, name, description, slots, source), the payload size of full mode, the VILSEM_TEMPLATES_DIR shared-library behavior, and that unreadable user files are reported explicitly. It does not cover ordering, pagination, or whether the operation is strictly read-only, but those are minor for a listing tool.

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 tight sentences, front-loaded with the default behavior and then the mode overrides; every clause carries information. The parenthetical size warning and env var note are useful rather than padding.

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?

There is no output schema, yet the description enumerates the fields returned in both compact and full modes, plus error-reporting behavior and the env var override. An agent could invoke this correctly without further information; only ordering and any auth/prerequisite details are absent.

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 0%, so the description must compensate and largely does: it explains what each of the three parameters does and which return fields each mode yields. Gaps remain on search semantics (which fields are matched, case sensitivity) and whether id and full can be combined.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'List shipped and saved user templates', which also states the scope (built-in plus user-saved). It does not explicitly contrast with siblings like list_pages or list_visuals, but the resource is distinct enough that confusion is unlikely.

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?

Gives clear mode-selection guidance: default for a compact list, 'id' for one full template, 'search' to filter by text, 'full:true' for everything. It implicitly discourages the expensive path by noting 'very large, about 550 KB', though it never states when not to use the tool or when a sibling would be better.

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