Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Get Pdf Object Information

get_pdf_object_information

Retrieve the content and type details of a specific PDF object by object number to analyze internal document structure, object relationships, and embedded actions.

Instructions

Get detailed information of specified object in PDF file

Extract object content and type information for specific object number in PDF. Can be used for in-depth analysis of PDF internal structure and object relationships.

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": {
      "file_path": "<file_path>",
      "object_number": "<object_number>"
    },
    "name": "get_pdf_object_information"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to PDF file
object_numberYesPDF object number

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the burden, and the verbs "Get"/"Extract" at least signal a non-mutating read. It does not disclose behavior for an invalid or missing object_number, whether password-protected or unloaded files fail, or any caching interaction implied by sibling tools like clear_pdf_cache and set_pdf_password.

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?

Short and front-loaded, with the resource named in the opening clause. The second and third lines restate the same idea with slight redundancy ("detailed information" vs "Extract object content and type information"), costing a little economy.

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?

An output schema exists, so return shape is covered, and both parameters are documented in the schema. What remains missing is guidance on obtaining a valid object number, error behavior, and any prerequisite about loading or decrypting the PDF — meaningful gaps for a low-level introspection tool.

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 only two required parameters, so the schema already documents file_path and object_number fully. The description reinforces that object_number targets an object within a PDF but adds no format, range, or discovery guidance beyond the schema baseline.

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?

The first line names a specific verb and resource ("Get detailed information of specified object in PDF file") and the second narrows it to "object content and type information for specific object number in PDF." That is enough to separate it from siblings like get_trailer_object or get_page_index_by_pdfobjnum, though "detailed information" on its own is vague and only rescued by the follow-up sentence.

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?

"Can be used for in-depth analysis of PDF internal structure and object relationships" implies a context but stops short of telling the agent when to prefer this over get_trailer_object or get_page_index_by_pdfobjnum. No exclusions, no prerequisites (e.g., whether the PDF must be loaded/unlocked first) are stated.

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