Skip to main content
Glama

fill_form

Fill multiple form fields—text, password, checkboxes, radio buttons, dropdowns—and optionally submit in one action. Resolves secret placeholders and accessibility refs for Electron app automation.

Instructions

Fill multiple input fields (text, password, checkboxes, radio buttons, dropdowns) and optionally submit in a single turn. Supports {{secret:ELECTRON_MCP_*}} resolution and accessibility refs.

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": {
      "fields": "<fields>"
    },
    "name": "fill_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
expectNoOptional UI assertion to verify post-submit outcome
fieldsYesForm field specifications or mapping of field names to values
submitNoSubmit selector/name/ref, or true to auto-detect submit button
targetIdNo
waitIdleNoWhether to wait for network idle after filling/submitting (default true)
processIdNoTarget process ID. Omit if only one app is running.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations only declare openWorldHint=true and destructiveHint=false, so the description carries most of the behavioral burden. It adds useful context: multiple fields can be filled atomically, submission is optional, secret placeholders are resolved, and accessibility refs are accepted. It does not say what happens on partial failure, whether filled values persist when a later field fails, or what is returned after submit — meaningful gaps for a tool that can mutate a page and submit it.

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?

Two tightly packed sentences with zero filler. The capability and the batch/submit scope are front-loaded, and the supporting detail (secret resolution, a11y refs) follows in the second sentence.

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 six-parameter, nested-schema mutation tool with no output schema and only thin annotations, the description covers the headline capability but omits outcome reporting, failure behavior, and how the expect assertion relates to the submit step. It is adequate to start a call but not complete for a form submission that can change application state.

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 description coverage is 83%, so the baseline is 3; the description earns a bump by documenting the {{secret:ELECTRON_MCP_*}} resolution syntax that applies to field values and by noting accessibility refs, neither of which is spelled out in the schema. It also clarifies the optional-submit semantics of the submit parameter. It says nothing about expect, waitIdle, targetId, or processId beyond what the schema already provides.

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?

A specific verb+resource: 'Fill multiple input fields (text, password, checkboxes, radio buttons, dropdowns) and optionally submit in a single turn.' It scopes the field types and notes the batch-plus-submit behavior, which separates it from single-action siblings like click or click_ax. It does not name an alternative explicitly, so sibling differentiation is implied rather than stated.

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?

'in a single turn' and 'optionally submit' imply this is the batch path rather than repeated single-field calls, and the secret-resolution note hints at the credential-filling use case. There is no explicit when-to-use/when-not guidance, no mention of prerequisites such as targetId or processId disambiguation, and no pointer to act_and_verify for flows needing verification.

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

Deploy Server

Other Tools