Skip to main content
Glama
pdf4me
by pdf4me

AI-Process Health Card

process_health_card

Extract structured data from health card images and PDFs. Provide a file path to process and save the extracted data as JSON.

Instructions

AI-Process Health Card: extract structured data from a health card image/PDF via PDF4me POST /api/v2/ProcessHealthCard. Request JSON is only docContent, docName, and IsAsync (must be true); no customFieldKeys or CustomFieldKeys. Provide pdf_file_path (local .pdf/.png/.jpg/.jpeg as Base64). doc_name optional (defaults to basename); names without an extension get .jpeg. 202 + Location poll; saves process_health_card.json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_nameNo
output_dirNo
pdf_file_pathNo
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses the asynchronous HTTP flow ('202 + Location poll'), the output file ('saves process_health_card.json'), and the required IsAsync=true flag. It also explains doc_name extension fallback behavior. This goes well beyond a minimal description, though it omits error behavior and auth requirements.

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 a single dense paragraph with no redundant filler; every sentence adds technical value. It front-loads the core purpose. Minor redundancy appears in 'no customFieldKeys or CustomFieldKeys' (likely a case-variant typo), slightly reducing polish.

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 invocation path, async behavior, and output file, which are essential for a tool with no output schema. However, it leaves output_dir unexplained, does not describe the structure of the extracted data, and lacks guidance on error handling or prerequisites. For a simple 3-param tool, this is adequate but not fully complete.

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 description must compensate. It explains pdf_file_path (local .pdf/.png/.jpg/.jpeg as Base64) and doc_name (optional, defaults to basename, .jpeg fallback). However, output_dir is completely undocumented in both schema and description, leaving a significant gap.

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 verb and resource: 'extract structured data from a health card image/PDF'. It specifically names the document type (health card), distinguishing it from other process_* siblings. The mention of the PDF4me endpoint adds specificity.

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 description implies the tool is for health cards through its title and first sentence, and it gives operational constraints (only docContent/docName/IsAsync, no customFieldKeys). However, it does not explicitly state when to use this tool versus alternatives, nor does it mention exclusions or alternative tools for non-health-card documents.

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