Skip to main content
Glama

recommend_workflow

Read-onlyIdempotent

Returns the appropriate workflow, settings, and prompting guide for a given model filename before generation, so checkpoints and UNETs are matched to the correct ComfyUI workflow.

Instructions

IMPORTANT: Call this BEFORE generating images to get the correct workflow and settings for a model. Given a model filename, returns the recommended workflow, optimal settings (steps, CFG, resolution), and prompting guide. Essential for matching checkpoint vs UNET models to the right workflow.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "modelName": "<modelName>"
    },
    "name": "recommend_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskTypeNoWhat type of generation tasktxt2img
modelNameYesThe model filename to match (e.g., 'flux1-schnell-fp8.safetensors')
availableUnetsNoList of available UNET files (from list_models)
availableCheckpointsNoList of available checkpoint files (from list_models)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety and determinism profile is covered. The description usefully adds that the call returns three distinct artifacts (workflow, settings, prompting guide) and that its purpose is pre-generation lookup rather than execution. It says nothing about failure behavior when the model name matches nothing, which matters for a matcher.

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 sentences with the imperative 'call this BEFORE generating images' front-loaded, which is the right ordering for a recommendation step. The closing sentence ('Essential for matching checkpoint vs UNET models...') partially restates the opening and is mild redundancy.

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?

With 4 parameters at full schema coverage, one required, and no output schema, the description does what it must: it names the returned artifacts so the agent knows what comes back. What is missing is edge-case behavior (no match, unknown model family) and any note that list_models is the source for the available* arrays, an inference the agent must make from the parameter descriptions alone.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by framing 'modelName' as a matching key and explaining that checkpoint vs UNET families map to different workflows, which justifies why availableCheckpoints/availableUnets are supplied alongside. `taskType` semantics are not addressed in the description at all.

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?

States a specific verb and resource: given a model filename it 'returns the recommended workflow, optimal settings (steps, CFG, resolution), and prompting guide.' That is concrete and enumerates the returned artifacts. It stops short of a 5 because the returned 'prompting guide' and model matching overlap with plausible siblings (get_prompting_guide, get_model_guide) that it never names or distinguishes.

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 explicit sequencing guidance: 'Call this BEFORE generating images to get the correct workflow and settings for a model.' That is a clear when-to-use trigger tied to the generation pipeline. No when-not conditions and no named alternatives are provided, so it falls short of a 5.

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