Skip to main content
Glama

fill

Set a form field's value by selector and trigger input/change events so browser automation updates the page correctly.

Instructions

Set the value of the form field matching selector and fire input/change.

Input Schema

NameRequiredDescriptionDefault
valueYes
selectorYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.46

TDQS

B3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that input and change events are dispatched (important for framework-driven pages), but omits whether the existing value is replaced or appended, whether the element is scrolled into view, and how failures are reported.

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?

One tight sentence with the operation front-loaded and no filler. The doubled backticks around selector are a minor formatting blemish but cost no comprehension.

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

Completeness3/5

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

An output schema exists, so return values need not be explained. However, with zero annotations and zero schema descriptions on a mutation-style DOM interaction, the description should say more about value replacement semantics and failure behavior to be fully sufficient.

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

Parameters2/5

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

Schema description coverage is 0% for both required parameters. The description only says the selector 'matches' a form field; it does not specify accepted selector syntax (CSS vs XPath) or clarify that value is a raw string assignment rather than e.g. key-by-key typing.

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 ('Set the value of the form field matching selector') plus a behavioral effect (fire input/change), which clearly separates it from siblings like click or read_text. It does not explicitly name an alternative, but the resource-level specificity is enough to identify the operation.

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

Usage Guidelines2/5

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

No guidance on when to use this instead of click or evaluate, no prerequisites such as the element needing to be visible, enabled, or already focused, and no mention of what happens when the selector matches nothing or multiple elements.

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