Skip to main content
Glama

List Templates

list_templates

List all available CodePic diagram templates. Use this ONLY when the user has explicitly asked to browse, list, or pick from templates (e.g. "show me templates", "列出模板"). Do NOT call this as a preparatory step when the user just described a diagram they want — in that case go straight to create_diagram. Discovering slugs here is only meaningful before a user-confirmed create_from_template call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoFilter by category

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations provided, the description carries the full responsibility for behavioral disclosure. It gives useful context about discovering slugs and the intended workflow, but it doesn't explicitly state that the operation is read-only, what the response might contain beyond slugs, or any pagination/authorization implications. The guidance is more about when to call than what the tool actually does under the hood.

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?

The description is well-structured, leading with the core purpose and then providing critical usage rules. While it is longer than strictly necessary, every sentence serves a purpose—clarifying when to use the tool and when to defer to siblings. The examples ('show me templates', '列出模板') are helpful without being verbose.

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 a simple read-only list operation, the description covers the essential context: what it does, when to use it, and how it relates to `create_diagram` and `create_from_template`. It does not describe the return format, but since no output schema is present and the tool is straightforward, the missing information is not critical. The description adequately prepares an agent to decide when to call this tool.

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?

The schema already provides 100% coverage with a clear description and enum values for the single optional `category` parameter. The description adds no additional meaning about the parameter, but it doesn't need to—the schema is self-explanatory. This is the baseline case where the description is not expected to compensate for any gaps.

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 ('List'), a clear resource ('all available CodePic diagram templates'), and immediately differentiates this tool from the relevant sibling tools ('go straight to create_diagram' and 'before a user-confirmed create_from_template call'). It makes the tool's purpose unmistakable even before looking at the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use the tool ('ONLY when the user has explicitly asked to browse, list, or pick from templates') and when not to ('Do NOT call this as a preparatory step'), and it names the alternative (`create_diagram`). It also clarifies the relationship with `create_from_template`, leaving no ambiguity about routing decisions.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a distinct purpose: create, get, update, list templates, and get shape documentation. No overlapping or ambiguous functions.

Naming Consistency5/5

All tool names follow a clear verb_noun pattern (create_diagram, get_diagram, get_shape_docs, list_templates, update_diagram), with consistent use of underscores and action-first naming.

Tool Count5/5

The tool count (5 listed, though count says 6) is well within the typical 3–15 range for this domain, providing a focused set without unnecessary bloat.

Completeness3/5

The set covers create, read, and update operations, but lacks a delete tool and a way to list all diagrams (only templates are listed). This leaves gaps in the lifecycle coverage, though the core diagram creation workflow is supported.