Skip to main content
Glama

embed_texts

Generate embeddings for text inputs and compare up to 12 via a similarity matrix, with options to return raw vectors or save them to JSON.

Instructions

Embed texts. Compact by default: dimensions + a similarity matrix (up to 12 texts).

return_vectors: include raw vectors (large). save_vectors: write vectors to a JSON file.

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": "embed_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
textsYes
save_vectorsNo
return_vectorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose useful behavior: the default output is dimensions plus a similarity matrix, capped at 12 texts, and save_vectors writes a JSON file to disk. It omits whether saving overwrites existing files or where the file is written, whether embedding is slow or rate-limited, and what the model default is.

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?

It is short, front-loaded with the action, and each line covers a distinct output mode. The telegraphic 'dimensions + a similarity matrix' phrasing is slightly compressed, but nothing is wasted.

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 4-parameter tool with no annotations, no output schema, and no schema descriptions, the description does more than the minimum by describing the default response and file side effect. It still leaves the model parameter and the over-12-texts behavior unexplained, which an agent needs before calling it.

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 0% across 4 parameters, so the description must compensate. It explains return_vectors and save_vectors meaningfully (size warning, side effect), but says nothing about 'texts' or 'model', leaving half the parameters undocumented anywhere.

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 opening 'Embed texts' names a specific verb and resource, and the following sentence describes the default return shape (dimensions plus a similarity matrix), which distinguishes it from generative siblings. It does not reference any sibling, but the siblings listed are unrelated capabilities, so no differentiation is really needed.

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?

It implicitly guides the agent toward the default compact mode and explains what return_vectors and save_vectors add, e.g. return_vectors is flagged as 'large'. It never states when an agent should prefer one mode over another, or what happens when more than 12 texts are supplied.

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