Skip to main content
Glama

Vector Create Collection

vector_create_collection

Creates a new vector database collection or retrieves an existing one, optionally ingesting provided documents or configured directory content.

Instructions

Creates a new collection or retrieves an existing one in the vector database.

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": "vector_create_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
db_typeNodb type
overwriteNooverwrite
document_pathsNorelative paths beneath the configured document root
collection_nameNocollection name
document_contentsNodocument contents
include_configured_directoryNoingest the administrator-configured document root

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.3.8
    • removedInput schema / properties / confirm
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "confirm"
      -}
  2. Addedv3.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses very little. It never mentions that the tool can ingest documents (via document_paths, document_contents, include_configured_directory), what 'overwrite' destroys, whether the operation is idempotent, or what permissions/configuration the document root requires — a significant omission for a tool that may both create and populate storage.

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?

A single front-loaded sentence with no filler, which is structurally clean. However, its brevity is under-specification rather than economy, since a six-parameter ingestion-capable tool warrants at least one more clarifying clause.

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?

An output schema exists, so return values need not be explained, but everything else is missing: side effects of document ingestion, the destructive scope of overwrite, and the create-versus-retrieve conditions. For a six-parameter, annotation-free tool, the description is far too thin.

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 description coverage is nominally 100%, which sets the baseline at 3, but the schema descriptions are largely tautological ('db type', 'overwrite', 'collection name'), so real semantic value is thin. The description adds nothing about parameter behavior — notably it is silent on how the three ingestion-related parameters interact with the create-versus-retrieve decision.

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 states a specific verb and resource ('Creates a new collection') plus a secondary behavior ('or retrieves an existing one'), which clarifies the get-or-create semantics. It does not differentiate itself from siblings such as vector_list_collections or vector_delete_collection, and the 'creates OR retrieves' phrasing leaves the actual trigger for each path unstated.

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?

There is no guidance on when to call this versus checking existence first via vector_list_collections, or versus vector_add_documents for populating a collection. No prerequisites, no mention of when not to use it, and no indication of how the returned collection differs between the create and retrieve paths.

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