Skip to main content
Glama

lmstudio_cli

Destructive

Run any lms command not handled by other tools, including runtime updates, model imports, links, and daemon control, to complete uncovered LM Studio operations.

Instructions

Run any lms command for anything the other tools do not cover (e.g. runtime update, import, link, daemon). Pass arguments without the leading 'lms'. Avoid streaming commands like 'log stream'.

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": {
      "args": "<args>"
    },
    "name": "lmstudio_cli"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYese.g. ["runtime", "update", "--all"] or ["ls", "--json"].
timeout_secondsNoDefault 120.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, so the description doesn't need to re-warn about mutation. It adds real operational context the annotations don't carry: the 'log stream' caveat signals that non-terminating commands will hang against the timeout, and the argument-format note prevents a common failure. It does not mention what is returned (stdout/stderr) despite there being no output schema.

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 short sentences with zero waste: scope and fallback role first, then the argument-format rule and the streaming caveat. Every clause carries actionable information.

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 2-parameter escape-hatch tool with full schema coverage and a destructiveHint annotation, this covers purpose, invocation format, and the main failure mode. The only gap is return-value behavior, which matters somewhat given there is no output schema, though the tool is a pass-through CLI wrapper.

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 would be 3, but the description adds genuine meaning: arguments must be passed without the leading 'lms' token, which is a real invocation detail the schema's examples don't state explicitly. The timeout parameter's behavior is left entirely to the schema.

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 ('Run any `lms` command') and explicitly positions itself as the fallback for what the other tools do not cover, with concrete examples (runtime update, import, link, daemon). An agent can tell immediately that this is the escape hatch rather than a specialized sibling.

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?

Gives a clear selection rule — use this only for things the other tools do not cover — plus an explicit exclusion ('Avoid streaming commands like log stream'). It stops short of naming which sibling to prefer for common operations or explaining why streaming is excluded, so the guidance is strong but not fully closed.

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