Skip to main content
Glama

Fill a PDF template

anvil_fill_pdf
Destructive

Fill an Anvil PDF template (cast) with data and return the finished PDF as base64. REST: POST /fill/{castEid}.pdf. Returns { filename, byteLength, pdfBase64 }. The data object's keys are the template's field aliases.

Input Schema

NameRequiredDescriptionDefault
dataYesObject mapping the template's field aliases to values, e.g. { "name": "Sam", "date": "2026-07-16" }.
titleNoOptional title embedded in the generated PDF metadata.
cast_eidYesThe cast (PDF template) eid to fill (from anvil_get_cast).
fontSizeNoOptional default font size for filled text.
textColorNoOptional default text color as a hex string, e.g. #333333.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the annotations by disclosing the return payload shape ({ filename, byteLength, pdfBase64 }) and the REST endpoint, which matters since no output schema exists. However, it never explains the destructiveHint=true annotation or what 'destructive' means here, leaving that behavior undisclosed.

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 tight sentences with the core action front-loaded and the return contract following immediately. No filler, though the REST route adds marginal value for an agent that cannot act on it directly.

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 capably fills the gap by naming the returned fields, and the nested data object is documented. The remaining gap is the unexplained destructive annotation, which for a mutation-style tool should ideally be addressed in the description.

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 all five parameters (including the nested data object) are already documented. The description's note that 'the data object's keys are the template's field aliases' largely restates the schema's own data description, adding little new syntax or format guidance. Baseline 3 applies.

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?

States a specific verb and resource ('Fill an Anvil PDF template (cast)'), clarifies the input source and the return format. It does not, however, distinguish itself from the sibling anvil_generate_pdf, which an agent could reasonably confuse it with.

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?

Usage is only implied: the parenthetical '(from anvil_get_cast)' hints at a prerequisite workflow step, but there is no explicit when-to-use guidance or contrast with anvil_generate_pdf/anvil_get_cast. An agent must infer the sequence.

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.