Skip to main content
Glama

add

Add files, directories, or URLs to your local knowledge base and sync them. Supports overwrite, OCR, and crawl rendering options.

Instructions

Add files, directories, or URLs to the knowledge base and sync. Copies the given paths into the documents directory, then ingests them. URLs (http:// or https://) are fetched as markdown and saved to _web/. Paths must be absolute and accessible from this machine.

Args:
    paths: Absolute file/directory paths or URLs to add.
    force: Overwrite files that already exist in the knowledge base.
    enable_ocr: Force vision OCR on (True), off (False), or auto-detect
        from chat model capabilities (None/omit).
    ocr_timeout: Per-page timeout in seconds for vision OCR. Overrides
        the configured default for this invocation only.
    render_mode: How any URLs are crawled. None (default) uses the
        configured crawl_render_mode; "http" is browserless, "browser"
        runs Chromium with JavaScript.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYes
forceNo
enable_ocrNo
ocr_timeoutNo
render_modeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided, so description carries full burden. It describes core behavior (copy, ingest, URL fetching to _web/, force overwrite, OCR options, render mode). However, it lacks details on error handling, permissions, or what happens on conflict without force. Disclosure is adequate but not exhaustive.

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?

The description is well-structured with a brief overview and a bullet-style parameter list. It is reasonably concise for the amount of information, though some parameter descriptions could be slightly shortened without loss.

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?

The tool has 5 parameters and 1 required, all explained. An output schema exists (though not shown), so return value explanation is not required. However, the description omits details about error cases, concurrent usage, or performance implications, leaving minor gaps for a complex tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has no descriptions (0% coverage), and the description compensates fully by explaining every parameter in detail: paths (absolute, URL handling), force (overwrite), enable_ocr (auto-detect), ocr_timeout (override), render_mode (crawl modes). This adds significant meaning beyond schema titles and types.

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 clearly states the tool adds files, directories, or URLs to the knowledge base and syncs. It uses specific verbs and resource, and the sibling tools list includes 'crawl' and 'list_documents', which suggests differentiation, though not explicit.

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 description explains the process (copies, ingests, handles URLs) and prerequisites (absolute paths, accessible machine), but does not explicitly state when to use this tool versus siblings or provide when-not scenarios.

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/tobocop2/lilbee'

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