Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

embed_texts

Read-onlyIdempotent

Generate normalized 384-dimension embeddings for 1–64 texts in English or about 100 languages; use query/passage prefixes for retrieval and check flags for truncated text.

Instructions

mlpeek: Create text embeddings. For images too use embed_multimodal; for pair scores use text_similarity. Returns 384-dimension embeddings of 1-64 texts with bge-small-en-v1.5 (English) or multilingual-e5-small (about 100 languages), normalised by default; input_type applies the model's query or passage prefix. The result flags text cut at 512 tokens; over 16,384 tokens per request is a 422 too_many_tokens (not charged). Runs an open model pinned by hash on Tanod's own CPU (no LLM, no third-party API); an unavailable model is a 503 (not charged). Typically 20 ms for one short text, up to about 10 s at the token budget. Price: USD 0.0005 per text, at least USD 0.001 per call (1-64 texts per call: USD 0.001-0.032). Free: 5 mlpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/text-embeddings-api-no-account.html

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_texts"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNosmall-en = BAAI/bge-small-en-v1.5 (English); multilingual = intfloat/multilingual-e5-small (~100 languages). 384 dimensions both.small-en
textsYes1-64 texts, each at most 8,000 characters; each is truncated at 512 tokens (reported per text). Priced per text, minimum USD 0.001 per call.
encodingNobase64 = little-endian float32 bytes.float
normalizeNoL2-normalise (cosine similarity = dot product).
input_typeNoRetrieval prefix: query / passage (e5: 'query: ' / 'passage: '; bge: its query instruction / nothing). none = symmetric use.none

Output Schema

NameRequiredDescriptionDefault
dataNo
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
modelNo
usageNo
encodingNo
dimensionsNo
input_typeNo
normalizedNo
prefix_appliedNo
max_tokens_per_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent annotations: 512-token truncation flagging, a 16,384-token per-request ceiling returning 422 too_many_tokens, 503 on unavailable model, both not charged, latency range, and a no-logging/no-storage guarantee. Pricing and free-tier caps are included, though the per-call cost arithmetic is more than most invocations need.

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?

Front-loaded with purpose and sibling routing, then limits, pricing, privacy and docs in a logical order with no filler sentences. It is a dense single block, and the detailed price table is arguably more than an invocation decision requires, but nothing is truly wasted.

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?

An output schema exists, so return shape needn't be explained; the definition still covers error behaviour, size caps, cost, privacy and hosting. For a stateless embedding call with rich schema and annotations, no decision-relevant information is missing.

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 description coverage is 100%, so model, encoding, normalize and input_type are already fully documented; the description largely echoes them (384 dims, normalised by default, input_type applying the retrieval prefix). Baseline 3 is appropriate since the schema carries the parameter burden.

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?

"Create text embeddings" is a specific verb+resource, and the definition immediately contrasts with named siblings (embed_multimodal for images, text_similarity for pair scores) so an agent can discriminate without opening any schema.

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

Usage Guidelines5/5

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

It explicitly routes away to two named alternatives with their conditions (image inputs, pairwise scoring) and states the model-choice rule (small-en English vs multilingual ~100 languages) plus the query/passage prefix usage for retrieval.

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

Deploy Server

Other Tools