Skip to main content
Glama
mlorentedev

pdf-modifier-mcp

inspect_pdf_fonts

Search PDF for text terms and retrieve font details like name, size, and position to ensure replacements match the document style.

Instructions

Search for specific text terms and report their font properties.

Use this tool to understand the exact font styling of text you want to replace. This ensures replacements will match the surrounding document style as closely as possible.

The tool searches through all pages and returns matches with:

  • Page number where the term was found

  • The search term that matched

  • Surrounding context (first 100 characters)

  • Font name (e.g., "Helvetica-Bold", "Times-Roman")

  • Font size in points

  • Origin coordinates for precise positioning

Args: input_path: Absolute path to the PDF file to inspect. terms: List of text strings to search for (1-50 terms). Each term is searched as a substring. password: Optional password if the PDF is encrypted.

Returns: JSON string with all matches and their font properties. Returns empty matches array if no terms are found.

Example: inspect_pdf_fonts("/path/to/doc.pdf", ["Invoice", "$99.99", "Total"])

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_pathYes
termsYes
passwordNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully explains behavior: it searches all pages, returns matches with properties like page number, font, size, coordinates, and returns a JSON string. It implies a read-only operation with no side effects.

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 description is well-structured with purpose, usage guidance, return fields, and args. It is fairly concise, though the Args section could be slightly condensed. The example is helpful.

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?

Given the tool's complexity, the description covers input parameters, return format, and the use case for PDF font inspection. The siblings are modification tools, so this inspection tool is contextually complete.

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

Parameters5/5

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

Schema description coverage is 0%, but the description adds detailed semantics: input_path as absolute path, terms as list of 1-50 substrings, password as optional. It also includes an example usage, fully compensating for the lack of schema descriptions.

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 tool searches for specific text terms and reports font properties. It distinguishes itself from sibling modification tools by focusing on inspection only.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says to use this tool to understand font styling before replacement, providing clear context. However, it does not explicitly mention when not to use it or alternative tools.

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/mlorentedev/pdf-modifier-mcp'

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