Skip to main content
Glama

Fill the form once per spreadsheet row

fill_batch

Fill one copy of a PDF form for every row of a spreadsheet. Fill a form for every row of a CSV (csv_text or csv_url, up to 1000 rows). mapping is {column: field_id}; omit it to use the suggested mapping. If mapping is omitted, suggest_mapping runs first and is billed as one context fill. Batches up to 50 rows finish before this returns; larger ones keep running, poll get_batch. Each row is billed as one fill. Optional retention: ephemeral or account_default (default: the account's own setting). Ephemeral processing: source and output documents are deleted 60 to 70 minutes after the last activity on a form.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
csv_urlNo
form_idYes
mappingNo
csv_textNo
retentionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With sparse annotations (all hints false), the description carries the burden and does so thoroughly. It discloses billing per row and per context fill, synchronous vs asynchronous execution thresholds, retention modes, and ephemeral deletion timing. This adds substantial behavioral context well beyond the structured annotations, with no contradiction.

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?

The description is dense and front-loaded with the core purpose, and every sentence carries relevant operational detail. It is slightly repetitive in the opening two sentences and could benefit from bullet structuring, but it is not bloated.

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?

For a complex batch tool, the description covers the essentials: input methods, mapping behavior, row limits, async behavior, billing, retention, and cleanup. Since an output schema exists, return-value details are unnecessary. Minor omissions like error handling and exact csv_text formatting keep it just shy of 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Given 0% schema description coverage, the description compensates well: it explains csv_url/csv_text as row sources, mapping as {column: field_id} with a default behavior, and retention values/default. It does not explicitly spell out form_id or the raw text format of csv_text, but those are reasonably inferable from context and sibling tools.

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 description states a specific verb and resource: 'Fill one copy of a PDF form for every row of a spreadsheet.' It clearly distinguishes itself from single-fill siblings like fill_form by emphasizing per-row batch behavior, and the CSV input methods are named upfront.

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?

The description clearly conveys the intended use case (filling a form for many spreadsheet rows), and it provides operational guidance such as polling get_batch for batches above 50 rows and letting suggest_mapping run when mapping is omitted. However, it does not explicitly contrast with fill_form or fill_form_from_context, so it stops short of full when-not guidance.

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.