Skip to main content
Glama

set_defaults

Update generation defaults (e.g., width, steps) in memory or persist to config file to avoid repeating common values.

Instructions

Update generation defaults. By default updates the in-memory runtime layer (lost on restart). Pass persist=true to also write the change into the config file (~/.config/comfyui-mcp/config.json by default). Use this to avoid repeating common values like width, height, steps, cfg, sampler, checkpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valuesYesKey/value map of defaults to set. Keys are typically lowercase (e.g. width, steps).
persistNoIf true, write to the config file in addition to runtime.
Behavior3/5

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

No annotations provided, so the description must cover behavioral aspects. It explains the runtime vs persistent update distinction and config file path. However, it omits details like merge behavior, validation, error handling, or potential side effects, leaving gaps.

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 well-structured sentences with no redundancy. First sentence states purpose, second explains binary behavior, third provides real-world motivation. Each sentence adds value with no wasted words.

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 simple tool with 2 parameters and no output schema, the description covers primary behavior and usage context. Missing details (merge/replace logic, key validation) but still fairly complete for its complexity.

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% with descriptions for both parameters. The description adds a minor insight (keys typically lowercase with examples) but does not significantly extend beyond the schema, justifying a baseline score.

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?

Clearly states 'Update generation defaults' with a specific verb and resource. Distinguishes between runtime and persistent updates, but does not explicitly separate from sibling tools like 'get_defaults' or 'suggest_settings'.

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?

Provides clear guidance on when to use the 'persist' parameter and explains that the default behavior is runtime-only. Includes example keys (width, steps) to illustrate usage cases, but lacks explicit when-not-to-use or alternative comparisons.

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