Skip to main content
Glama

Fill a PDF form

fill_pdf_form

Fill a PDF's form fields from a map of field -> value; optionally flatten. Returns a file_id and a ~1h URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pdfYesA file_id from a prior tool result, or a base64-encoded PDF.
fieldsYesMap of field name to value.
flattenNoFlatten the form after filling (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior2/5

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

Describes the return value but omits important behavioral details such as whether the original PDF is modified or a new file is created, how missing or invalid fields are handled, and what 'flatten' actually does. Annotations indicate non-destructive, but this is not conveyed in the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence with no filler. Conveys the core action, input, optional flag, and output efficiently.

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?

Within the context of many PDF tools, it distinguishes from reading but not from merging or other modifications. No output schema, so response structure is unclear. Does not mention error behavior or edge cases, making it only partially complete for an agent.

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 fully documents all three parameters. Description adds 'field -> value' for fields and 'optionally flatten' for the boolean, but does not define flatten's effect or the expected value types in the map, leaving some ambiguity.

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?

Clearly states the action (fill form fields), the input mapping (map of field -> value), optional flattening, and the return value (file_id and ~1h URL). Distinct from sibling tools like read_pdf_form which reads forms.

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?

Lacks explicit guidance on when to use this tool versus reading or editing PDFs, though the function name and description make the primary use case obvious. No mention of when to prefer read_pdf_form or other PDF tools.

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