Skip to main content
Glama
pdf4me
by pdf4me

convert_pdf_to_excel

Convert a local PDF file into an Excel XLSX spreadsheet. Supports OCR, merging sheets, and extraction quality settings to suit your data needs.

Instructions

Convert a local PDF file to Excel (XLSX) using the PDF4me ConvertPdfToExcel API. Provide the file path to the PDF. Options: quality (Draft/High), merge_all_sheets, language, OCR when needed, and optional output path. Output is always XLSX.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNoDocument language hint for OCR/extraction.English
file_pathYesLocal path to the PDF file to convert.
output_dirNo
quality_typeNoDraft or High quality for extraction.Draft
ocr_when_neededNoEnable OCR when the API determines it is needed.
merge_all_sheetsNoMerge content into a single sheet when supported.
output_file_nameNo
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does disclose that output is always XLSX and lists controllable options (quality, merge_all_sheets, language, OCR, optional output path), which gives some transparency. However, it does not mention possible side effects such as file overwriting, external API dependencies/limits, or what happens when optional output path is omitted. These gaps prevent a higher score.

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 compact, two sentences, with the first sentence front-loading the core purpose and the second summarizing options. It avoids excessive detail and is easy to scan. It loses one point because the list of options is a run-on phrase rather than structured, making it slightly harder to parse quickly, but overall it is efficient.

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?

The tool has 7 parameters, no output schema, and no annotations, so the description carries a heavy burden. It covers the main conversion purpose and parameter options, but it does not explain what the return value is (e.g., the output file path, success/failure), where the output is written if no output path is given, or prerequisites like file accessibility. These missing details reduce completeness.

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 71% (5 of 7 properties have descriptions). The description adds meaning by translating parameter names into plain language (e.g., 'quality (Draft/High)' clarifies the enum, 'OCR when needed' connects to ocr_when_needed, 'merge_all_sheets' is restated). It also introduces the concept of an 'optional output path,' which maps loosely to output_dir/output_file_name. However, it does not clarify the distinction between output_dir and output_file_name, and these two parameters remain under-explained. Thus, some but not full semantic value is added.

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 function: 'Convert a local PDF file to Excel (XLSX) using the PDF4me ConvertPdfToExcel API.' This includes a specific verb (convert), resource (PDF), target format (Excel/XLSX), and even names the API. It distinguishes effectively from sibling conversion tools like convert_pdf_to_word or convert_pdf_to_powerpoint by specifying the output format.

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 implies when to use this tool: whenever a user needs to convert a PDF to Excel, and it sets context by stating the required input ('Provide the file path to the PDF'). It does not explicitly name alternatives or exclusions, but the intended use is clear from the purpose, giving the user unambiguous context without needing further guidance.

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/pdf4me/pdf4me-mcp'

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