Skip to main content
Glama

Embedding probe (diagnostic)

embedding_probe
Read-onlyIdempotent

Diagnostic (dev-token environments only): embed a text with the backend provider and compare the vector against the stored embedding of a document.

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": {
      "text": "<text>",
      "document_id": "<document_id>"
    },
    "name": "embedding_probe"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered by structured data. The description adds value beyond that by disclosing an auth constraint (dev-token only) and that work happens against the backend provider with a document's stored embedding, which signals an external call with possible latency/cost - context the annotations do not carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the diagnostic label and the environment restriction before the mechanics. Every clause earns its place and nothing is repeated from the schema or annotations.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of explaining what comes back, and 'compare the vector against the stored embedding' leaves the return shape unspecified - a similarity score, a distance, a pass/fail verdict? For a tool whose whole point is the comparison result, that gap matters even though the two-parameter surface is otherwise well covered.

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 description coverage is 0%, so the description must compensate for both parameters. It does: 'text' is the input to embed and 'document_id' is the document whose stored embedding is used as the comparison baseline. Neither is given format constraints (e.g. whether document_id is a slug or UUID), which keeps it below a 5.

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?

States a specific verb chain and resource: 'embed a text with the backend provider and compare the vector against the stored embedding of a document.' That is far more specific than the sibling catalog (block/page/capsule CRUD), so an agent can tell this is a diagnostic rather than a content operation, even though no sibling is named as an alternative.

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?

The parenthetical '(dev-token environments only)' is an explicit precondition that tells the agent when this tool is even callable, and the word 'Diagnostic' frames the intent. It stops short of stating when to prefer this over other verification steps or what problem the probe answers, so it is clear context rather than full when/when-not guidance.

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.

Resources