Skip to main content
Glama

import_index

Imports a gzipped JSONL index archive into ChromaDB to load pre-computed embeddings and skip re-embedding, populating a chosen or archive-default project.

Instructions

Import a gzipped JSONL index archive into ChromaDB.

Imports pre-computed embeddings from a .jsonl.gz archive (created by export_index) directly into ChromaDB, bypassing the embedding step.

Input:

  • archive_path (str): path to the .jsonl.gz archive

  • project (str, optional): target project name — if empty, uses the project name from the archive header

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": {
      "archive_path": "<archive_path>"
    },
    "name": "import_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
archive_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden; it does disclose real behavior, namely that the embedding step is bypassed and that the target project falls back to the archive header when not supplied. It says nothing about whether existing vectors in the target project are overwritten, merged, or appended, nor about failure modes on a malformed or mismatched archive — critical unknowns for an import mutation.

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?

Front-loaded one-line summary, followed by a compact 'Input:' block that maps directly to the schema. Every sentence carries content; the only minor waste is restating the archive parameter inside the prose.

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 two-parameter mutation with no annotations and no output schema, the definition covers purpose, parameter meaning, and the archive's origin, which is the core. It omits the outcome semantics an agent needs to act safely: overwrite/merge behavior, what is returned on success, and what errors to expect on bad input.

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?

Schema description coverage is 0%, so the description must carry the parameters, and it does: both archive_path and project are documented with types, optionality, and the non-obvious fallback semantics of empty project. It does not add format expectations for archive_path (path style, whether relative or absolute) or what happens on an incompatible header.

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?

States a specific verb and resource ('Import a gzipped JSONL index archive into ChromaDB') and adds a meaningful qualifier: it imports pre-computed embeddings, bypassing the embedding step. It also names its counterpart, export_index, which tells an agent where such archives come from. It does not explicitly differentiate itself from the similar-sounding import_skb sibling.

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?

Gives a clear selection condition: use this on archives created by export_index, when embeddings are already computed and the embedding step should be skipped. No explicit when-not guidance or cost/precondition warnings are given, but the provenance link to export_index is enough for an agent to choose correctly.

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