Skip to main content
Glama

fill

Set a form field's value using a CSS selector, with optional clearing and Enter press, so React, Vue, and jQuery detect the change.

Instructions

Set a form field's value so React, Vue and jQuery all notice.

Works on text inputs, textareas, contenteditable, checkboxes and radios (pass 'true'/'false' for those).

Args: selector: CSS selector for the field. value: Value to set. tab_id: Exact tab id. url_pattern: Regex matched against tab URLs. clear: Empty the field first. nth: Which match to fill, 0-based. press_enter: Press Enter afterwards, for search boxes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nthNo
clearNo
valueYes
tab_idNo
selectorYes
press_enterNo
url_patternNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral transparency burden. It discloses a key behavioral trait: the value is set so React, Vue, and jQuery notice the change, rather than merely assigning a property. It also transparently describes the clear and press_enter behaviors, though it does not cover broader side effects like possible form submission or navigation.

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 well organized with a front-loaded purpose, supported element types, and a clean Args list. Each line adds useful information and there is no redundant or filler content.

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?

The description covers most aspects well, but the tab-selection mechanism is ambiguous: tab_id and url_pattern are described individually, yet it is not stated what happens if both are omitted or how they interact when both are provided. Given there are no annotations and seven parameters, this is a meaningful gap for correct invocation.

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 description coverage is 0%, so the description must compensate, and it does. Every parameter is given a meaningful one-line explanation: selector is a CSS selector, url_pattern is a regex against tab URLs, nth is 0-based, etc. This adds substantial value beyond the bare schema titles.

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 a form field's value' and explains the framework-aware behavior. It also lists the exact element types it supports, distinguishing it from siblings like click or select_option.

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?

It provides clear context by stating the supported field types (text inputs, textareas, contenteditable, checkboxes, radios) and even notes value conventions for checkboxes/radios. However, it does not explicitly mention alternatives or exclusions such as dropdowns, where select_option would be appropriate.

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