Skip to main content
Glama

unload_lms_model

DestructiveIdempotent

Unload a specified model from the LM Studio server to free memory, requiring explicit user confirmation and reporting the freed bytes.

Instructions

Unload one model from the operator's LM Studio server to free memory. OPERATOR ACTION: never call this without an explicit request or confirmation from the user — it discards a resident model. Use list_lms_models to show what is loaded and how much each occupies, and note that a blocked ask_lms result carries an unload_offer naming exactly what is in the way. Refuses while the model has an ask_lms call in flight; waits for the unload to be confirmed and reports the bytes freed and what remains resident. Idempotent (unloading an unloaded model is a no-op).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesThe loaded model key to unload (e.g. 'qwen3.8-27b-distill-q38'). Call `list_lms_models` first to show the operator what is loaded and how much each occupies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.16.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already mark this destructive and idempotent, and the description reinforces and expands on both: it discards a resident model, refuses while an `ask_lms` call is in flight, waits for confirmation, and reports bytes freed plus what remains resident. There is no contradiction between description and annotations.

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?

The description is dense but every sentence serves a purpose: operator warning first, then prerequisite, then in-flight refusal and result reporting, then idempotence. It is front-loaded with the most critical safety information and contains no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

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

For a one-parameter destructive tool with no output schema, the description covers preconditions, refusal behavior, return information (bytes freed and resident models), and idempotence. Nothing an agent needs to invoke it correctly is missing.

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%, and the schema already explains that `model` is a loaded model key with an example and a pointer to `list_lms_models`. The top-level description does not add substantially new parameter semantics, but it does not need to given full schema coverage.

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?

The opening sentence uses a specific verb ('unload') and resource ('model from the operator's LM Studio server') with a clear goal ('free memory'). No sibling tool performs unloading, so there is no ambiguity about which tool to select.

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

Usage Guidelines5/5

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

The description explicitly says when not to call it: 'never call this without an explicit request or confirmation from the user' because it discards a resident model. It also names the prerequisite (`list_lms_models`), the blocked `ask_lms` signal (`unload_offer`), and the in-flight refusal condition.

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