Skip to main content
Glama

form_input

Set values for input, textarea, select, checkbox, and contenteditable elements using a page reference, so browser automation can fill forms reliably.

Instructions

Set the value of a form element identified by ref (from read_page/find). Handles input/textarea/select/checkbox/contenteditable.

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": {
      "ref": "<ref>"
    },
    "name": "form_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesRef from read_page/find.
tabIdNoTab ID to target. Omit to act on the current tab.
valueNoValue to set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 behavioral burden. It discloses that the tool sets values and supports input, textarea, select, checkbox, and contenteditable elements, but it does not explain how `value` is interpreted per element type, whether events are fired, or what happens to existing values.

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 two tightly written sentences with no filler. The core operation is front-loaded, and the supported element types are compactly listed.

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?

For a three-parameter browser form tool with full schema coverage but no annotations or output schema, the definition covers the basic purpose and supported element types. It is not fully complete because it omits practical semantics for setting checkboxes and selects, and does not describe success or failure behavior.

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%, and the schema already documents `ref`, `tabId`, and `value`. The description adds some context by noting that `ref` comes from `read_page/find`, but it does not add meaning beyond the schema for `tabId` or how `value` should be formatted for each element type.

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?

The description states a specific verb and resource: set the value of a form element identified by `ref`. It is clear about scope and explicitly lists supported element types, but it does not directly differentiate itself from sibling automation tools.

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

Usage Guidelines3/5

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

The description implies usage by saying the `ref` comes from `read_page/find`, which gives the agent a prerequisite workflow. It does not state when to avoid this tool or compare it to alternatives such as typing via other browser tools.

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