Skip to main content
Glama

list_models

Retrieves the available local image generation models from an A1111-compatible engine so agents can select a valid model before generating images.

Instructions

List the models the local engine reports (A1111-compatible /sdapi/v1/sd-models).

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": "list_models"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.5/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 burden. It does add useful behavioral context by tying results to what the local engine reports via an A1111-compatible endpoint, implying the list reflects engine state and is empty/failing if the engine is unreachable. It does not state read-only semantics explicitly, nor return shape or ordering.

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?

A single front-loaded sentence with the resource and its provenance; nothing extraneous and no filler. The parenthetical endpoint is compact and adds real information.

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 zero-parameter read tool with no output schema, the description covers what is listed and where the data comes from. Only minor gaps remain (return format, behavior when the engine is down), which are low-stakes for such a simple tool.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a parameterless tool applies. No misleading parameter hints are introduced.

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?

Specific verb+resource: 'List the models the local engine reports', with the exact backing endpoint (/sdapi/v1/sd-models) named. An agent can tell this is an enumeration of models known to the local engine rather than an edit or load operation, though it never explicitly distinguishes itself from siblings like list_edit_models or locmodel_status.

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 explicit when-to-use statement and no mention of alternatives such as list_edit_models (which presumably lists a different model set) or load_model. The agent must infer that this is the discovery call to make before loading or generating, which is reasonable but never stated.

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