Skip to main content
Glama

embeddings

Read-only

Text embeddings (OpenAI-compatible) — OpenAI-compatible embeddings endpoint: POST {input: string or array of up to 64 strings} and get 768-dimension vectors (bge-base-en-v1.5) for search, RAG, clustering and dedupe. Drop-in for clients that call /v1/embeddings. Price: $0.002 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotated readOnlyHint/openWorldHint, the description discloses the concrete model and output dimensionality, the 64-string batch ceiling, OpenAI payload compatibility, and a per-call price paid in USDC via x402 — payment/authorization context an agent would otherwise miss. It stops short of noting latency, token-length limits, or error behavior for oversized batches.

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?

One dense, front-loaded sentence covering endpoint shape, output, model, uses, and price; no filler. Minor redundancy in repeating 'OpenAI-compatible' twice.

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?

For a single-parameter inference endpoint with no output schema, the description supplies input shape, output dimensions, model identity, and cost — enough to call it correctly. Missing only edge-case behavior (batch overflow, per-input length limits).

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

Parameters4/5

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

Schema coverage is 0% and the schema's 'input' description is a malformed example array, so the description carries the burden — and it does, stating the parameter accepts a string or an array of up to 64 strings. It omits per-string token or character limits.

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?

Specific verb/resource: returns 768-dimension vectors (bge-base-en-v1.5) for text input, with named downstream uses (search, RAG, clustering, dedupe) and OpenAI /v1/embeddings compatibility. It does not differentiate from the near-identical sibling ai_embed, so an agent cannot rule out that alternative from this text alone.

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 use-case list (search, RAG, clustering, dedupe) implies when the tool is appropriate, but there is no explicit when-to-use/when-not guidance and no mention of when a different embedding tool should be selected instead. Usage is inferable rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources