Skip to main content
Glama

Cofferdock

Fill a PDF form (or list its fields)

fill_pdf_form
Idempotent

Fill a PDF form (or list its fields). Fills the fields of an existing PDF form (AcroForm) with the values in data. Without data (or with inspect=true) it returns the list of fields instead, so you know their names. Set flatten=true to make the result non-editable.

Costs 1 credit per call.

Returns a temporary download link (valid 15 minutes). Always include that link in your reply so the user can open or download the file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoField values: { "fieldName": "value", "checkbox": true }. As a query parameter it must be a JSON string.
fileYesThe PDF, base64-encoded.
flattenNotrue = turn the filled fields into plain page content so they can no longer be edited. Default false (the form stays editable).
inspectNoOnly list the fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the credit cost ('Costs 1 credit per call'), the temporary download link behavior ('valid 15 minutes'), and the flatten side effect ('make the result non-editable'). These are meaningful operational details not present in the annotations or schema.

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 compact and front-loaded with the core behavior, followed by cost and output-link instructions. The first sentence slightly repeats the title, but every other sentence adds necessary information without padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by specifying the return value ('temporary download link valid 15 minutes') and instructing the agent to include it in the reply. It covers the main behavioral modes and cost, leaving little ambiguity for a tool of this complexity.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds value by explaining the relationship between `data` and `inspect` ('Without `data` (or with inspect=true) it returns the list of fields') and by clarifying the purpose of `flatten` ('make the result non-editable'). This goes beyond the schema's individual parameter descriptions.

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 states a specific verb and resource: it 'Fills the fields of an existing PDF form (AcroForm) with the values in `data`.' It also clearly distinguishes the field-listing mode ('Without `data` (or with inspect=true) it returns the list of fields'), which separates it from sibling PDF tools like merge_pdfs or extract_pdf_text.

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 when to use the tool and how to switch modes: pass `data` to fill, omit it or set `inspect=true` to list fields. It does not explicitly name alternative tools or state when not to use it, but the mode guidance is practical and sufficient for an agent.

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