Skip to main content
Glama
u9401066

asset-aware-mcp

by u9401066

ingest_documents

Convert PDFs into structured Document Manifests by extracting text and images, then index them in LightRAG for AI-ready retrieval.

Instructions

Process PDF files and create Document Manifests.

ETL Pipeline:

  1. Extract text (to markdown) and images

  2. Generate structured Document Manifest

  3. Index in LightRAG (if enabled)

Args: file_paths: List of absolute paths to PDF files async_mode: Kept for backwards compatibility. PDF ingestion is routed to a background job from the MCP tool layer to keep stdio clients responsive. use_marker: Backwards-compatible flag that requests the configured structured extractor. The active packaged structured route is Docling; MinerU and Marker are dependency security holds. Default False uses PyMuPDF (faster and always available). marker_max_pages_per_chunk: When using a configured structured extractor, split PDFs into fixed-size page chunks. Set 0 to use the safe automatic strategy. extract_figures: When using a configured structured extractor, control whether image crops are extracted and saved. Disable this first for image-heavy textbooks to reduce memory pressure. page_ranges: 1-indexed inclusive page ranges applied to every input file, e.g. ["1-50", "120-160"].

Returns: Job ID for tracking progress with get_job_status.

Example: # Async (recommended for large files): ingest_documents(["/papers/study1.pdf"]) # Then check status: get_job_status("job_xxx")

# With the configured structured extractor for precise source tracking:
ingest_documents(["/papers/textbook.pdf"], use_marker=True)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deskewNo
async_modeNo
file_pathsYes
use_markerNo
ocr_enabledNo
page_rangesNo
ocr_languageNoeng
rotate_pagesNo
extract_figuresNo
index_knowledge_graphNo
marker_max_pages_per_chunkNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description carries full responsibility for behavioral transparency. It discloses that ingestion runs in a background job for async, explains backwards-compatibility flags (async_mode, use_marker), details the default extractor (PyMuPDF) and alternatives (Docling, with security holds), and warns about memory pressure with image-heavy textbooks. This is exceptionally transparent.

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 well-structured with clear sections (Overview, ETL Pipeline, Args, Returns, Example). It is detailed yet concise, avoiding repetition. Every sentence adds value, and the use of bullet points and an example improves readability without sacrificing depth.

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 complexity (11 parameters, no annotations, and a simple return type), the description is highly complete. It covers the workflow, key parameters, behavioral nuances, and provides a concrete example with follow-up status checking via get_job_status. This is sufficient for an agent to correctly invoke and monitor the tool.

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 has 0% description coverage, so the description must compensate. It provides detailed semantics for file_paths, async_mode, use_marker, marker_max_pages_per_chunk, extract_figures, and page_ranges. However, parameters like deskew, ocr_enabled, ocr_language, rotate_pages, and index_knowledge_graph are not described, leaving some ambiguity for these self-explanatory but still important options.

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 the primary function: 'Process PDF files and create Document Manifests.' It outlines the ETL pipeline steps (extract text/images, generate manifest, index in LightRAG). This distinguishes it from siblings like parse_pdf_structure (focused on structure parsing) and convert_document (likely format conversion), making its purpose specific and unambiguous.

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 provides usage context with an example for async mode ('recommended for large files') and explains when to use the configured structured extractor (for precise source tracking). However, it does not explicitly differentiate from sibling tools or state when not to use this tool, leaving some room for interpretation.

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/u9401066/asset-aware-mcp'

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