Skip to main content
Glama

PDF Form Inspector & Field Filler API

pdf_form_filler_api
Read-onlyIdempotent

Inspect fillable PDF form fields (names, types, current values, dropdown and checkbox choices) or programmatically populate PDF forms from a JSON key-value map with optional permanent flattening. Deterministic offline processing, zero AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.01/call via x402 at https://radarbg.com/x402/pdf-form-filler-api.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "fill",
      "values": {
        "vat_id": "DE123456789",
        "company_name": "Acme Logistics GmbH"
      },
      "fileBase64": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgovQWNyb0Zvcm0gNyAwIFIKPj4KZW5kb2JqCjQgMCBvYmoKPDwKL1R5cGUgL1BhZ2UKL1Jlc291cmNlcyA8PAo+PgovTWVkaWFCb3ggWyAwLjAgMC4wIDU5NSA4NDIgXQovUGFyZW50IDIgMCBSCi9Bbm5vdHMgWyA1IDAgUiA2IDAgUiBdCj4+CmVuZG9iago1IDAgb2JqCjw8Ci9UeXBlIC9Bbm5vdAovU3VidHlwZSAvV2lkZ2V0Ci9GVCAvVHgKL1QgKGNvbXBhbnlcMTM3bmFtZSkKL1YgKCkKL1JlY3QgWyA3MiA3MjAgMzIwIDc0NCBdCi9EQSAoXDA1N0hlbHYgMTIgVGYgMCBnKQo+PgplbmRvYmoKNiAwIG9iago8PAovVHlwZSAvQW5ub3QKL1N1YnR5cGUgL1dpZGdldAovRlQgL1R4Ci9UICh2YXRcMTM3aWQpCi9WICgpCi9SZWN0IFsgNzIgNjgwIDMyMCA3MDQgXQovREEgKFwwNTdIZWx2IDEyIFRmIDAgZykKPj4KZW5kb2JqCjcgMCBvYmoKPDwKL0ZpZWxkcyBbIDUgMCBSIDYgMCBSIF0KL05lZWRBcHBlYXJhbmNlcyB0cnVlCj4+CmVuZG9iagp4cmVmCjAgOAowMDAwMDAwMDAwIDY1NTM1IGYgCjAwMDAwMDAwMTUgMDAwMDAgbiAKMDAwMDAwMDA1NCAwMDAwMCBuIAowMDAwMDAwMTEzIDAwMDAwIG4gCjAwMDAwMDAxNzggMDAwMDAgbiAKMDAwMDAwMDI5NiAwMDAwMCBuIAowMDAwMDAwNDMyIDAwMDAwIG4gCjAwMDAwMDA1NjIgMDAwMDAgbiAKdHJhaWxlcgo8PAovU2l6ZSA4Ci9Sb290IDMgMCBSCi9JbmZvIDEgMCBSCj4+CnN0YXJ0eHJlZgo2MjkKJSVFT0YK"
    },
    "name": "pdf_form_filler_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOperation mode: inspect (list fields) or fill (populate values). Defaults to fill if values is provided.
valuesNoKey-value map of PDF form field names to values (for fill mode).
flattenNoWhen true in fill mode, flatten filled fields permanently into page content.
fileNameNoOptional original PDF filename.
fileBase64NoBase64-encoded fillable PDF form (max 15 MB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, but the description adds real context the annotations cannot convey: deterministic offline processing, zero AI involvement, no data retention, a 15 MB input ceiling, and concrete rate/auth limits (5 calls/day per IP free, X-API-Key paid tier, or x402 per-call). It also warns that `flatten` is permanent, which matters for a read-only-annotated tool that transforms a document.

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 capability statement is front-loaded and dense, and the pricing/auth sentence earns its place because an agent needs to know a key or per-call payment may be required. The two long URLs are the only mildly bloated element, though they are actionable.

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?

For a five-parameter, nested-object tool with no output schema, the description explains inputs and cost but never states what a call returns — presumably a base64 PDF in fill mode and a field listing in inspect mode, but the agent must guess the response envelope. The behavioral and billing picture is otherwise well covered.

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 100%, so every parameter is already documented, and the baseline of 3 applies. The description adds mode-level meaning (what inspect surfaces, that fill consumes a JSON key-value map, that flattening is irreversible) but no field-naming or value-format guidance beyond the schema.

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 two concrete operations (inspecting form field names/types/values/choices, and populating fields from a JSON key-value map) against a specific resource (fillable PDF forms), which is far more than a restatement of the name. It does not, however, distinguish this tool from adjacent siblings such as pdf_flatten or pdf_ocr, so an agent must infer the boundary itself.

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 inspect-vs-fill split is implied by the operation descriptions, and the schema's note that fill is the default when `values` is supplied gives some routing help. There is no explicit when-to-use/when-not guidance and no named alternative for overlapping work like flattening or OCR.

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