Skip to main content
Glama

Fill a PDF form

fill_pdf_form
Read-onlyIdempotent

Fill an interactive PDF form's text fields, checkboxes, dropdowns, and radios by field name, with an option to flatten the result. Pass inspectOnly to list the fields first.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "fill_pdf_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPDF as base64, a data URI, or a public URL. Private addresses are refused. 10 MB cap.
valuesNoField name to value. Checkboxes take booleans; dropdowns and radios take one of their options.
flattenNoFlatten the form so fields become plain page content.
inspectOnlyNoList the form fields without changing anything.

Output Schema

NameRequiredDescriptionDefault
pdfNoFilled PDF bytes, base64 encoded.
fieldsNoDetected form fields (inspectOnly).
filledYes
mimeTypeYes
pageCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is carried by structured data. The description adds meaningful behavior beyond that: the optional flattening step and the fact that inspectOnly inspects without changing anything. It stops short of describing how invalid field names or type mismatches are handled, which matters for a form-filling operation.

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?

Two sentences, zero filler, with the core capability front-loaded and the inspection workflow placed second where it belongs. Every clause carries information an agent can act on.

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 an output schema present, the description need not explain return values, and the annotations cover the side-effect profile, so the remaining needs are behavioral. The main residual gap is failure semantics for unknown or mistyped field values, which is minor against an otherwise complete definition.

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 in the schema, including the boolean-vs-option value typing. The description restates the field-name keying and the inspectOnly usage ordering but adds no format or validation detail beyond what the schema provides, making baseline 3 appropriate.

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 a specific verb ("Fill") and resource ("interactive PDF form") and enumerates the field types handled (text fields, checkboxes, dropdowns, radios), which is far more precise than the bare title. It does not explicitly distinguish itself from siblings like inspect-style or edit-style PDF tools, but the purpose is unambiguous on its own.

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?

"Pass inspectOnly to list the fields first" gives a concrete workflow hint for the discover-then-fill pattern, which is genuinely useful. There is no guidance on when not to use it or how it compares to the other PDF tools, and nothing about what happens when a supplied field name does not exist in the form.

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.