Skip to main content
Glama

get_pdf_metadata

Extract metadata such as title, author, and page count from any PDF by providing its base64 content. Returns a JSON object with the extracted fields.

Instructions

Get metadata (title, author, page count, etc.) from a PDF.

Args: pdf_base64: Base64-encoded PDF file.

Returns: JSON string with metadata fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pdf_base64Yes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description must fully disclose behavior. It mentions the return type (JSON string) and content (metadata fields), but lacks details on error handling, file size limits, or processing side effects. Basic disclosure but incomplete.

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 concise, with a front-loaded purpose statement and a compact arg/return listing. Every sentence adds value without redundancy.

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

Completeness5/5

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

Despite low schema coverage, the description fully covers the single parameter and mentions the return format (JSON). The presence of an output schema reduces the need to detail return values. For a simple tool, it is complete.

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 coverage is 0%, so the description must compensate. It explains pdf_base64 as 'Base64-encoded PDF file', adding meaning beyond the schema's type and name. This clarifies the input format.

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 clearly states the verb 'get' and resource 'metadata from a PDF', distinguishing it from siblings like extract_text_from_pdf. It lists the specific metadata fields (title, author, page count) which further clarifies the purpose.

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 description implies usage for retrieving PDF metadata, but does not explicitly mention when to use this tool over alternatives like get_pdf_page_count or extract_text_from_pdf. No exclusions or context are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dokmatiq/docgen-sdks'

If you have feedback or need assistance with the MCP directory API, please join our Discord server