Skip to main content
Glama

list_pdfs

Locate PDF files in directories using glob patterns to filter by filename, returning file details for processing with PDF reading tools.

Instructions

Find PDF files in a directory. Use name_pattern for glob filtering (e.g., 'report'). Returns name, path, pages for each PDF. Use the returned 'path' directly with read_pdf.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
working_directoryNoWorking directory to search (relative or absolute path, default: current directory).
recursiveNoWhether to include subdirectories
max_depthNoMaximum recursion depth (default: 2)
name_patternNoGlob pattern for filename filtering (e.g., '*report*', 'doc_202?.pdf')
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's read-only nature (implied by 'Find' and returns data) and output format ('Returns name, path, pages'), but lacks details on error handling, performance limits, or permissions required for directory access. It adds value beyond the schema by explaining the return structure and integration with 'read_pdf'.

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 highly concise and front-loaded, with three sentences that each serve a clear purpose: stating the tool's function, providing a parameter example, and explaining the output and integration. There is no wasted text, making it efficient and easy to parse.

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 tool's moderate complexity (searching files with filtering), no annotations, and no output schema, the description is largely complete. It covers purpose, usage, and output structure, but lacks details on error cases or performance constraints (e.g., large directories). The integration hint with 'read_pdf' enhances context, though some behavioral gaps remain.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema fully documents all 4 parameters. The description adds minimal semantic value beyond the schema, only mentioning 'name_pattern' with an example ('e.g., '*report*''), which is already covered in the schema description. No additional parameter insights are provided, meeting the baseline for high 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 specific action ('Find PDF files'), target resource ('in a directory'), and scope ('Returns name, path, pages for each PDF'). It distinguishes from sibling tools by explicitly mentioning 'read_pdf' for a different purpose, avoiding overlap.

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

Usage Guidelines5/5

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

It provides explicit guidance on when to use this tool ('Find PDF files in a directory') and when to use an alternative ('Use the returned 'path' directly with read_pdf'), clearly differentiating from the sibling 'read_pdf' tool. It also includes a practical example ('e.g., '*report*'') to illustrate usage context.

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/PyJudge/pdf4vllm-mcp'

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