Skip to main content
Glama

FreeDailyPro PDF Tools

pdf_fill_form

Read-onlyIdempotent

Fill a PDF form's fields — sets text, checkbox, dropdown, radio and option-list values and returns the filled PDF as base64 in the first text item, optionally flattened so it can no longer be edited. Only the fields you name are changed; every other field keeps its value. To clear a field send null (or an empty string). The second text item is a JSON report: fieldsSet, fieldsNotSet (name and reason) and fieldsUntouched

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": {
      "fileBase64": "<fileBase64>"
    },
    "name": "pdf_fill_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesNoField name -> value. Text/dropdown/radio: a string; option list: a string or an array of strings; checkbox: true/false. null or an empty string clears the field. Fields not named here are left untouched
checkedNoField name -> checked state, for checkbox fields (only the named checkboxes change)
flattenNoIf true, bakes the values in and removes the ability to edit them further
fileBase64YesThe PDF file, base64-encoded

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed4 schema fields changed
    • changedInput schema / properties / checked / description
      Previous value: -"Field name -> checked state, for checkbox fields"New value: +"Field name -> checked state, for checkbox fields (only the named checkboxes change)"
    • addedInput schema / properties / values / additionalProperties / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / values / additionalProperties / type
      Removed value: -"string"
    • changedInput schema / properties / values / description
      Previous value: -"Field name -> text value, for text/dropdown/radio fields"New value: +"Field name -> value. Text/dropdown/radio: a string; option list: a string or an array of strings; checkbox: true/false. null or an empty string clears the field. Fields not named here are left untouched"
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations declare a safe, idempotent, non-destructive operation, but the description adds substantial behavior the annotations cannot express: output shape (base64 in the first text item), the second JSON report with fieldsSet / fieldsNotSet (with reasons) / fieldsUntouched, and that flattening is irreversible. It stops short of describing failure modes such as an invalid base64 input or a value of the wrong type for a field.

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?

Three dense sentences, front-loaded with the primary action and return format, with no filler. The final sentence enumerating report keys could be tightened, but every clause carries information an agent needs.

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 correctly assumes responsibility for explaining both return items, and it does so. Given four parameters including nested objects, the remaining gap is small: no mention of input validation behavior or size limits on the base64 payload.

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% and the nested 'values' and 'checked' objects are already documented per-type in the schema, so the description's restatement of null/empty-string clearing adds little new meaning. The 'flatten' irreversibility note mirrors the schema description as well, leaving the baseline of 3 appropriate.

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?

States a specific verb and resource ('Fill a PDF form's fields') plus the exact field kinds it handles (text, checkbox, dropdown, radio, option-list) and what it returns. It also differentiates scope from a generic flatten operation by describing flattening as an optional post-step of filling, so an agent can tell this apart from pdf_flatten or pdf_parse_fillable_form.

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?

'Only the fields you name are changed; every other field keeps its value' and 'To clear a field send null' give clear operating context for how to invoke it safely. What's missing is routing guidance: it never says to call pdf_parse_fillable_form first to discover field names, nor when to prefer pdf_flatten over the 'flatten' flag here.

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