Skip to main content
Glama

lmstudio_embed

Read-only

Generate embedding vectors from text with a local LM Studio model, optionally returning only vector dimensions instead of full vectors.

Instructions

Turn text into embedding vectors with a local embedding model. Returns vectors, or only their dimensions if vectors are not needed.

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": {
      "texts": "<texts>"
    },
    "name": "lmstudio_embed"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoEmbedding model identifier or key. Default: any loaded embedding model.
textsYes
include_vectorsNoReturn the full vectors (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety and locality are covered; the description's 'local embedding model' merely echoes that. It does add value by describing the return shape (vectors or dimensions only), which matters because there is no output schema, but it omits behavior such as auto-loading a model, batching limits, or what happens when no embedding model is available.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the core action front-loaded and the return-shape variant second. Nothing is wasted, though the singular 'text' phrasing buys conciseness at the cost of a small ambiguity versus the texts array.

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 three-parameter, no-output-schema tool the description covers the essentials of what goes in and what comes back. It leaves gaps around batch semantics, model selection fallback behavior, and error conditions when no embedding model is loaded, which an agent would want before calling.

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 67%, so most parameters are already documented. The description reinforces the include_vectors trade-off ('only their dimensions'), but adds little beyond the schema on model resolution or the fact that texts is a batch array, which the singular 'text' wording slightly muddies.

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: turning text into embedding vectors with a local embedding model. It clearly distinguishes an embedding operation from generation or token counting, though it never names a sibling to route against.

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?

Usage is only implied through the include_vectors hint ('only their dimensions if vectors are not needed'), which is really parameter guidance rather than tool selection guidance. There is no statement of when an agent should pick this over chat or count_tokens, nor any precondition such as needing a loaded embedding model.

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