Skip to main content
Glama

ai_embed

Read-only

AI text embedding (768-dim) — Text embedding vector (768 dimensions, bge-base-en-v1.5) for semantic search, clustering, dedup and RAG. Pass ?text= (up to 2000 chars). 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": {
      "text": "<text>"
    },
    "name": "ai_embed"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesthe text to embed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds context annotations cannot: the fixed 768-dim model, a 2000-character input ceiling, and a per-call price of $0.002 USDC on Base via x402. Cost and input limits are exactly the behavioral facts an agent needs before calling a paid endpoint. It does not discuss error behavior or batching, keeping it below a 5.

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?

A compact, front-loaded block that moves from output shape to use cases to input constraint to price with no filler sentences. The parenthetical model name and dimension read slightly redundantly given the title repeats the 768-dim detail, but nothing is wasted.

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 one-parameter, annotation-covered, output-schema-less tool, the description covers what is returned (a 768-dim vector), the input ceiling, and the cost model, which is enough to call it safely. Only error/failure handling and whether the cost is charged on failure are left open.

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 100% for the single 'text' parameter, so the baseline would be 3; the description adds a real constraint beyond the schema by capping input at 2000 characters, which the schema does not state. No format or encoding guidance is given beyond the length limit.

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

Purpose5/5

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

States a concrete verb and resource ('Text embedding vector', 768 dims, bge-base-en-v1.5) and lists the jobs it serves: semantic search, clustering, dedup, RAG. An agent can distinguish it from siblings like ai_similarity (pairwise comparison) or ai_classify (labeling) without opening the schema.

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

Usage Guidelines4/5

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

The use-case list ('semantic search, clustering, dedup and RAG') gives clear positive guidance about when this tool is the right pick. It stops short of explicit routing such as 'use ai_similarity instead of computing cosine distance yourself', so no exclusions or named alternatives are provided.

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