Skip to main content
Glama

Vector Add Documents

vector_add_documents

Add documents to an existing vector database collection from file paths or raw contents, enabling retrieval-augmented generation over your own data.

Instructions

Adds documents to an existing collection 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_add_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
db_typeNodb type
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. Changed2 schema fields changedv3.3.8
    • removedInput schema / properties / confirm
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "confirm"
      -}
    • removedInput schema / properties / overwrite
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "overwrite"
      -}
  2. Addedv3.3.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and says nothing about whether documents are embedded/upserted, how duplicate or previously ingested documents are handled, whether changes are reversible, or what permissions are required. It is also silent on the significant side effect implied by include_configured_directory, which ingests an entire administrator-configured root.

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 zero wasted wording. It is efficient to a fault; the terseness is better scored under contextual completeness than as a structure defect.

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 5-parameter ingestion tool with no annotations and zero required parameters, the description leaves the core invocation question unanswered: whether to pass paths, contents, or the configured directory flag, and how they combine. An output schema exists, so return values need not be explained, but the input-side ambiguity is substantial.

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 100%, so the schema already documents each parameter, and the description adds no syntax, format, or interaction detail (such as how document_paths relates to document_contents). Baseline 3 applies when the schema does the heavy lifting.

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?

Names a specific verb ('Adds'), resource ('documents'), and target ('an existing collection in the vector database'), which distinguishes it from vector_create_collection by implying the collection must already exist. It does not explicitly name any sibling, so differentiation is inferential rather than stated.

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 phrase 'existing collection' is the only usage signal, implicitly telling the agent to create the collection first via vector_create_collection. There is no explicit when-to-use, no mention of the search siblings that consume the ingested data, and no guidance on which of the five optional parameters must be supplied.

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