Skip to main content
Glama

deduplicate_embeddings_cosine

Prunes near-duplicate vector embeddings using pairwise cosine distance analysis to reduce memory node redundancy and improve agent context efficiency.

Instructions

Performs pairwise cosine distance analysis over vector candidate sets, pruning near-duplicate memory nodes for agent context efficiency. (0.015 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It discloses the pairwise algorithm, the pruning behavior, and the 0.015 USDC cost, which are useful. However, it does not clarify whether the pruning mutates persistent memory or only returns a filtered set, nor does it state side effects or response behavior.

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 a single concise sentence that front-loads the core operation and follows with a clear cost note. There is no filler or repetition of the tool name or schema details.

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

Completeness2/5

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

Given there is no output schema and the payload parameter is opaque, the description does not fully tell an agent how to invoke the tool correctly or what it will receive back. It communicates purpose and cost but omits input shape, return type, and threshold or configuration details, making it incomplete for a tool with this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and both parameters have descriptions, so the baseline is 3. However, the payload description is generic ('Input parameters or JSON string payload') and does not explain how vector candidate sets should be structured, and the tool description adds no parameter-level detail. Thus it adds no meaning beyond the schema baseline.

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 states the operation ('pairwise cosine distance analysis'), the resource ('vector candidate sets'), and the outcome ('pruning near-duplicate memory nodes for agent context efficiency'). It is distinguishable from sibling vector tools because it emphasizes deduplication and context pruning rather than indexing or reduction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'for agent context efficiency' implies when this should be used, but there are no explicit alternative tools or exclusions. An agent can infer a deduplication use case but gets no guidance on when not to use it, such as when indexing rather than deduplicating is desired.

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