Skip to main content
Glama

lmstudio_unload_model

DestructiveIdempotent

Unload a loaded model or all loaded models to free RAM and VRAM in LM Studio, reclaiming memory for other models or tasks.

Instructions

Unload a loaded model (frees its RAM/VRAM), or all loaded 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": "lmstudio_unload_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoUnload every loaded model.
identifierNoIdentifier from lmstudio_list_loaded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered; the description legitimately adds that memory is reclaimed. It leaves a real gap: with zero required parameters, it does not say what happens when neither argument is supplied or how `all` and `identifier` interact if both are set.

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 verb and effect first and the alternate mode parenthetically appended. Nothing is redundant or padded.

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 two-parameter tool whose destructive and idempotent traits are already in annotations and whose parameters are fully documented in the schema, this is close to sufficient. The only meaningful omission is the behavior when no arguments are passed or when both are passed.

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 the schema already explains `all` and `identifier` in full, and the description only loosely maps to them via "or all loaded models." With the schema doing the heavy lifting, the baseline of 3 is appropriate; precedence between the two optional parameters remains unexplained in both places.

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 states a specific verb and resource ("Unload a loaded model") and adds the concrete effect ("frees its RAM/VRAM"), which cleanly separates it from the load-related siblings. It stops short of naming any alternative tool by name, so the differentiation is implied rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

It signals two operating modes (single model vs. "all loaded models"), which conveys some usage context, but never states prerequisites such as the model needing to be loaded first, nor when to prefer unloading a single model over clearing everything. Guidance is implied by the two modes rather than spelled out.

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