Skip to main content
Glama

Text Embeddings

TextEmbeddings
Read-only

Text Embeddings: Text Embeddings turns a sentence, paragraph or short document into a 384-dimension vector that captures its meaning, ready for semantic search, clustering, deduplication and recommendations. Send one text or a batch of up to 32, and add a compare text to get the cosine similarity of each one to it in the same call. (Cost: 5 credits) REST: POST https://api.apiverve.com/v1/textembeddings, params as a JSON body, key in the x-api-key header. Docs: https://apiverve.com/md/marketplace/textembeddings.md

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "TextEmbeddings"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe text to embed, up to 10,000 characters. Send text or texts
textsNoA JSON array of texts to embed in one call: up to 32 on paid plans and 4 on the Free plan, 10,000 characters each and 50,000 in total. Send text or texts
compareNoOptional reference text; each embedding gets its cosine similarity to it

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, open-world behavior, so the description need only add operational context, which it does well: the 5-credit cost, the REST endpoint with body params, the x-api-key header, and the batch ceiling. It does not state per-plan rate behavior beyond the batch caps or what errors look like, keeping it just below the top score.

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?

Purpose, capability, cost and endpoint are front-loaded, and every line carries usable information. The use-case list and REST boilerplate are slightly promotional but still relevant, so only minor trimming would be possible.

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?

For a stateless embedding endpoint with a full input schema, an output schema and read-only annotations, nothing material is missing: model dimensionality, batch limits, cost, auth header and endpoint are all disclosed. Return values need not be described because an output schema exists.

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 coverage is 100%, so the schema already documents text, texts and compare, including character and count limits. The description restates the batch size of 32 and the cosine-similarity semantics of compare without adding format or precedence rules beyond the schema, so the baseline 3 applies.

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 with quantification: it turns text into a 384-dimension vector capturing meaning, and returns cosine similarity when a compare text is supplied. An agent knows exactly what output shape to expect, even though it is not explicitly contrasted with sibling TextSimilarity.

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?

Names concrete use cases (semantic search, clustering, deduplication, recommendations) and explains the batch-vs-single and compare-text options, giving clear context for when to call it. It stops short of naming an alternative or an explicit when-not (e.g., versus the TextSimilarity sibling), so it earns a 4 rather than 5.

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.