Skip to main content
Glama

fill_form

Fill a complete form with one API call using element refs or CSS selectors. Supports text, select, checkbox, and radio inputs; partial errors report per-field status for targeted retry.

Instructions

Fill a complete form with one call — the preferred way to submit any form with 2+ fields. Each field needs ref or CSS selector plus value. Supports text inputs, (by value or visible label), checkboxes (boolean), and radio buttons. Use this INSTEAD of multiple type calls or evaluate-setting select.value: one round-trip, partial errors do not abort, each field reports its own status. On per-field errors, call view_page and retry the failing fields — DO NOT escape to evaluate(querySelector) to patch individual fields; it bypasses framework state management (React, Vue) and hides real bugs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYesArray of fields to fill. Each field needs ref or selector plus value.
Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses key behaviors: partial errors do not abort, each field reports its own status, supports multiple input types, and prefers ref over selector. Could be improved by mentioning what happens after filling (e.g., form submission), but that's not critical for a fill action.

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 description is tight and well-structured: opens with the core purpose, then specifies how to use parameters, lists supported control types, gives usage guidance and error recovery steps. No extraneous words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool that fills forms with one call, the description covers all necessary aspects: input specification, behavior on partial errors, retry strategy, and warnings against using evaluate. Even without output schema, the agent has enough context to use the tool correctly.

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

Parameters5/5

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

Schema coverage is 100% but description adds significant value: explains that each field requires ref or selector plus value, clarifies value types for different controls, and recommends ref as preferred. Also notes minItems constraint implicitly. This goes beyond the schema's descriptive properties.

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?

Clearly states the action ('fill a complete form'), the resource ('form'), and positions itself as the preferred method for forms with 2+ fields. Distinguishes itself from siblings like 'type' and 'evaluate' by explicitly saying to use it instead.

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?

The description explicitly tells when to use (forms with 2+ fields) and when not to (avoid multiple type calls or evaluate). Provides clear alternative actions for error recovery: call view_page and retry failing fields, and warns against using evaluate directly.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Silbercue/public-browser'

If you have feedback or need assistance with the MCP directory API, please join our Discord server