Skip to main content
Glama
seajhawk

LM Studio MCP Server

by seajhawk

unload_model

Unload a model from memory immediately by setting its TTL to 0. Frees up system resources when a model is no longer needed.

Instructions

Unload a model from memory immediately by setting its TTL to 0

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYesThe ID of the model to unload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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, and it does disclose the mechanism (TTL set to 0) and the effect (immediate removal from memory). However, it does not say whether the action is destructive or reversible, what happens to in-flight requests, or what permissions are needed.

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 tight sentence with the action and mechanism front-loaded; no filler or redundancy.

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?

For a one-parameter tool with no output schema, the description is minimally sufficient, covering what it does and how. It omits the destructiveness/reversibility question, which matters for an operation that pulls a model out of memory, leaving a gap that annotations would normally fill.

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 coverage is 100% with a single well-documented model_id parameter, so the schema already handles semantics. The description adds no additional detail about the identifier format or source, which is the expected baseline when the schema does the work.

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?

States a specific verb and resource ('unload a model') plus the mechanism ('setting its TTL to 0'), which an agent can readily distinguish from load_model. It stops short of explicitly naming the sibling alternative, so it is clear but not maximally differentiated.

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 statement of when to use this versus load_model, configure_model, or simply letting a TTL expire naturally. The adverb 'immediately' hints at urgency but provides no explicit conditions or exclusions.

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