Skip to main content
Glama

check_environment

Verifies the model loads, ComfyUI responds, and required workflow nodes are installed, reporting readiness, requirements, and weight status; can wait for ComfyUI startup.

Instructions

Check that the plugin can render: the model package loads, ComfyUI answers, and every node type the workflows use is installed. ready is true only when all three hold. Also reports what a machine needs to run the model (requirements) and whether each default weight file from the package library is installed (weights). A missing weight does not by itself make ready false.

Args: wait_seconds: Keep checking for up to this many seconds (at most 90) until ComfyUI answers. Use it after starting a machine, and call again while ready is false and the error says ComfyUI is not up yet.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_environment"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it enumerates the three conditions gating `ready`, states that a missing weight does not affect `ready`, and discloses the 90-second cap and polling semantics. It omits any statement about side effects, permissions, or call cost, which keeps it just short of full transparency.

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 core purpose and the `ready` condition are front-loaded in the first two sentences, followed by secondary outputs and then a focused Args block. Every sentence adds operative information; no filler.

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?

For a one-parameter diagnostic tool with an output schema, this is complete: readiness semantics, secondary report fields, the weight caveat, and polling behavior are all covered. An agent can call it correctly and interpret the result without further documentation.

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 coverage is 0% and the schema has no maximum, so the description must compensate: it explains the unit (seconds), the hard cap (at most 90), the default behavior implied by 0, and the operational pattern for using it. That is meaning well beyond the bare integer property.

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 names a specific verb (check) and a precise resource (the render environment: model package, ComfyUI service, node types), and defines exactly what the resulting `ready` flag means. It is unmistakable against siblings like `render` or `connect`, which act rather than verify.

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?

It gives concrete when-to-use guidance for `wait_seconds`: after starting a machine, and repeatedly while `ready` is false with a 'ComfyUI not up yet' error. It does not explicitly exclude or route to alternatives (e.g., 'use render once ready'), so it falls short of full when/when-not coverage.

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