Skip to main content
Glama

memory_vectors_upsert

Batch upsert precomputed L2-normalized float32 vectors into the embedding_cache to keep memory embeddings synchronized for retrieval.

Instructions

Batch upsert precomputed L2-normalized float32 vectors into embedding_cache.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "memory_vectors_upsert"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

The annotations already declare a non-read-only, non-destructive, closed-world mutation, so the description need not carry the entire safety burden. It usefully discloses that vectors must be precomputed L2-normalized float32 values and that they go into embedding_cache, but it does not explain upsert conflict keys, idempotency, or what happens when an item already exists.

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 definition is a single front-loaded sentence with no wasted wording. It conveys the operation, batching behavior, storage target, and critical vector format constraint compactly.

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?

For a mutation tool with no output schema and a nested parameter whose subfields are entirely undescribed, the definition is too thin. It omits conflict behavior, key semantics, duplicate handling, and any failure conditions an agent would need to invoke it confidently.

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

Parameters2/5

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

Schema description coverage is 0%, and the description only clarifies the vector field's required format, not the roles of memory_id, content_version, fingerprint, or how they key an upsert. With four nested item fields undocumented by the schema, more description is needed to compensate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: batch upserting precomputed vectors into embedding_cache. It also states the vector format constraint, though it does not distinguish this tool from the sibling memory_vectors_missing or other memory write paths.

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

Usage Guidelines2/5

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

It offers no when-to-use guidance, no prerequisite conditions, and no alternatives for agents that have missing or freshly generated vectors. The intent is implied only by the name and the single destination mention.

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