Skip to main content
Glama

PDF Efforts

PDF tables to Excel

pdf_to_excel
Idempotent

Detect tables in a digitally created PDF (statements, invoices, reports) and save them as an .xlsx workbook or .csv. Numbers become real numbers.

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": {
      "file": "<file>"
    },
    "name": "pdf_to_excel"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF.
formatNoxlsx

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare idempotent=true, destructive=false and openWorld=true, so the safety profile is covered. The description adds real behavioral value with 'digitally created' (scanned PDFs will not yield tables) and 'Numbers become real numbers' (typed cells, not text). It omits what happens when no tables are found and any limits on table count or size.

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?

Two sentences, both front-loaded with the operation first and the output second. Every clause carries information: the input constraint, the example use cases, the output formats, and the numeric typing behavior.

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?

An output schema exists, so return values need not be described, and the annotations carry the mutation-safety story. Still, for a conversion tool with a nested file input the description says nothing about failure modes on scanned or text-less PDFs, which is the most likely cause of a wrong tool selection.

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 50%: the nested file object's properties are documented in the schema, but the top-level 'file' wrapper and 'format' have no schema descriptions. The description partially compensates by naming both xlsx and csv as outputs, which gives meaning to the format enum, but it does not explain how the three mutually exclusive file sources (url, base64, file_id) should be chosen.

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 gives a specific verb and resource ('Detect tables in a digitally created PDF') plus both output formats (.xlsx/.csv), so the agent can distinguish it from pdf_to_text or pdf_to_word. It stops short of naming any sibling explicitly, which keeps it at 4 rather than 5.

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

Usage Guidelines3/5

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

The qualifier 'digitally created PDF' implicitly steers the agent away from scanned documents (where ocr_pdf would be needed) and the parenthetical examples (statements, invoices, reports) hint at suitable inputs. However, no alternative tool is named and there is no explicit when-not-to-use statement.

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.

Resources