Skip to main content
Glama

get_workflow_models

Extract required model names and types from a ComfyUI workflow JSON by scanning loader nodes. Identifies checkpoints, LoRAs, VAEs, and ControlNets without a ComfyUI connection.

Instructions

Extract required models from a workflow (loader nodes: CheckpointLoaderSimple, LoraLoader, VAELoader, ControlNetLoader, UpscaleModelLoader, etc.). Returns list of { name, type, nodeId, nodeClass, inputName }. No ComfyUI connection needed.

Input Schema

NameRequiredDescriptionDefault
workflowYesWorkflow JSON string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does reasonably well: it states that it scans loader nodes, describes the returned list shape with field names, and clarifies that no ComfyUI connection is needed. It does not discuss malformed workflow handling or whether the operation is strictly read-only, but the core behavior is clear.

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?

The description is two tightly written sentences. The main action and loader-node examples are front-loaded, followed immediately by the return shape and the no-connection note. There is no wasted text.

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 single-parameter extraction tool with no annotations and no output schema, the description provides a useful return-shape summary and a key operational note. It is close to complete, though it could say more about edge cases or model-type derivation.

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 only parameter is workflow, and the schema already documents it as a 'Workflow JSON string' at 100% description coverage. The description adds no further syntax, format, or validation detail beyond that, so the baseline score of 3 is appropriate.

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?

The description states a specific verb and resource: extracting required models from a workflow. It also lists relevant loader node classes, making the scope concrete. It does not explicitly distinguish this tool from the nearby check_workflow_models sibling, so it stops short of a 5.

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

Usage Guidelines3/5

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

The description implies usage by explaining that it extracts models from a workflow and notes that no ComfyUI connection is needed. However, it does not say when to choose this tool over alternatives such as check_workflow_models or list_models, leaving the selection context implied rather than explicit.

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