Skip to main content
Glama

Inspect PDF Metadata & Pages

pdf_info
Read-only

Inspect a local PDF for page count, dimensions, file size, and metadata without uploading the file.

Instructions

Locally inspect a PDF file (page count, dimensions, file size, metadata) with zero file upload. Powered by HandleMyFile engine.

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": {
      "inputPath": "<inputPath>"
    },
    "name": "pdf_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputPathYesAbsolute or workspace path to the local PDF file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior4/5

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

The readOnlyHint annotation already covers the safety profile, and the description adds genuinely new behavioral context beyond it: the work happens locally with no file upload, which matters for privacy and latency expectations. It also enumerates the returned data, partially standing in for the absent output schema.

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 with the verb, resource, and the returned fields, which is exactly the right ordering. The trailing 'Powered by HandleMyFile engine' is vendor branding that does not help an agent decide or invoke, so the definition is not entirely waste-free.

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 single-parameter, read-only inspection tool with no output schema, the description supplies the missing return-value information by listing page count, dimensions, file size, and metadata. What remains thin is failure behavior for non-PDF or missing paths, but the definition is otherwise sufficient to call it correctly.

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?

Only one parameter (inputPath) and schema description coverage is 100%, so the schema already fully documents it. The description adds no path syntax, workspace-relative resolution, or file-type/error constraints, which is why this sits at the baseline rather than higher.

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 (inspect) and resource (PDF file) and enumerates what is surfaced: page count, dimensions, file size, metadata. That is enough to tell it apart from pdf_strip_metadata or pdf_compress, though no sibling is named explicitly, so sibling differentiation is inferred rather than stated.

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 prescribed: 'inspect' plus the metadata list suggests calling this before a transform, and 'zero file upload' hints at local-privacy scenarios. There is no explicit when-to-use, when-not-to-use, or named alternative such as image_info/media_info for non-PDF inputs.

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