Skip to main content
Glama

Aigentra x402 API

embeddings

Read-only

OpenAI-compatible text embeddings for RAG, semantic search, clustering and dedup, $0.001 per call for up to 32 texts, no API key. Multilingual BGE-M3 (1024 dimensions, 100+ languages incl. Indonesian) or BGE-small-en (384-d). POST {model, input:[...]} or GET ?input=. Returns data[i].embedding float arrays. Price $0.001 USDC per call (x402, Base).

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
inputYesText to embed (GET variant; POST accepts an array of up to 32)
modelNoDefault bge-m3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description adds substantial behavioral context beyond them: cost ($0.001 per call for up to 32 texts), payment mechanism (x402, USDC on Base), no API key needed, and the return shape data[i].embedding float arrays. Those pricing and auth details are exactly the kind of operational facts annotations cannot express.

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 a single front-loaded block that leads with purpose and then packs pricing, models, and call form without filler sentences. The density is high and slightly crammed, but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 correctly compensates by describing the return shape (data[i].embedding float arrays) and expected dimensions. Cost, auth, model choice, and transport variants are all covered, so an agent has everything needed to call it correctly.

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%, so the baseline is 3, but the description adds meaning the schema lacks: it explains the two model options by dimension and language coverage (BGE-M3 1024-d, 100+ languages; BGE-small-en 384-d), and clarifies the GET single-string vs POST array-of-32 input forms. That materially helps an agent choose values.

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 opens with a specific verb+resource ('OpenAI-compatible text embeddings') and enumerates concrete use cases (RAG, semantic search, clustering, dedup). It does not explicitly contrast with siblings like chat_completions, but the resource is distinct enough that an agent can differentiate it on the name and first clause.

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?

It gives clear application contexts — 'for RAG, semantic search, clustering and dedup' — which tells an agent when this tool is the right pick. There are no explicit exclusions or named alternatives, so the when-not guidance is absent.

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.