Skip to main content
Glama
pdf4me
by pdf4me

Extract Form Data From PDF

extract_form_data_from_pdf

Extract all PDF form fields and values into a structured JSON file for further processing and analysis.

Instructions

Extract all PDF form fields and values via PDF4me /api/v2/ExtractPdfFormData. Input is pdf_file_path; optional request_doc_name and output_dir. Saves extracted_form_data.json with the full API response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
output_dirNo
pdf_file_pathYes
request_doc_nameNo
Behavior4/5

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

With no annotations provided, the description carries the burden. It discloses that the tool calls an external API and saves a file (extracted_form_data.json), which is useful behavioral context. It does not mention potential side effects like overwriting files, but the core behavior is adequately described.

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 sentences and directly states the action, input parameters, and output artifact. No wasted words, information is front-loaded.

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 description covers the main inputs and output side-effect, but with no output schema it does not elaborate on the JSON response structure or the meaning of request_doc_name. It is adequate for a straightforward extraction tool but leaves some semantic gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It mentions the three parameter names and marks two as optional, but does not explain the purpose of request_doc_name. Only output_dir is indirectly described via the saved file. The description adds minimal semantic value beyond the schema.

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 extracts all PDF form fields and values, naming the specific API endpoint. This distinguishes it from sibling tools like extract_text_from_image or extract_pages_from_pdf.

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 gives clear context on what inputs are used and that it saves a JSON file, but it does not explicitly state when to use this tool over alternatives. The focus on 'PDF form fields' implies the use case, though no exclusions are given.

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