Skip to main content
Glama

load_model

Loads or switches the local image-generation model and waits for engine confirmation, ensuring the required model is active before you run edits.

Instructions

Load / switch the model in the local engine, and wait until the engine reports it. Use it when the model you need for an edit is not the one currently loaded.

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": {
      "model": "<model>"
    },
    "name": "load_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel name or filename as listed by list_edit_models / list_models.
timeout_sNoSeconds to wait for the load (default 240).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.8/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 load, and it does disclose the key behavioral trait: the call blocks until the engine confirms the load, and it mutates engine state by swapping the resident model. It does not say what happens if the load times out or fails, whether the previous model is unloaded, or whether the engine is unusable during the switch.

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?

Two tight sentences: the action and its blocking semantics come first, the selection condition second. No filler and nothing redundant with the schema.

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 two-parameter state-mutating tool with no output schema and no annotations, the description covers action, trigger condition, and blocking behavior adequately. The main remaining gap is failure/timeout semantics, which matters somewhat given the tool mutates engine state.

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 description coverage is 100%, so both 'model' and 'timeout_s' (with its 240s default) are already documented, and the description adds no format or constraint detail beyond that. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

The description names a specific verb and resource ('load / switch the model in the local engine') and adds a scope detail (it waits until the engine reports the load). This clearly separates it from listing tools like list_models and status tools like locmodel_status, though no sibling is named explicitly.

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?

'Use it when the model you need for an edit is not the one currently loaded' gives a clear trigger condition, and pointing at list_edit_models / list_models for valid names reinforces the workflow. It stops short of stating when NOT to call it (e.g., when already loaded or while another job runs).

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