Skip to main content
Glama

palace_upgrade_embeddings

Rebuild embeddings for all stored memory drawers with the active model in batches, optionally refreshing preference-span embeddings.

Instructions

Re-embed all drawers with the palace's active embedding model (batched). To switch models use palace_embeddings.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "palace_upgrade_embeddings"
  }
}

Input Schema

NameRequiredDescriptionDefault
refresh_preferencesNoAlso refresh preference-span embeddings

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.20.5

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that the operation covers ALL drawers and is batched, implying a broad and potentially lengthy run, but it does not say whether existing embeddings are overwritten, whether the operation is idempotent, whether it incurs external API cost, or whether it is interruptible. These are material gaps for a bulk mutation with zero annotation coverage.

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

Conciseness4/5

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

Two short sentences, front-loaded with the action and scope, with the sibling pointer second. Nothing is wasted, though the parenthetical '(batched)' is slightly cryptic.

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?

For a bulk, non-annotated operation with no output schema, the description covers what it does and which sibling handles an adjacent task, but leaves out the outcome of the run (progress, failure handling, what changes in storage) and the preconditions. Adequate but with clear gaps.

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 the single optional parameter already carries a description ('Also refresh preference-span embeddings'), so the structured field does the work. The prose adds no extra meaning about what preference-span embeddings are or when to enable the flag; baseline 3 applies.

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 verb ('Re-embed') and resource ('all drawers') with an explicit scope qualifier ('with the palace's active embedding model'), and it names the sibling tool used for the different task of switching models. An agent can distinguish this from palace_embeddings without inspecting either schema.

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?

It explicitly routes the model-switching case to palace_embeddings, which is genuine when-not guidance. It stops short of stating the triggering condition for this tool itself (e.g. embeddings are stale or were produced by a different model), leaving that to inference.

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