Skip to main content
Glama

comfyui_free_memory

Unload models from ComfyUI to free cached VRAM and RAM, preventing out-of-memory errors during image generation.

Instructions

Ask ComfyUI to unload models and free cached VRAM/RAM.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unload_modelsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the core action (unloading models, freeing cached memory) but omits consequences such as slower subsequent model reloading or whether running workflows are interrupted. Since there is no annotation contradiction, and the primary behavior is disclosed but side effects are not, a middle score is appropriate.

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?

The description is a single sentence front-loaded with the key action and resource, containing no filler or redundant phrasing. It is efficient, though it is arguably too thin to carry the necessary usage and behavioral context on its own.

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?

For a simple tool with one boolean parameter and an existing output schema, the core action is conveyed adequately. However, missing usage context and behavioral side effects (impact on active jobs, reload latency) leave the description only minimally sufficient. It covers the 'what' but not the 'when' or 'what happens next'.

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 description coverage is 0%, so the description must compensate for the lone 'unload_models' boolean parameter. It partially does by mentioning model unloading, but it does not clarify behavior when the parameter is false (it defaults to true) or whether cached memory is freed independently of model unloading. The description adds some meaning but leaves the false-case semantics ambiguous.

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 action ('unload models and free cached VRAM/RAM') against a clear resource. This is implicitly distinct from operational siblings like comfyui_cancel, comfyui_queue, and comfyui_status, which address different concerns. No sibling is explicitly named, but the memory-freeing purpose is unambiguous, so the differentiation is clear even if implicit.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives. A memory-freeing tool would benefit from context such as 'use when running out of VRAM before a heavy workflow' or warnings about whether it affects active jobs. No exclusions or alternative routes are mentioned, so the agent must infer appropriate invocation from the name alone.

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