Skip to main content
Glama
MCP PDF Server

MCP PDF Server

by SantosRojas

list_pdfs

Lists PDFs in the workspace, output folder, and allowed directories with paths, sizes, and dates so you can locate documents before merging or securing them instead of guessing paths.

Instructions

Lista los PDFs existentes en el workspace, la carpeta de salida y las carpetas permitidas, con ruta absoluta, ruta relativa, tamaño y fecha. Úsala para localizar documentos antes de merge_pdfs o apply_pdf_security en lugar de adivinar rutas.

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
directoryNo
recursiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the scopes searched and the output fields returned, but does not mention read-only behavior, pagination limits, recursive search behavior, or error conditions.

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 two tight sentences with the primary action and scope front-loaded. Every clause adds useful information about what is listed or when to use 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 description covers the tool's purpose, usage context, and returned fields, which is helpful given there is no output schema. However, with no annotations and undocumented input parameters, it is not complete enough to fully guide invocation details such as limiting, directory scope, or recursive behavior.

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

Parameters1/5

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

The schema has three parameters with 0% description coverage, and the tool description never mentions limit, directory, or recursive. It also does not explain how workspace, output folder, or allowed folders map to the directory parameter or how recursion changes results.

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 states a specific verb and resource: listing existing PDFs in the workspace, output folder, and allowed folders. It also specifies the returned fields (absolute path, relative path, size, date), making the tool's scope clear without needing the schema.

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?

It explicitly recommends using this tool to locate documents before merge_pdfs or apply_pdf_security instead of guessing paths. This gives clear usage context, though it does not state when not to use it or mention other listing alternatives.

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