Skip to main content
Glama

router_embeddings

Generate vector embeddings from text or a batch of texts using a chosen model, enabling semantic search, clustering, and retrieval workflows.

Instructions

Create embeddings

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": {
      "model": "<model>",
      "input": "<input>"
    },
    "name": "router_embeddings"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesText to embed (or JSON array of texts)
modelYesModel ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and discloses essentially nothing: it does not say whether this is a compute-only call, whether it bills per token, what the output vector dimensionality is, or whether inputs are batched. The verb "Create" weakly implies a cost-bearing operation but no behavioral traits are described.

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

Conciseness2/5

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

At two words the text is short, but it is under-specified rather than concise — nothing is front-loaded because nothing is conveyed. Brevity here costs the agent all guidance rather than saving it anything.

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?

There is no output schema and no annotations, so the description was the only place to explain the return value (vector shape/dimensions, ordering for batch input) and any model constraints; it explains neither. For an embeddings endpoint where response structure matters to downstream use, this leaves the agent guessing at the most important outcome.

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%: both model and input are documented in the schema, including that input accepts a string or a JSON array of texts. The description adds no meaning beyond those field definitions, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create embeddings" restates the tool name (router_embeddings) in different words and adds no scope, no input/output characterization, and no differentiation from siblings like router_completions or router_rerank. An agent learns only that embeddings are involved, not what kind or for what purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of when to prefer embeddings over router_rerank or router_chat_completions, and no prerequisites or exclusions. The description is not misleading, but it offers zero routing information for a tool family where the choice among embedding/rerank/completion is the main decision.

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

Deploy Server

Other Tools