Skip to main content
Glama

lmstudio_chat

Send chat prompts to a local LM Studio model and get replies with speed stats; automatically loads the model with saved defaults when needed.

Instructions

Send a chat to a local model and get the reply with speed stats. If the model is not loaded, LM Studio loads it with its saved defaults.

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_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopNo
min_pNo
modelNoLoaded identifier or model key. Default: any loaded LLM.
top_kNo
top_pNo
promptNoSingle user message (use this or messages).
systemNoSystem prompt.
messagesNoFull conversation history.
max_tokensNo
cpu_threadsNo
draft_modelNoDraft model key for speculative decoding.
json_schemaNoForce the reply to match this JSON Schema.
temperatureNo
repeat_penaltyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

The description adds useful behavior beyond the annotations: if the model is not loaded, LM Studio loads it with saved defaults, and the reply includes speed statistics. It does not disclose more detailed behavior such as generation duration, error cases, whether the model stays loaded, or how speed stats are reported.

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 only two sentences, front-loaded with the core action and followed by the important auto-load behavior. There is no redundant or filler wording.

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

Completeness2/5

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

For a 14-parameter chat tool with no output schema and incomplete schema descriptions, the definition is too thin. It covers the basic purpose and auto-load behavior but omits parameter guidance, usage constraints, return structure beyond speed stats, and operational behavior an agent would need to invoke it well.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 14 parameters with only 43% description coverage, so the description needs to compensate for undocumented parameters. It does not explain prompt versus messages, system prompts, sampling parameters, JSON schema forcing, draft models, or stop sequences, leaving most parameter meaning to the schema alone.

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 clearly states a specific action and resource: send a chat to a local model and receive the reply with speed statistics. It is understandable apart from most siblings, though it does not explicitly name when to use it versus tools like lmstudio_embed or lmstudio_benchmark.

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?

The usage context is implied by 'Send a chat to a local model,' which suggests conversational inference. However, there is no explicit when-to-use or when-not-to-use guidance, and no alternatives are named.

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