Skip to main content
Glama

pdf-tools

get_pdf_metadata

Read a PDF's document properties (title, author, subject, keywords, creator, producer, dates, page count).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesThe PDF file, base64-encoded (max 10 MB)

TDQS

A3.9/5.0
Behavior3/5

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

Annotations are absent, so the description must carry the behavioral burden. The verb 'Read' implies no modification, but the description does not explicitly state that the file is unchanged, what the return structure looks like, or potential errors (e.g., invalid PDF). This is adequate for a simple getter but not fully transparent.

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?

A single, well-structured sentence that leads with the verb and resource, then concisely lists the relevant metadata fields. No filler or redundancy.

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 the schema covers the only parameter, but with no output schema and no annotations, the description should ideally state what the returned metadata looks like (e.g., a structured object) and confirm the operation is non-destructive. It is complete enough for basic use but leaves some ambiguity.

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 already documents the single 'file' parameter and its base64/max-size details. The description adds no extra meaning about the parameter itself, just about the output, so the baseline 3 applies.

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 uses a specific verb ('Read'), a clear resource ('a PDF's document properties'), and enumerates the exact fields (title, author, subject, keywords, etc.). It is unmistakably distinct from sibling tools like set_pdf_metadata and the page-manipulation tools.

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?

The context is clear: use this when you need to inspect a PDF's metadata. It does not explicitly name alternatives or state when not to use it, but the read-only intent and the sibling set_pdf_metadata make the intended usage obvious enough.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4/5.0
Disambiguation5/5

Each tool targets a distinct PDF operation: page numbering, watermarking, flattening, metadata read/write, and various page selection/rearrangement tasks. Although extract_pages, remove_pages, and split_pdf all involve page ranges, their descriptions clearly differentiate extracting a subset, deleting a subset, and partitioning into multiple outputs.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in lowercase snake_case, such as add_page_numbers, get_pdf_metadata, merge_pdfs, and rotate_pdf. The pattern is predictable across the entire set, with no mixed conventions or vague verbs.

Tool Count5/5

Ten tools is a well-scoped size for a PDF utility server. Each tool earns its place by covering a distinct common PDF manipulation task without redundancy or feature bloat.

Completeness4/5

The toolset covers core PDF operations: page extraction, removal, splitting, merging, rotation, watermarking, page numbering, flattening, and metadata read/write. Notable minor gaps include encryption/decryption and page reordering, but the provided surface handles most routine PDF workflows without dead ends.

Resources