Skip to main content
Glama

ingest_pdf

Extract concepts, equations, and parameters from a PDF, match them against existing knowledge, reason about relationships, and commit changes to a knowledge graph.

Instructions

Ingest a PDF document into the knowledge graph.

    Extracts concepts, equations, and parameters, matches them against
    existing knowledge, reasons about relationships, and commits changes.

    Args:
        file_path: Absolute path to the PDF file.
        extraction_model: Model name for extraction (optional, uses default).
        reasoning_model: Model name for reasoning (optional, uses default).

    Returns:
        Summary of ingestion results.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
reasoning_modelNo
extraction_modelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It transparently outlines the multi-step process: extracting concepts/equations/parameters, matching against existing knowledge, reasoning about relationships, and committing changes. This reveals that the tool modifies the knowledge graph, which is crucial behavioral information.

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 one-sentence summary, a detailed process description, and an Args/Returns section. It is not overly verbose for a tool with multiple steps and parameters, and the most critical information (purpose, parameters) is front-loaded.

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 complex tool involving extraction, matching, reasoning, and committing changes, the description provides a solid overview of the workflow and output. It benefits from an output schema (stated as present), so return value details are not needed. Minor gaps include lack of prerequisites like file accessibility or idempotency, but the description is largely complete for an agent to understand the tool's role.

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?

Despite 0% schema description coverage, the description includes an Args section that explains each parameter: file_path as an absolute path, extraction_model and reasoning_model as optional model names. This adds meaningful context beyond the bare string types and defaults, helping the agent understand what values to provide.

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 opens with a specific verb 'Ingest a PDF document into the knowledge graph,' clearly identifying the resource and action. It further details the steps (extracts concepts, equations, parameters; reasons about relationships) that distinguish it from sibling tools like analyze_circuit_image or query_knowledge.

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 clearly implies this tool is for ingesting PDF documents into the knowledge graph, providing a clear context for when to use it. It lacks explicit exclusions or mention of alternative tools for other input types, but the PDF-specific scope prevents confusion with image-analysis or query tools.

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/xz0831/openclaw-brain'

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