Skip to main content
Glama

search_templates

Read-onlyIdempotent

Search workflow templates by model type, task type, category, or text to find reusable ComfyUI workflows, including built-in, example, and custom saved templates.

Instructions

Search for workflow templates by model type, task type, category, or text. Returns templates from built-in workflows, ComfyUI examples, and custom saved templates. Use get_template to generate workflow JSON from a template.

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": "search_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return
queryNoFree text search across workflow names and descriptions
categoryNoFilter by category (e.g., 'basics', 'flux', 'controlnet', 'lora', 'custom')
taskTypeNoFilter by task type
modelTypeNoFilter by model architecture
includeCustomNoInclude custom saved templates from the database
includeBuiltInNoInclude built-in workflow templates
includeExamplesNoInclude example workflows from ComfyUI docs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety and determinism are covered. The description adds useful context about where results come from (three heterogeneous sources) but says nothing about ordering, pagination beyond the limit default, or what a result record contains. That is adequate but not rich.

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 what is searched and what is returned, ending with the routing hint. No filler or repetition of annotation content.

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

Completeness3/5

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

With no output schema and eight parameters, the definition should describe what a returned template looks like (identifier, name, source, model/task tags) so the agent can chain into get_template. It covers sources but leaves the result shape and result-selection path implicit.

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 coverage is 100% with enum values and per-field descriptions, so the schema carries parameter meaning. The description restates the four filter dimensions and implies the three include* toggles via the source list, but adds no new semantics such as whether filters AND-combine or how the free-text query interacts with category.

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 ('Search for workflow templates') plus the exact facets searched (model type, task type, category, text) and the three result sources (built-in, ComfyUI examples, custom). It also explicitly separates itself from get_template, which converts a hit into workflow JSON, so an agent can distinguish the two without opening schemas.

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 next-step routing: search first, then call get_template to obtain workflow JSON. It does not state when not to use this tool or how it relates to other listing-style siblings such as list_examples, so the agent must infer that boundary.

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