Skip to main content
Glama
pdf-mcp
by jkp

Get PDF Info

get_pdf_info
Read-only

Retrieve metadata from a PDF by filename without extracting full text, enabling you to inspect document details before full-text search or reading.

Instructions

Get metadata about a PDF without extracting full text.

Args: filename: PDF filename

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filename": "<filename>"
    },
    "name": "get_pdf_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description contributes the useful trait that this is a lightweight metadata-only call, but says nothing about failure behavior for a missing file or about what the response contains (an output schema exists, so the latter is acceptable).

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 first sentence is front-loaded and earns its place. The 'Args: filename: PDF filename' block duplicates the schema and the parameter name itself, which is mild waste.

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 and an output schema covers return values, so little is required. Still missing is the filename format/resolution rule, which is the one thing an agent could plausibly get wrong when calling it.

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

Parameters2/5

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

Schema coverage is 0%, so the description must carry the load, and it only restates the parameter as 'PDF filename'. It does not say whether this is a basename, a relative path, or an identifier returned by list_pdfs, leaving a real ambiguity for a 1-required-param tool.

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 ('Get metadata about a PDF') and adds a negative scope ('without extracting full text') that separates it from read_pdf. It stops short of saying which metadata fields are returned, so the purpose is clear but not fully pinned down.

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 'without extracting full text' phrasing implies when to prefer this over full-text extraction, but no sibling is named and no explicit when-not guidance is given. Usage is inferable rather than stated.

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