Skip to main content
Glama

lmstudio_load_model

Load a downloaded model into memory with explicit GPU offload, context length, and KV-cache settings. Omitted options fall back to the model's saved defaults.

Instructions

Load a downloaded model into memory with explicit settings. Omitted settings use LM Studio's saved defaults for that model. For automatic tuning use lmstudio_optimize_settings instead.

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

Input Schema

NameRequiredDescriptionDefault
modelYesModel key from lmstudio_list_models (partial names work if unique).
configNoLoad settings.
identifierNoName to address this loaded instance by (API 'model' field). Must be unused.
ttl_secondsNoUnload automatically after this many idle seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and openWorldHint=false, so the safety profile is partly covered. The description adds a genuinely useful behavior not in the annotations: omitted settings fall back to LM Studio's saved defaults rather than engine defaults. It does not disclose memory/VRAM consumption, what happens if the model is already loaded, or whether a failed load leaves state behind.

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 short sentences with the action front-loaded, then the defaults caveat, then the alternative. 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.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description says nothing about what a successful load returns (an instance handle, status, timing) or how failures surface, which matters for a resource-allocating call. The nested config object is handled adequately by deferring to saved defaults and the optimize sibling, but the return/outcome side is left blank.

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 100%, so the baseline is 3; the description goes beyond the schema by explaining the semantics of omission (saved defaults apply), which the schema cannot express. It also implies that the nested config should be set deliberately rather than auto-tuned, reinforcing the sibling routing.

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 ('Load a downloaded model into memory') plus the key qualifier 'with explicit settings'. It also contrasts itself with lmstudio_optimize_settings, so an agent can tell the two apart 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 Guidelines4/5

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

Explicitly routes the agent to lmstudio_optimize_settings for automatic tuning, which is the main decision point for this tool. It does not cover other adjacent cases, such as loading an already-loaded model or when to prefer unloading first, but the core when-to-use fork is stated.

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