Skip to main content
Glama

500Toolbox

PDF Metadata Reader

pdf-metadata
Read-onlyIdempotent

Reads a PDF's document information dictionary and returns its metadata along with page count and encryption status. Only the metadata is parsed - page content is never rendered - so this stays cheap regardless of how large the document is. Costs 2 credits per call.

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": {
      "fileUrl": "<fileUrl>"
    },
    "name": "pdf-metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileUrlYesPublicly reachable URL of the PDF to inspect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered; the description adds genuinely new behavioral facts — only the metadata dictionary is parsed, page content is never rendered, cost is size-independent, and the call consumes 2 credits. It stops short of noting failure modes (unreachable URL, non-PDF payload) or whether encrypted documents still return metadata.

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?

Three short sentences, front-loaded with the purpose, then the cost/performance rationale, then the credit charge. No filler or repetition of the title.

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?

A single-parameter read tool with no output schema; the description compensates by naming the returned fields (metadata, page count, encryption status) and disclosing per-call cost. Nothing an agent needs to decide and invoke correctly appears to be missing.

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%, with fileUrl already documented as the "Publicly reachable URL of the PDF to inspect" plus length bounds and an example. The description adds no further detail on that parameter, so with one fully documented parameter the baseline of 3 is appropriate.

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?

States a specific verb and resource ("Reads a PDF's document information dictionary") and enumerates the return payload (metadata, page count, encryption status). This clearly separates it from the pdf-to-excel/ppt/word converter siblings, which transform content rather than inspect it.

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 implied rather than stated: it's cheap "regardless of how large the document is," which hints at when to prefer it over heavier PDF processing, but there is no explicit when-to-use/when-not clause or named alternative. No sibling covers metadata reading, so the omission is tolerable, but the guidance remains inferential.

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.

Resources