Skip to main content
Glama

unmake file tools

Fill a PDF form's fields

pdf_fill
Read-onlyIdempotent

Fill a PDF form's fields. Lists a PDF form's fields (name, kind, tooltip label, autocomplete token, options) and fills them from values keyed by field name or by autocomplete token (given-name, email, postal-code ...); dates in the form's own format, comb boxes respected, optional flatten; every written value is read back from the saved file. Owner-protected forms are filled as a plain copy. Same code as the form-filler page. Use when: An agent has the answers and a fillable PDF form (tax, school, rental, job, government). Not for: Flat PDFs without fields; XFA-only forms. File types: pdf. Max 30 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pdf_fill"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnly/idempotent/non-destructive; the description adds real behavioral detail beyond them: dates are written in the form's own format, comb boxes are respected, flatten is optional, owner-protected forms are filled as a plain copy, and every written value is read back from the saved file as verification. It stops short of stating where the resulting file lands or how write failures surface, and 'readOnlyHint: true' sits in mild tension with a tool that writes values into a document, though no outright contradiction is stated.

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?

Front-loaded with the verb and capability, then usage, exclusions, file types, and limits in a tight semicolon-separated block. Dense but no sentence is filler; the parenthetical enumerations (field attributes, token examples) are the bulkiest part yet still informative.

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 file-in/file-out tool with no output schema, the description covers inputs sources, edge cases, and verification adequately. The notable hole is the undocumented shape of the nested 'options' object that must carry the field values, plus no mention of where the filled file is returned, which matters for a tool whose whole job is producing that file.

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 coverage is 100%, so the baseline is 3, and the description does add meaning about how values are keyed (by field name or by autocomplete token such as given-name, email, postal-code). However, the schema exposes no explicit values/fields parameter, so the agent must infer that the fill payload lives inside the nested 'options' object, which the description never maps out.

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 first sentence names a specific verb and resource (fill a PDF form's fields), and the second adds a second concrete capability (listing a form's fields with name, kind, tooltip label, autocomplete token, options). An agent can tell this apart from pdf_sign or pdf_tables without opening any schema.

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?

Explicit routing is given in both directions: 'Use when: An agent has the answers and a fillable PDF form (tax, school, rental, job, government)' and 'Not for: Flat PDFs without fields; XFA-only forms.' The only gap is that no alternative tool is named for the excluded cases, so the agent must search for a fallback itself.

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