Skip to main content
Glama
kareemaly

MD-PDF MCP Server

by kareemaly

get_pdf_info

Extract PDF file information including page count and metadata to analyze document structure and properties for processing workflows.

Instructions

Get information about a PDF file (number of pages, metadata, etc.).

Args: working_dir: Absolute path to the working directory for file operations pdf_file_path: Path to the PDF file relative to working_dir

Returns: Information about the PDF file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
working_dirYes
pdf_file_pathYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does but doesn't describe behavioral traits such as error handling (e.g., what happens if the file doesn't exist), performance characteristics, or any side effects. The description is functional but lacks depth for safe and effective use.

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 appropriately sized and front-loaded, with the core purpose stated first, followed by parameter and return sections. Each sentence adds value, but the 'Returns' section is vague ('Information about the PDF file') and could be more specific without sacrificing conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (a file operation tool with 2 parameters), no annotations, and no output schema, the description is incomplete. It covers the basics but lacks details on return values (beyond a vague statement), error conditions, or integration with sibling tools. This leaves gaps for effective tool selection and invocation.

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 0%, so the schema provides no parameter descriptions. The description adds value by explaining the parameters in the 'Args' section: 'working_dir' as the absolute path for file operations and 'pdf_file_path' as the relative path. However, it doesn't elaborate on formats, constraints, or examples, leaving some ambiguity.

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 description clearly states the tool's purpose: 'Get information about a PDF file (number of pages, metadata, etc.)'. It specifies the verb ('Get information') and resource ('PDF file'), with examples of what information is retrieved. However, it doesn't explicitly differentiate from sibling tools like 'extract_text_from_pdf', which might be a related but distinct operation.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'extract_text_from_pdf' or clarify scenarios where this tool is preferred (e.g., for metadata vs. content extraction). Usage is implied by the purpose but lacks explicit context or exclusions.

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/kareemaly/md-pdf-mcp'

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