Skip to main content
Glama

check_embedding_drift

Monitors embedding drift by re-embedding saved strings and reporting cosine drift. Alarms when max drift exceeds threshold (default 0.05), catching silent model changes.

Instructions

Embedding-drift canary. Without args, re-embeds the saved CANARY_STRINGS and reports per-canary cosine drift; alarm fires when max_drift > threshold (default 0.05 ≈ cosine<0.95). Pass capture=true to seed the snapshot first (idempotent unless force=true). Catches silent provider model upgrades that would otherwise corrupt index recall without changing dim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
captureNoEmbed CANARY_STRINGS and persist the snapshot.
forceNoWith capture=true, overwrite an existing snapshot.
thresholdNoMax allowed drift (1 - cosine). Default 0.05.
Behavior4/5

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

Despite no annotations, the description discloses key behaviors: re-embedding, cosine drift reporting, alarm threshold, idempotence of capture, and the purpose of catching silent provider upgrades. It lacks details on auth or rate limits but is reasonably transparent.

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?

The description is extremely concise, using three sentences to convey core behavior, parameters, and rationale without redundancy.

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?

The description covers drift detection workflow but lacks explicit output format details (e.g., what the report contains). For a simple tool, it's adequate but not fully complete.

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 baseline is 3. The description adds value by explaining default threshold equivalence and capture idempotence behavior, going beyond schema descriptions.

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 description clearly identifies the tool as an 'embedding-drift canary' with a specific verb (re-embeds and reports) and a distinct resource (CANARY_STRINGS). It differentiates from sibling tools which are primarily get/search/index operations.

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 description explains usage 'without args' and 'with capture=true', detailing when to seed the snapshot. It implies the tool is for drift detection but does not explicitly state when not to use or provide alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgravelle/jdocmunch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server