fill_form_oneshot
One-shot demo/quick-fill: upload a PDF (or a Word DOCX, converted to PDF; as content_base64 OR file_url, exactly one; at most 20 MB) and a values map keyed by each field's detected label text (the only thing knowable before detection runs), and get back a filled PDF in one call — no persisted document_id, no separate detect_fields/fill_document round trip.
asks firstChanges something in your workspace, so clients ask you before running it.
What it does
One-shot demo/quick-fill: upload a PDF (or a Word DOCX, converted to PDF; as content_base64 OR file_url, exactly one; at most 20 MB) and a values map keyed by each field's detected label text (the only thing knowable before detection runs), and get back a filled PDF in one call — no persisted document_id, no separate detect_fields/fill_document round trip. Low-confidence (flagged) fields are NEVER filled here; they come back in warnings instead, so check warnings for anything that still needs a human/agent review before treating the result as final. Per-field results follow the same filled/formatted/overflowed/skipped semantics as fill_document. A choice question (e.g. Title: Mr/Mrs/Miss/Ms) is answered by its label: values["Title"] = "Ms" (a list for a multi-select); groups says which options were ticked, and an unsure grouping comes back in group_warnings, unfilled. A box for a government ID number (passport, visa grant, tax file, social security, driver licence) is filled in full in the PDF, but its rendered_text comes back masked to its last 3 characters. Masked values (•••123) can't be sent back: ask the person for the full number.
Inputs
| Name | Type | Description |
|---|---|---|
content_base64 | string | Base64-encoded PDF or DOCX bytes. |
file_url | string | Instead of content_base64: a public https:// link to the file (e.g. a chat attachment's download URL). AppliFlo downloads it: no private or internal addresses, at most 3 redirects, 20 MB and 20 seconds. The type is read from the file itself, never the link.Up to 2048 characters |
values | map of string | number | boolean | string[] | Map of the field's label text -> value, and a choice question's label -> option or [options]. |
deterministic | boolean | |
idempotency_key | string | Same key = same call: a retry (e.g. after a timeout) returns the first result instead of doing it again. The same key with other arguments is refused (422 idempotency_key_reused).Up to 255 characters |
Call it
Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fill_form_oneshot",
"arguments": {}
}
}Input schema
The JSON Schema the server lists for this tool in tools/list.
{
"type": "object",
"properties": {
"content_base64": {
"type": "string",
"minLength": 1,
"description": "Base64-encoded PDF or DOCX bytes."
},
"file_url": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"description": "Instead of content_base64: a public https:// link to the file (e.g. a chat attachment's download URL). AppliFlo downloads it: no private or internal addresses, at most 3 redirects, 20 MB and 20 seconds. The type is read from the file itself, never the link."
},
"values": {
"type": "object",
"description": "Map of the field's label text -> value, and a choice question's label -> option or [options].",
"additionalProperties": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"deterministic": {
"type": "boolean"
},
"idempotency_key": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"description": "Same key = same call: a retry (e.g. after a timeout) returns the first result instead of doing it again. The same key with other arguments is refused (422 idempotency_key_reused)."
}
}
}