Skip to main content
Glama

index_pdf_library

Indexes full text from PDFs in your literature and Zotero storage. Stores excerpts for search and updates abstracts incrementally.

Instructions

Extract and index full text from all PDFs in the Metis library.

Reads PDFs from inputs/literature/ and Zotero storage.
Stores first 4000 characters per paper in library_fulltext table.
Also updates literature_metadata.abstract for any matched papers.
Incremental — only processes files not yet indexed.

Args:
    scope: "literature" = inputs/literature/ only | "zotero" = Zotero storage only | "all" = both

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoall

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully assumes the transparency burden. It explicitly states reading PDFs, storing first 4000 characters, updating metadata, and being incremental. No contradictions, and the behavior is clear and complete for a non-destructive ingestion tool.

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 front-loaded with a one-line summary, followed by bullet-point-like lines detailing behavior and an Args section. Every sentence adds value, and the length is appropriate for the tool's complexity.

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 single parameter, lack of annotations, and presence of an output schema (which the description does not need to detail per rules), the description is comprehensive. It covers purpose, scope, behavior, and incremental nature. Minor gap: no mention of return value, but output schema likely covers it.

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?

The schema provides no parameter descriptions or enums, but the description adds complete meaning by defining the three scope options ('literature', 'zotero', 'all') and their corresponding directories. This fully compensates for the 0% schema coverage.

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 tool extracts and indexes full text from PDFs in the Metis library, specifying specific directories (inputs/literature/ and Zotero storage). The verb 'extract and index' and resource 'PDFs in the Metis library' are precise. Among siblings like 'scan_literature' and 'index_library_pdfs', this tool's unique scope is evident.

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 notes the tool is incremental, processing only unindexed files, which implies it can be run repeatedly. However, it does not explicitly state when to use this tool over siblings like 'scan_literature' or 'index_library_pdfs', nor does it provide when-not-to-use 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/SVerITG/Metis'

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