Skip to main content
Glama
Tanod MCP Server

Tanod MCP Server

Official

text_similarity

Read-onlyIdempotent

Scores the semantic similarity of one or up to 50 text pairs, returning cosine similarity so agents can compare or match texts.

Instructions

mlpeek: Score the semantic similarity of one or up to 50 text pairs. To rank documents against a query use rerank_documents. Returns the cosine similarity of the embeddings of each text pair (bge-small-en or multilingual-e5-small): one pair as a + b (also a top-level similarity) or 1-50 pairs. Input: At most 4,000 characters per text. The result flags text cut at 512 tokens; over 16,384 tokens per request is a 422 (not charged): split it. 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-50 ms for one pair, under 1 s for 50 short pairs. Price: USD 0.0005 per pair, at least USD 0.001 per call (1-50 pairs per call: USD 0.001-0.025). Free: 5 mlpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/embeddings-rerank-ner-mcp-server.html

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": "text_similarity"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoFirst text of a single pair (at most 4,000 characters).
bNoSecond text of a single pair.
modelNosmall-en (English) or multilingual.small-en
pairsNoAlternative to a / b: 1-50 {a, b} pairs. Priced per pair, minimum USD 0.001 per call.

Output Schema

NameRequiredDescriptionDefault
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
modelNo
usageNo
metricNo
resultsNo
similarityNo
max_tokens_per_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the read-only/idempotent annotations by disclosing that the model is open and hash-pinned on Tanod's own CPU, that no third-party LLM is involved, that text is never logged or stored, and that 422/503 failures are not charged. Latency expectations (20-50 ms for one pair, under 1 s for 50) and the 512-token truncation flag are also surfaced. Pricing and free-tier detail is useful but somewhat dominates the tail of the description.

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?

Dense but front-loaded: purpose and sibling routing come first, then return format, input limits, errors, performance, pricing, and privacy. Each clause earns its place, though the compressed single-paragraph form with heavy parenthetical pricing detail is harder to scan than it could be.

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 4-parameter read-only scoring tool with a full output schema, the description covers everything an agent needs: input modes, size caps, model choice, failure codes and their billing impact, latency, cost, and data handling. Nothing material is left to inference.

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 real meaning: it maps the enum values 'small-en' and 'multilingual' to bge-small-en and multilingual-e5-small, and states that a+b and pairs are alternative input modes rather than additive. That resolves ambiguity the schema leaves implicit about whether both forms may be combined.

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?

The opening sentence states a specific verb and resource ('Score the semantic similarity of one or up to 50 text pairs') and immediately names the sibling it is not for ranking. An agent can distinguish it from rerank_documents and check_text_duplicate without opening a 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?

Explicitly routes ranking tasks to rerank_documents, which defines the boundary condition for choosing this tool. It also gives the practical constraints that shape usage: single pair via a+b or 1-50 pairs, and that over 16,384 tokens per request returns a 422 requiring a split.

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