Skip to main content
Glama

Tanod ML

mlpeek: embed texts as vectors

embed_texts
Read-onlyIdempotent

mlpeek: Create text embeddings. 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. Input: texts, optional model, normalize, encoding and input_type. Each text is cut at the model's 512-token window (truncated says so); 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. Tanod does not log or store the submitted text; it is processed in memory for this answer.

Input Schema

TableJSON 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

TableJSON 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. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "data": {
      +      "items": {
      +        "properties": {
      +          "embedding": {
      +            "type": [
      +              "array",
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "index": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "tokens": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "truncated": {
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "dimensions": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "encoding": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "input_type": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "max_tokens_per_text": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "model": {
      +      "properties": {
      +        "alias": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "revision": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "source": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "normalized": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "prefix_applied": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "usage": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources