Skip to main content
Glama

list_templates

Browse available caption style templates with IDs and names to select styles for creating short-form videos from YouTube content.

Instructions

List all available caption style templates with IDs and names. Use the templateId when creating shorts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual logic for the 'list_templates' tool handler, which calls client.listTemplates() and formats the output.
    async () => {
      try {
        const result = await client.listTemplates();
        return { content: [{ type: 'text', text: formatTemplatesResponse(result) }] };
      } catch (error) {
        return { content: [{ type: 'text', text: formatError(error) }], isError: true };
      }
    }
  • The registration function that defines the 'list_templates' tool with the MCP server.
    export function registerListTemplates(server, client) {
      server.tool(
        'list_templates',
        'List all available caption style templates with IDs and names. Use the templateId when creating shorts.',
        {},
        async () => {
          try {
            const result = await client.listTemplates();
            return { content: [{ type: 'text', text: formatTemplatesResponse(result) }] };
          } catch (error) {
            return { content: [{ type: 'text', text: formatError(error) }], isError: true };
          }
        }
      );
    }
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses what data is returned ('IDs and names'), helping predict output structure. However, missing safety/permission info, pagination behavior, or rate limits that would be essential for a production tool with no annotation coverage.

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?

Two sentences with zero waste. First sentence establishes purpose and return value; second provides usage context. Front-loaded structure with every sentence earning its place.

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?

Given zero parameters and no output schema, description adequately compensates by specifying return fields ('IDs and names'). Sufficient for low-complexity tool, though could mention pagination or total volume limits for complete production context.

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?

Input schema contains zero parameters. Per rubric guidelines, zero-parameter tools receive baseline score of 4. Description appropriately does not invent parameter semantics where none exist.

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?

Description provides specific verb ('List'), resource ('caption style templates'), scope ('all available'), and return fields ('IDs and names'). Clearly distinguishes from sibling list tools (list_music, list_game_videos) by specifying 'caption style' resource.

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?

Second sentence establishes workflow connection to sibling tool create_short ('Use the templateId when creating shorts'), implying when to invoke this tool. Lacks explicit 'when not to use' or comparison to alternative listing tools, but provides clear contextual purpose.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssembleinc/ssemble-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server