Skip to main content
Glama

form_input

Set a form field value by element ref, including text inputs, textareas, selects by option value or text, and checkboxes or radios with true or false.

Instructions

Set a form field value by ref: text inputs, textareas, selects (option value or text), checkboxes/radios (true/false).

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

Input Schema

NameRequiredDescriptionDefault
refYesElement ref (ref_N) from read_page or find.
tabIdNoTab to act on. Omit for the active tab.
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does usefully disclose that the accepted value form varies by control type (option value or text for selects, true/false for checkboxes/radios), but says nothing about whether it overwrites an existing value, whether it dispatches framework-visible events, whether it focuses the element, or what happens with a stale/invalid ref.

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?

A single front-loaded sentence with the mechanism first and the type-specific value rules in a compact parenthetical. No filler, and every clause carries information the agent needs.

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 mutation tool with no annotations and no output schema, the description covers what it does and how values map to control types, but omits failure behavior for invalid refs, overwrite semantics, and whether a prior read_page/find is required to source the ref.

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

Parameters4/5

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

Schema coverage is only 67% and the 'value' property has an empty schema with no type or description at all. The description compensates by defining value semantics per field type, which is exactly the missing information; 'ref' and 'tabId' are already documented in the schema, so nothing more is needed there.

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 ('Set') plus resource ('a form field value') and the addressing mechanism ('by ref'), then enumerates the exact field types covered. An agent can tell this is the structured form-filling tool rather than free-form keystroke entry, though it never names the competing 'type' tool explicitly.

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?

Usage is implied through the field-type list: checkboxes/radios obviously belong here, and selects with option value or text. But it never says when to prefer this over the sibling 'type' tool for a plain text input, nor any precondition such as requiring a prior read_page/find to obtain the ref.

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