Skip to main content
Glama

embed

Read-only

Cohere-compatible embed — Drop-in Cohere v1 /embed endpoint (bge-base-en-v1.5, 768 dims): body {texts:[...up to 96], input_type: search_document|search_query|classification|clustering, truncate: END|START|NONE, embedding_types: [float,int8,uint8,binary,ubinary]}. search_query adds the BGE retrieval instruction automatically. Returns {id, texts, embeddings, meta.billed_units, response_type} exactly like Cohere (embeddings_floats, or embeddings_by_type when embedding_types is sent; int8/uint8 are per-vector scaled, binary/ubinary pack sign bits 8 per byte). Also accepts input/inputs. Text only. 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": {
      "texts": "<texts>"
    },
    "name": "embed"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYes

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 read-only and open-world annotations, the description discloses the model, dimensionality, maximum batch size of 96 texts, truncation options, return shapes, billing metadata, and pay-per-call x402 pricing. This is rich behavioral context, though it does not discuss authentication mechanics or failure modes.

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?

The description is dense but front-loaded with the endpoint identity and model, then packs request and response details efficiently. The parenthetical construction is slightly crowded, but every element contributes useful API semantics.

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 describes the Cohere-style response fields and billing metadata. It is nearly complete for a one-parameter embedding endpoint, with only minor gaps around error behavior and authentication flow.

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 description coverage is 0% and the lone schema field has misleading prose, so the description carries the burden and does so well by documenting texts limits, accepted aliases input and inputs, input_type choices, truncate behavior, and embedding_types packing. It substantially compensates for the weak schema.

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 description gives a specific verb and resource — a Cohere-compatible embed endpoint backed by bge-base-en-v1.5 at 768 dimensions — and explains the exact request body. It is very clear about what the tool does, but it does not explicitly distinguish itself from sibling embedding tools such as embeddings or ai_embed.

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 explains the available input_type values and notes that search_query automatically adds the BGE retrieval instruction, which implies when each mode is appropriate. However, it gives no explicit guidance on when to choose this tool over sibling embedding tools, nor any when-not-to-use conditions.

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