Skip to main content
Glama
hilvana-mcp

hilvana-mcp

Official

Inspect a PDF

pdf_inspect
Read-only

Inspect PDF structure to retrieve page count, sizes, rotation, encryption, metadata field names, signatures, and file size without extracting text or images.

Instructions

Returns structure only: page count, page sizes and rotation, encryption, which metadata fields are set (names only, never their values), signatures and file size. Never returns text or images.

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": {
      "path": "<path>"
    },
    "name": "pdf_inspect"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.16.2

TDQS

A3.9/5.0
Behavior4/5

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

The annotations only mark this as a non-destructive, closed-world read, so the description adds real context: the exact fields the response will contain, the deliberate choice to report metadata field names but never their values, and the fact that text and images are excluded. It does not cover failure behavior, such as corrupted files, empty paths, or password-protected documents beyond merely reporting that encryption is present.

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 tight sentences with no filler. The return contract is front-loaded and easy to scan, and the closing negative constraint is placed last so it reads clearly as a boundary.

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?

Because there is no output schema, the description has to define the response shape itself, and it does so thoroughly, including a privacy-preserving detail about metadata. The remaining gaps are the undocumented `path` semantics and the lack of any error or edge-case guidance, which matter only modestly for a simple read-only inspection tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%: the single `path` parameter carries no description in the schema, and the description says nothing about it. Whether it is an absolute or relative filesystem path, a URI, or a handle from pdf_list matters a lot for correct invocation, and neither source clarifies it.

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 opens with a precise scope statement, "Returns structure only," then enumerates exactly what is returned: page count, page sizes and rotation, encryption, metadata field names, signatures, and file size. An agent can tell this apart from a listing tool like pdf_list without opening either schema.

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 when to use it, namely when you need structural facts about a single document without its content, and the sentence "Never returns text or images" rules out that use case. However, it never names a sibling as the alternative for text extraction and states no prerequisites, such as whether the file must already exist locally or what to do with an encrypted PDF.

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