Skip to main content
Glama

Add Document

vault_add_doc

Add a text document to a vault with metadata, full-text indexing, and version tracking. Use inline content or specify a file path.

Instructions

Add a text document to a vault with metadata (tags, category, priority, notes).

The document will be full-text indexed for search and stored with version tracking. Content can be provided inline (content parameter) or from a file path (path parameter). For binary files (PDF, DOCX, etc.), use vault_import_dir to import from a directory.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
pathNo
tagsNo
notesNo
vaultYes
contentNo
categoryNogeneral
filenameNo
priorityNonormal

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description discloses that documents are 'full-text indexed' and 'stored with version tracking', adding value beyond the annotations (all false). However, it does not clarify critical behavioral traits such as what happens if both content and path are supplied, whether existing documents with the same name are overwritten or versioned, or any permissions required. Annotations are minimal (all false), so the description carries more burden but still leaves gaps.

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 description is four sentences, each conveying distinct information: purpose, indexing/versioning, content input options, and the binary-file alternative. No fluff or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with a moderate parameter count and an output schema, the description provides the essential operational context: text-only, content via inline or path, metadata support, and the correct alternative for binaries. It falls short on parameter interplay (e.g., path vs content precedence) and what 'name' represents, but overall it equips an agent for typical use.

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 0%, so the description must compensate. It mentions content, path, and metadata fields (tags, category, priority, notes), but does not explain the role of 'name' vs 'filename', the relationship between content and path, or the vault parameter. With 9 parameters and zero schema descriptions, this partial coverage leaves ambiguity.

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 opens with 'Add a text document to a vault with metadata', a specific verb+resource statement. It also distinguishes from binary-file imports by pointing to vault_import_dir, making the scope (text documents) explicit.

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

Usage Guidelines5/5

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

It clearly states when to use this tool vs alternatives: 'For binary files (PDF, DOCX, etc.), use vault_import_dir to import from a directory.' It also explains the two content input modes (inline content or file path), which guides usage choices.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/labyrinth-analytics/loredocs'

If you have feedback or need assistance with the MCP directory API, please join our Discord server