Skip to main content
Glama

comfy_list_models

Read-onlyIdempotent

List models in a specified folder from ComfyUI with pagination support, returning a structured model list.

Instructions

List models in a folder with pagination. Returns structured ModelList.

Args: folder: Model folder name (e.g., "checkpoints", "diffusion_models", "loras", "vae", "text_encoders"). Call comfy_list_model_folders to see every folder the connected ComfyUI actually exposes. limit: Maximum number of results per page. offset: Starting position for pagination. include_non_model_files: Include caches, source files, lock metadata, archives, and unknown extensions returned by custom folders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
folderYes
offsetNo
include_non_model_filesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderYes
modelsNo
has_moreNo
next_offsetNo
total_countNo
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the description's job is to add context. It does so by specifying pagination behavior (limit/offset), the optional include_non_model_files flag and what it includes, and the fact that the folders are those exposed by the connected ComfyUI instance. This goes beyond the annotations without contradicting them.

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 highly efficient: a one-sentence purpose statement followed by a bulleted list of parameters. It front-loads the core purpose ('List models in a folder with pagination') and each sentence earns its place with no redundant fluff.

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?

Given that an output schema exists, the description wisely avoids describing return details and focuses on usage, prerequisites, and parameter semantics. It fully covers the listing behavior, pagination, and the optional non-model file inclusion, making it complete for this tool's complexity.

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?

Schema description coverage is 0%, so the description must carry the full burden for parameter documentation. It does this excellently: folder is explained with concrete examples and a cross-reference to comfy_list_model_folders, limit/offset are defined as pagination controls, and include_non_model_files is detailed with specific file types. This is a perfect compensation.

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 'List models in a folder with pagination' and mentions the structured return type (ModelList). This specific verb+resource combination distinguishes it from siblings like comfy_search_models (search across folders) or comfy_list_model_folders (list folders), making its purpose unambiguous.

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 provides a clear prerequisite by instructing users to call comfy_list_model_folders to see valid folders, which is a valuable pointer. However, it stops short of explicitly stating when not to use this tool versus alternatives like comfy_search_models or comfy_refresh_models, so it does not fully meet the 'explicit when/when-not' criterion.

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