Skip to main content
Glama

add_extra_path

Add a directory to ComfyUI extra search-path YAML config for model categories like checkpoints, loras, or vae. Writes config and returns updated view; restart ComfyUI to apply.

Instructions

Add a directory to a ComfyUI extra search-path YAML config. Use this for model categories such as checkpoints/loras/vae and, on ComfyUI builds that support it, custom_nodes. Writes the config file and returns the updated view; restart ComfyUI to apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesDirectory path to add/remove for that category. Absolute paths are safest; relative paths are resolved by ComfyUI.
groupNoTop-level YAML group to edit. Defaults to comfyui_mcp.
targetNoConfig target: auto chooses Desktop config if it exists, otherwise standalone; standalone uses <COMFYUI_PATH>/extra_model_paths.yaml; desktop uses the OS app-data extra_models_config.yaml.
categoryYesComfyUI search-path category, e.g. checkpoints, loras, vae, diffusion_models, unet_gguf, or custom_nodes.
is_defaultNoSet is_default on a newly-created group. Existing groups are not overwritten.
config_pathNoExplicit YAML config path override, mainly for advanced/manual installs.
Behavior4/5

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

Despite no annotations, the description discloses key behavioral traits: it writes a config file (state modification), returns an updated view, and requires a restart to apply. This provides sufficient transparency for an agent to understand side effects.

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, front-loaded sentences: action and resource, use case, and behavioral note. Every sentence serves a purpose with no redundancy or fluff.

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?

Given no output schema and no annotations, the description covers the main aspects: what it does, when to use it, what it returns, and a post-action step (restart). It could mention error conditions or file creation behavior, but it is largely complete for a config-write 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?

Schema coverage is 100%, so the schema already describes all 6 parameters in detail. The description does not add new meaning beyond restating the operation's purpose. Baseline 3 is appropriate since the description adds minimal value over the schema's parameter 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 action ('Add a directory'), the resource ('ComfyUI extra search-path YAML config'), and the context. It distinguishes itself from the sibling 'remove_extra_path' by focusing on addition.

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?

The description explicitly says 'Use this for model categories such as checkpoints/loras/vae and...custom_nodes', providing clear usage context. It also notes the need to restart ComfyUI. However, it does not explicitly exclude other use cases or mention alternatives, but the sibling names imply a removal counterpart.

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/artokun/comfyui-mcp'

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