Skip to main content
Glama
pdf4me
by pdf4me

AI-Process Credit Card

process_credit_card

Extracts structured credit card data from images or PDFs and saves the result as JSON for further processing.

Instructions

AI-Process Credit Card: extract structured data from a credit card image/PDF via PDF4me POST /api/v2/ProcessCreditCard. Body uses IsAsync (must be true) and CustomFieldKeys (PascalCase) only when custom_field_keys is non-empty—omit CustomFieldKeys when unused. Provide pdf_file_path (local .pdf/.png/.jpg/.jpeg as Base64). doc_name optional (defaults to basename); names without an extension get .png (not .pdf). 202 + Location poll; saves process_credit_card.json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
doc_nameNo
output_dirNo
pdf_file_pathNo
custom_field_keysNo
Behavior5/5

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

With no annotations, the description carries the full burden and does so well. It discloses async polling with 202 + Location, required IsAsync=true, conditional omission of CustomFieldKeys, and the .png extension fallback. This is substantial behavioral transparency.

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 dense and front-loaded with purpose; every clause conveys required information. It is somewhat run-on, but economical for the amount of technical detail provided.

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 tool with no annotations and no output schema, the description covers the endpoint, async semantics, file type constraints, naming behavior, and result file. This is sufficient for an agent to invoke it correctly, with only the minor omission of output_dir.

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

Parameters4/5

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

Despite 0% schema coverage, the description details pdf_file_path accepted file types and Base64 encoding, doc_name defaults and extension behavior, and custom_field_keys conditional inclusion/PascalCase. The only omitted parameter is output_dir, so this is not a perfect score.

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?

Description opens with a specific verb and resource: 'extract structured data from a credit card image/PDF', and names the PDF4me endpoint. This clearly differentiates it from sibling tools like process_receipt and process_invoice.

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?

It defines the exact input domain (credit card image/PDF) and conditions for custom_field_keys, giving clear context for when to use the tool. It does not explicitly mention alternative tools or when not to use it, so it misses a 5.

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