Skip to main content
Glama
pdf-mcp
by jkp

List PDFs

list_pdfs
Read-only

Lists PDFs in a local filing cabinet, optionally filtered by filename substring and capped by a result limit, to help find relevant documents.

Instructions

List PDFs in the filing cabinet, optionally filtered by filename pattern.

Args: pattern: Optional filename substring to filter by (e.g., "mortgage", "2024") limit: Maximum number of results

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_pdfs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
patternNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes that this is a non-mutating read. The description adds the 'filing cabinet' scope and the filter model, but says nothing about result ordering, truncation relative to the default limit, or what happens when no files match — useful behavioral context for a listing 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?

One front-loaded sentence stating purpose and filter scope, followed by a compact Args block with no filler. Every line contributes information an agent needs before calling the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (two optional params, output schema present so return values need no explanation), but a listing tool should disclose default result volume and pagination/truncation behavior; the default of 50 appears only in the schema and is never socio-referenced in prose.

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?

Schema description coverage is 0%, so the description must carry the meaning — and it does: 'pattern' is defined as a filename substring with concrete examples ('mortgage', '2024'), and 'limit' as the maximum number of results. It stops short of noting the default of 50, any cap on limit, or case-sensitivity of the substring match.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope: 'List PDFs in the filing cabinet, optionally filtered by filename pattern.' An agent knows exactly what it returns (a PDF listing) and that filtering is optional, but nothing distinguishes it from the sibling 'search_pdfs', so it falls short of full sibling differentiation.

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

Usage Guidelines2/5

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

No when-to-use or when-not guidance is given, and no alternative is named. With siblings like search_pdfs and reindex_pdfs present, an agent is left to infer whether a listing or a search is the right call, and whether this tool triggers any indexing side effects.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.