Skip to main content
Glama

db_deduplicate_embeddings

Idempotent

Remove duplicate embedding BLOBs already stored in sqlite-vec. Coverage-gated operation keeps fallback rows without a vec0 mirror; dry run by default.

Instructions

Remove base-table embedding BLOBs already represented in sqlite-vec.

The operation is coverage-gated: rows without a confirmed vec0 mirror keep their BLOB fallback. Defaults to a report-only dry run. Run db_compact afterwards to return the newly freed pages to the filesystem.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.5/5.0
Behavior4/5

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

The description adds meaningful safety context beyond the annotations: rows without a confirmed vec0 mirror retain their BLOBs, the default is a report-only dry run, and pages are only returned to the filesystem after db_compact. This is consistent with idempotentHint=true and does not contradict destructiveHint=false because the operation is gated and preserves fallback data.

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?

Three tight sentences in logical order: statement of purpose, gating behavior, and follow-up action. Every sentence adds essential information with no filler or repetition.

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?

The tool is simple with one optional parameter and an output schema available, so return-value details do not need to live in the description. The description covers the operation's effect, safety guarantees, default mode, and the required follow-up, which is enough for an agent to invoke it correctly.

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?

The schema provides only a boolean dry_run with a default and no description, but the tool description explains that the operation defaults to a report-only dry run, giving the parameter practical meaning. It could be even clearer by naming the parameter explicitly, but the single parameter is adequately covered.

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 names a specific verb (Remove), a precise object (base-table embedding BLOBs), and the qualifying condition (already represented in sqlite-vec), so the tool's purpose is immediately distinct from maintenance siblings like db_compact. The description also clarifies what is preserved, avoiding ambiguity about data loss.

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 the operational context: it is coverage-gated, defaults to a report-only dry run, and should be followed by db_compact to reclaim space. It does not explicitly state when to prefer this tool over alternatives, but the sibling list contains no close analog, so the usage context is sufficiently clear.

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

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/po4erk91/thread-keeper'

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