Skip to main content
Glama

backfill_embeddings

Generate embeddings for memories lacking them, enabling AI assistants to reliably recall and reinforce persistent information. Includes dry-run and force options.

Instructions

Generate embeddings for memories that lack them.

Args: model: Model name (default: all-MiniLM-L6-v2). limit: Max memories to process (1-10k, None=all). force: Regenerate existing embeddings. dry_run: Preview only.

Returns: Dict with: success, processed, errors, model, total_memories, memories_without_embeddings, message.

Raises: ValueError: Invalid limit. ImportError: sentence-transformers not installed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
limitNo
modelNoall-MiniLM-L6-v2
dry_runNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it does a good job: it explains parameter effects (force, dry_run, limit), lists possible exceptions (ValueError, ImportError), and summarizes the return value. It could go further by noting potential resource cost or persistence side effects, but the core behavior is clear.

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 well-structured with a one-sentence purpose followed by Args, Returns, and Raises sections. Every line earns its place and there is no fluff or redundancy with the schema.

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 four-parameter tool with no annotations, the description is sufficiently complete: it covers all parameters, return fields, and error conditions. An agent can understand what the tool does, how to invoke it, and what to expect in response without needing additional context.

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

Parameters5/5

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

The schema has 0% description coverage, so the description fully compensates by explaining all four parameters: model with default, limit range, force to regenerate, and dry_run as preview-only. This adds meaning far beyond the bare schema types and defaults.

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 states a specific action ('Generate embeddings') and a clear resource/scope ('for memories that lack them'). This distinguishes it from sibling tools like search_memory or cluster_memories, which have different purposes.

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 usage context is implied by the title and first line: use when memories are missing embeddings. However, there is no explicit guidance about when not to use it or how it compares to alternatives among the sibling tools.

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