Skip to main content
Glama

Fill many form fields at once

fill_form

Sets multiple form fields in a single round-trip and optionally clicks a submit element, returning per-field results to reduce repeated input calls.

Instructions

Set multiple form fields in ONE round-trip (faster than repeated form_input), then optionally click a submit element. Provide fields:[{ref,value}] from read_page/find; optional submitRef. Returns per-field {ok,error}; submitted=true means the submit element was CLICKED (not that the form was accepted). Fields are set without an actionability wait. All refs must be in ONE frame (use form_input per-field across frames).

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": {
      "tabId": "<tabId>",
      "fields": "<fields>"
    },
    "name": "fill_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesTarget tab ID (must be in the MCP group)
expectNoOptional postcondition: observes the declared UI outcome after one action; failure never repeats input
fieldsYesFields to set, in order
submitRefNoOptional ref to click after filling (submit)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose real behavior: no actionability wait, per-field {ok,error} results, and the crucial caveat that submitted=true means the element was CLICKED, not that the form was accepted. However, it says nothing about authentication, permissions, retry behavior, or whether a partial failure leaves earlier fields set. Solid but not complete for a zero-annotation mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The most decision-relevant fact (one round-trip, faster) is front-loaded, followed by the input shape, the return shape, and the semantic caveat about submitted. Every clause carries information; nothing is padding.

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 4-parameter tool with no output schema it covers purpose, the two required inputs, the optional submit, the return shape, and the multi-frame limitation well enough to call correctly. The one real gap is the nested 'expect' postcondition parameter, which the description never acknowledges even though the schema documents its fields.

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 schema already documents tabId, fields, submitRef, and expect. The description mostly restates those (refs from read_page/find, submitRef is clicked after filling) but does add one genuine cross-parameter constraint: all refs must live in ONE frame. The complex nested 'expect' postcondition object is never mentioned, so added meaning beyond the schema is modest.

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 opens with a specific verb and resource ("Set multiple form fields") plus the distinguishing scope ("ONE round-trip"), and explicitly names the sibling it replaces (repeated form_input). An agent can tell this apart from form_input and read_page without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the preferred case (bulk fill plus optional submit in one call), the alternative (form_input) with the exact condition that selects it ("use form_input per-field across frames"), and the prerequisite for the inputs ("refs from read_page/find"). Both when-to-use and when-not-to-use are present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.