Skip to main content
Glama
mfbaig35r
by mfbaig35r

vault_ingest

Extract, chunk, and store all supported files from a directory into a searchable vault, using OCR for scanned pages and flagging transcriptions.

Instructions

Extract, chunk, and store every supported file under a directory.

Idempotent by content hash: an unchanged file is skipped. A PDF page with no text layer is a scan, and is read by OCR — locally with tesseract by default, so nothing leaves the machine. A document read that way records that its text is a transcription rather than the document's own, reports the engine and its confidence, and any Verbatim cell drawn from it is flagged: the quotation was checked against a reading of the page, not the page.

vision sends page images to the model instead. It reads harder scans, but it transcribes fluently, so a misreading looks like ordinary text — opt in deliberately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ocrNoauto (default, local tesseract) | tesseract | vision | off.
pathYesDirectory holding the data room.
forceNoRe-extract files whose content is unchanged.
recursiveNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and it does so thoroughly: idempotency by content hash, local tesseract OCR by default, no data leaving the machine, transcription provenance flags, and a candid caveat about vision mode's fluent-but-plausible misreadings. This is exactly the safety-relevant behavior an agent needs before invoking.

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?

Three dense paragraphs with no filler: purpose first, then idempotency, then OCR behavior, then the critical vision caveat. Each sentence carries information an agent needs for correct and safe invocation.

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

Completeness5/5

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

Given the tool's moderate complexity and that an output schema exists, the description covers the behavioral decisions that matter: what gets skipped, how scans are handled, what happens to extracted text, and when vision should be opted into. Nothing material to calling the tool correctly is left unexplained.

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

Parameters4/5

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

The schema documents three of four parameters; the description adds meaningful meaning beyond it, especially for ocr (local vs vision trade-offs, privacy, transcription flagging) and force (contextualized by the idempotency-by-hash behavior). Only recursive lacks any prose, but the phrase 'under a directory' and its default mitigate the gap.

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 opening line uses a specific verb set — 'Extract, chunk, and store' — with a scoped resource ('every supported file under a directory'). This makes the batch-ingest role immediately clear and distinguishable from the read/search siblings like vault_search and table_read.

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 implies the use case (bulk ingestion of a directory into the vault) and explains key modes, but it never explicitly states when to choose this tool over an alternative or when not to use it. No sibling is named as a fallback, so the agent must infer routing from the tool name and opening verb.

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