Skip to main content
Glama

comfy_extract_schema

Read-onlyIdempotent

Extract the controllability and dependency surface of a ComfyUI workflow to identify all adjustable inputs, required models, embeddings, and output nodes—enabling parameterization decisions without manual graph traversal.

Instructions

Extract the controllability / dependency surface of a workflow.

Returns a structured summary of every controllable widget input across all nodes, every model the workflow depends on (loader nodes), every embedding reference embedded in text inputs, and every output node. Lets an agent decide what to parameterise without walking the graph node-by-node.

Args: workflow: API-format workflow dict. summary_only: If True, return just the high-level counts/flags (parameter_count, has_negative_prompt, has_seed, model_count, node_count) without the per-parameter list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowYes
summary_onlyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The annotations already mark the tool as read-only and idempotent, and the description reinforces this by describing an extraction operation. It adds context about the output structure but does not disclose potential errors or performance characteristics, which is acceptable given the read-only nature.

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 concise, using two short paragraphs to cover purpose and output. Every sentence adds value, with no redundant information.

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

Completeness5/5

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

The description fully covers the tool's behavior, including both parameter semantics and the distinction between full and summary output. It is sufficient for an agent to know when to call it and what to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters are described in the tool description: 'workflow' is clearly identified as an API-format workflow dict, and 'summary_only' is explained with its behavior. This compensates for the lack of schema-level descriptions.

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 clearly states the tool's function: extracting a controllability/dependency surface from a workflow. It specifies the output in terms of controllable widgets, models, embeddings, and output nodes, distinguishing it from sibling tools that manipulate or execute workflows.

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 when an agent needs to determine workflow parameters without traversing the graph. However, it does not explicitly compare against alternative tools like comfy_inspect_workflow or comfy_validate_workflow, leaving some ambiguity about when to choose this over others.

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/dreamrec/ComfyPilot'

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