Skip to main content
Glama

Add knowledge file

add_knowledge_file

Add a file the person already has in the Vault to a knowledge base: copied into its folder and indexed with its embedding model. Takes what an upload takes (documents, spreadsheets, CSV, text, code, PDFs), up to the upload's size per file.

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": {
      "knowledge_base": "<knowledge_base>",
      "path": "<path>"
    },
    "name": "add_knowledge_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe file's Vault path, e.g. 'reports/prices.csv'.
knowledge_baseYesThe knowledge base's name (or its id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the write profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the description adds real extra context: the file is copied into the knowledge base folder and indexed with its embedding model. It also bounds the operation with accepted file types and per-file size limits, though it does not say whether indexing is synchronous or how a failure surfaces.

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?

Two sentences with the core behavior front-loaded and constraints relegated to the second sentence. The parenthetical file-type list is long but earns its place by bounding what is accepted.

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 2-parameter mutation with annotations and no output schema, the description covers the key unknowns: what happens to the file (copy + index), what types are accepted, and the size ceiling. Missing only post-call behavior such as indexing status, which the retry/list siblings can handle.

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% and both parameters (path, knowledge_base) are already documented in the schema, including the path format example. The description reinforces that the path is a Vault path but contributes no additional syntax or constraint information beyond structured data, so the baseline 3 applies.

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 ("Add a file the person already has in the Vault to a knowledge base") and clarifies the source is Vault-resident, which implicitly separates it from the upload/note/page siblings. It stops short of naming a contrasting sibling, so differentiation is strong but not airtight.

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 "a file the person already has in the Vault" implies a precondition (Vault-resident files only) and that new content needs a different path, but no explicit when-to-use/when-not or named alternative is given. The agent must infer that add_knowledge_note or add_knowledge_pages cover the non-file cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.