Skip to main content
Glama

list_library

Lists files ComfyUI can load for a given model-package kind so you can choose valid model or LoRA names before setting them; optional query words narrow the results.

Instructions

List files ComfyUI can load for one kind declared by the active model package.

Call this before setting a model or a LoRA to anything other than the default in get_guide. Use a returned name as-is. query keeps every file whose path contains all of its words.

Args: kind: A library kind from get_guide, such as the one that fills model. query: Words to narrow the list. Omit it for the whole folder. limit: How many names to return, up to 200.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "kind": "<kind>"
    },
    "name": "list_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
limitNo
queryNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden: it implies a read-only listing and explains query matching semantics, but says nothing about ordering, cost of scanning the folder, or what happens on an invalid kind. The presence of an output schema covers return values, which limits the gap.

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?

Front-loaded purpose sentence, then usage constraints, then a compact Args block. Every sentence adds information; nothing restates the tool name or schema redundantly.

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 three-parameter listing tool with no annotations, the description covers purpose, preconditions, and all parameters, and the output schema handles return shape. Minor gaps remain around ordering and invalid-kind behavior, but nothing critical to calling it correctly is missing.

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

Parameters4/5

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

Schema coverage is 0%, so the description must explain all three parameters, and it does: kind is tied to get_guide values, query is defined as AND-matched words against the path, and limit is capped at 200. It stops short of enumerating valid kind values or noting the default limit of 50.

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?

States a specific verb and resource ('List files ComfyUI can load') with an explicit scope ('one kind declared by the active model package'). An agent can distinguish this from get_guide (which declares kinds) and list_generations without opening either schema.

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

Usage Guidelines5/5

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

Gives a concrete trigger: call this before setting a model or LoRA to anything other than the default in get_guide. It also names the dependency tool for discovering valid kinds and adds an operational rule ('use a returned name as-is'), leaving little to inference.

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