Skip to main content
Glama

Extract PDF tables to Excel

pdf_tables_to_excel

Extract all tables detected in a PDF into an Excel (.xlsx) workbook, one worksheet per table. Input: the PDF file's contents as a base64-encoded string (max 25 MB, 500 pages; tables need visible ruling lines or clearly aligned columns). Returns a download_url for the .xlsx file (link valid 24 hours) plus the table count. Costs 1 credit; 5 free calls per month.

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": {
      "pdf_base64": "<pdf_base64>"
    },
    "name": "pdf_tables_to_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdf_base64YesThe PDF file's contents as a base64-encoded string (max 25 MB / 500 pages).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / pdf_base64 / description
      Added value: +"The PDF file's contents as a base64-encoded string (max 25 MB / 500 pages)."
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The description adds cost (1 credit), a quota (5 free calls per month), and a 24-hour link expiry, which are real behavioral facts the annotations do not cover. However, the annotations already state destructiveHint=false and openWorldHint=false, so the safety profile is supplied. No gap large enough to raise this above a 3 given how much of the behavior is already structured.

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 core action is front-loaded in one clause, followed by input format, constraints, and returns in a tight sequence. Every clause carries distinct information (format, limits, output, cost), with no restatement or filler.

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?

For a single-parameter conversion tool this covers everything an agent needs: input encoding, size and page ceilings, detection preconditions, credit cost, quota, and link expiry. An output schema exists, so the brief mention of download_url and table count is sufficient rather than required detail.

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?

With a single parameter at 100% schema description coverage, the schema already documents pdf_base64 and its size limits. The description restates the same base64 and size constraints rather than adding new meaning such as encoding expectations or how malformed input is rejected. Baseline 3 applies when the schema carries the weight.

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 names a specific verb and resource pair: extract all detected PDF tables into an .xlsx workbook with one worksheet per table. The output shape makes it unmistakable what the tool produces. It never distinguishes itself from siblings such as file_to_markdown, but the resource pair (tables to worksheet) is specific enough that confusion is unlikely.

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 parenthetical that tables need visible ruling lines or clearly aligned columns gives a concrete precondition for when the tool will work. Size and page caps further bound applicability. It stops short of naming alternatives for PDFs that fail those conditions, so the agent must infer that a scanned or unruled PDF is a poor fit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.