Skip to main content
Glama

lmstudio_benchmark

Read-only

Measure a loaded model’s tokens per second, time to first token, and prompt size by running fixed prompts at temperature 0 to compare settings.

Instructions

Measure real speed of a loaded model: tokens per second, time to first token, prompt size. Runs fixed prompts at temperature 0. Use to compare settings.

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": {
      "identifier": "<identifier>"
    },
    "name": "lmstudio_benchmark"
  }
}

Input Schema

NameRequiredDescriptionDefault
runsNoRepetitions (default 3).
promptNoCustom prompt (default: a fixed explanatory task).
identifierYesLoaded model identifier (see lmstudio_list_loaded).
max_tokensNoTokens to generate per run (default 256).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds genuinely new context by explaining that prompts are fixed and run at temperature 0, which tells the agent results are reproducible and non-creative. It stops short of saying how long a benchmark takes or that it blocks on the loaded model, which would matter for a timing tool.

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 compact sentences: the first front-loads what is measured, the second gives the usage context. No filler, no restating of annotations or parameter details already in the schema.

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?

With no output schema, the description usefully names the returned metrics, and with four fully documented parameters and read-only annotations, an agent has enough to call it correctly. The gap is operational: nothing about expected runtime, whether the model must be loaded first (though identifiers reference loaded models), or cost of repeated runs.

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%, with each of the four parameters documented in the schema including defaults and ranges. The description adds only indirect meaning ('runs fixed prompts', 'temperature 0'), which explains why prompt/runs behave as they do but adds no syntax or constraint beyond 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 ('Measure real speed of a loaded model') and enumerates the metrics produced: tokens per second, time to first token, prompt size. This clearly separates it from siblings like lmstudio_count_tokens (counting) or lmstudio_chat (generation).

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 closing line 'Use to compare settings' gives one concrete scenario, which implies pairing with lmstudio_optimize_settings or load-time configuration choices. However there are no explicit conditions for when not to use it, nor any named alternative such as count_tokens for pure token counting.

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