Skip to main content
Glama
mlorentedev

pdf-modifier-mcp

inspect_pdf_fonts

Search for text in a PDF and retrieve its font name, size, and coordinates 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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_pathYesAbsolute path to the PDF file to inspect.
termsYesList of text strings to search for (1-50 terms). Each term is searched as a substring.
passwordNoOptional password if the PDF is encrypted.
max_file_sizeNoMaximum allowed input file size in bytes (default: 100 MB).

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 carries full burden. It states the tool 'searches through all pages' and lists returned fields (page number, context, font name, etc.). It discloses no destructive behavior and is transparent about its read-only nature.

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?

The description is two paragraphs, concise, and front-loaded with purpose. Every sentence adds value. No wasted words.

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?

Given the presence of an output schema, the description need not detail return values, but it does list them. It covers the core functionality, use case, and output fields. It is complete for an inspection tool, though error handling or performance notes could be added.

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 coverage is 100%, so baseline is 3. The description adds context about usage for replacements but does not add new information about individual parameters beyond the 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's purpose: 'Search for specific text terms and report their font properties.' It distinguishes from siblings like 'modify_pdf_content' (modify) and 'extract_embedded_fonts' (extract fonts). The verb 'search' and resource 'PDF fonts' are specific.

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 provides explicit guidance: 'Use this tool to understand the exact font styling of text you want to replace.' This gives a clear use case. It does not explicitly mention when not to use or name alternative tools, but the context is clear.

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