Skip to main content
Glama

pdf_info

Read-onlyIdempotent

Retrieve PDF metadata and properties—page count, title, author, subject, dates, PDF version, encryption status, and file size—from a file path, base64 data, or HTTPS URL.

Instructions

Describe a PDF: page count, title, author, subject, creator, producer, creation and modification dates, PDF version, whether it is encrypted, and file size. The PDF is a path in the root folder, base64 data, or an https url.

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": "pdf_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAn https:// URL to fetch the PDF from, instead of `path` (up to 8 MiB).
dataNoBase64 PDF bytes, instead of `path` (up to 8 MiB).
pathNoPDF file, relative to the root folder. Give exactly one of path, data, url.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / data / default
      Removed value: -null
    • changedInput schema / properties / data / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / path / default
      Removed value: -null
    • changedInput schema / properties / path / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • removedInput schema / properties / url / default
      Removed value: -null
    • changedInput schema / properties / url / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
  2. First observedv0.1.3

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds real value beyond that by disclosing the full set of extracted metadata and the encryption-status check, which effectively substitutes for a missing output schema; it stops short of saying what an encrypted or malformed PDF returns.

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?

Two sentences, each earning its place: the first is a front-loaded inventory of returned fields, the second is the complete set of accepted input sources. No filler, no redundancy with the title or annotations.

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?

For a no-output-schema, zero-required-parameter metadata tool this is close to complete, since the return fields are enumerated in prose. Minor gaps remain: the response format is unstated and the behavior on encrypted or invalid PDFs is not described.

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%, and each parameter already documents its role, the 8 MiB cap, and the 'give exactly one' exclusivity rule. The description only restates the three accepted input forms and the 'root folder' scoping, adding no syntax or format detail beyond the schema.

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 gives a specific verb ('Describe') and resource ('a PDF') and then enumerates exactly what comes back: page count, title, author, subject, creator, producer, dates, PDF version, encryption status, and file size. That enumeration clearly separates it from siblings like pdf_text and pdf_search, which deal in content rather than document metadata.

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?

Usage is only implied: an agent can infer this is the tool for metadata inspection rather than text extraction, but the description never states when to prefer it over pdf_text or pdf_search, nor any prerequisite such as needing an unencrypted file. The listing of return fields does the routing work indirectly.

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

Deploy Server

Other Tools