Skip to main content
Glama

knowledge_ingest

Import documents, extract text, chunk into digest packs, and write structured wiki summaries with provenance links.

Instructions

Knowledge ingestion pipeline. Select mode to control behavior:

  • batch: Batch import, extract, chunk, and pack source documents into digest packs. Scans a directory (or single file), imports to raw/, extracts text with structural provenance (per-page PDF, per-sheet XLSX, per-slide PPTX), chunks into fixed-line segments, then packs into markdown digest packs under raw/digest-packs/{topic}/. Files already in raw/ are skipped.

  • digest_write: Write LLM-generated digest summaries to wiki with structured provenance. Creates or updates one or more wiki pages from digested content, linking back to source raw files and digest packs. Index is rebuilt once at the end. Each page gets auto-classified, auto-routed, and timestamped.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesIngestion mode: batch (import and pack source documents) or digest_write (write LLM summaries to wiki)
source_pathNo[batch] Absolute path to a directory or single file to ingest
patternNo[batch] Glob filter when source_path is a directory (e.g. '*.pdf', '*.{xlsx,docx}')
maxFilesNo[batch] Maximum files to process (default: 100, max: 1000)
topicNo[batch] Topic name for organizing digest packs (default: 'general')
chunkLinesNo[batch] Maximum lines per chunk (default: 100)
packLinesNo[batch] Maximum lines per digest pack (default: 500)
continueOnErrorNo[batch] Continue processing on individual file errors (default: true)
pagesNo[digest_write] Array of wiki pages to write
Behavior4/5

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

Without annotations, the description discloses several behavioral traits: files already in raw/ are skipped, index is rebuilt once after digest_write, auto-classification and auto-routing occur, and timestamps are added. It also details the extraction process (per-page PDF, per-sheet XLSX, etc.). However, it doesn't mention side effects like overwriting existing data or security/auth requirements.

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 clear sections for each mode and bullet points for parameters. It is concise, with no extraneous information, and every sentence adds value. However, it could be slightly more condensed without losing clarity.

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?

Given the complexity (9 parameters, two modes, no output schema, no annotations), the description is fairly complete. It explains the overall pipeline, each mode's workflow, and key behaviors like file skipping and index rebuilding. It lacks an explanation of the return value or output format, but the absence of an output schema lessens the need.

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 input schema already provides 100% description coverage for all 9 parameters. The tool description adds value by explaining the purpose of the mode parameter and summarizing the role of batch parameters (e.g., 'Scans a directory... imports to raw/'). This contextualizes the parameters beyond their schema definitions.

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 clearly states it is a knowledge ingestion pipeline with two distinct modes: batch (import, extract, chunk, pack) and digest_write (write LLM summaries to wiki). It differentiates from sibling tools like raw_ingest (which only imports raw files) and wiki_write (which only writes pages) by covering the full ingestion and summary writing process.

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

Usage Guidelines4/5

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

The description explains when to use each mode: batch for importing and packing source documents, digest_write for writing wiki summaries. However, it does not explicitly state when not to use the tool or mention alternative tools like raw_ingest for simpler raw file imports. The context is clear but lacks explicit exclusion criteria.

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/xinhuagu/agent-wiki'

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