flatten_pdf
Flatten fillable form fields into permanent page content so answers can't be edited. Returns base64.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF file, base64-encoded (max 10 MB) |
Flatten fillable form fields into permanent page content so answers can't be edited. Returns base64.
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The PDF file, base64-encoded (max 10 MB) |
Changes observed during successful MCP inspections. Dates show when Glama detected each change.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses that the operation is a destructive, non-editable transformation ('permanent page content', 'answers can't be edited') and states the return format ('Returns base64'). It lacks details about irreversibility or side effects, but the core behavior is clearly disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that front-loads the action and effect, then adds the essential return format. Every word earns its place with no redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter tool with no output schema, the description is nearly complete: it explains the transformation, the permanence of the output, and the return format. It could mention irreversibility or input requirements, but the schema covers the size limit and the description covers the core behavior.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, and the schema already documents both the base64 encoding and the 10 MB limit. The description adds no parameter-level detail beyond identifying the input as a PDF, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource ('Flatten fillable form fields into permanent page content') and clearly states the intended effect. It is distinct from all sibling PDF tools, none of which relate to flattening forms.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description conveys the purpose and the outcome ('so answers can't be edited'), which implies when to use it. It does not explicitly name alternatives or exclusion conditions, but the tool is unique among the siblings, so the context is sufficient.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.
Each tool targets a distinct PDF operation: page numbering, watermarking, flattening, metadata read/write, and various page selection/rearrangement tasks. Although extract_pages, remove_pages, and split_pdf all involve page ranges, their descriptions clearly differentiate extracting a subset, deleting a subset, and partitioning into multiple outputs.
All tool names follow a consistent verb_noun pattern in lowercase snake_case, such as add_page_numbers, get_pdf_metadata, merge_pdfs, and rotate_pdf. The pattern is predictable across the entire set, with no mixed conventions or vague verbs.
Ten tools is a well-scoped size for a PDF utility server. Each tool earns its place by covering a distinct common PDF manipulation task without redundancy or feature bloat.
The toolset covers core PDF operations: page extraction, removal, splitting, merging, rotation, watermarking, page numbering, flattening, and metadata read/write. Notable minor gaps include encryption/decryption and page reordering, but the provided surface handles most routine PDF workflows without dead ends.