Skip to main content
Glama

Fill a form from a JSON of labels and values

qa_fill_json

Fill web forms in one call from a plain JSON object mapping field labels to values, covering selects, date pickers, checkboxes, radios, and sliders; report unmatched keys for correction.

Instructions

Hand the page a plain JSON object — { "Field label": "value" } — and it fills the form in ONE call. No refs, no snapshot of your own: this takes its own snapshot, matches each key against the fields' accessible names (exact, then truncated, then contains) and passes the whole lot to the batch filler, so every control kind is covered — text, native and CUSTOM selects, typeahead comboboxes, date pickers, checkboxes (true/false), radios, sliders, rich text. This is the shape of the JSON behind the panel's own { } editor and its ⚡Fill button, so a dataset you write here reads the same way a human would edit it. Reach for this when you ALREADY know the data — from a ticket, a persona, a CSV row — and for a form you have not mapped: it is one call instead of snapshot-then-batch. Use qa_snapshot + qa_type_many instead when you need to choose targets deliberately (duplicate labels, one specific control among many). Keys that match nothing come back as unmatched, together with the field names the page actually has, so the next call can use the right key without another round trip. DATE FIELDS BUILT FROM SECTIONS (MUI X DateField/DatePicker: separate Day / Month / Year spans the component owns) cannot be written to at all — the answer will say so under verified, and the way in is the calendar: click the "Choose …" button, switch to the year view, pick the year, step the month, click the day. A value of "click" PRESSES the thing instead of filling it — for the parts of a step that take no value: a chip, a custom radio (div role=radio), a switch, a toggle button. { "Climate": "click", "Medium": "click" } goes in the same batch as the text fields. REPEATED LABELS: a form built from a repeated component gives several controls the identical label — address them as "Full name", "Full name#2", "Full name#3", which is the same #N notation the panel's own dataset uses, so a dataset copied out of the { } editor works as written. ONE CALL PER WIZARD STEP: pass advance: "Next" and this presses that control after the fill — but only when the fill was clean. It is NOT pressed if an entry came back ok:false, if a key matched nothing, or if a value is still wrong after the repair, and the reply says which of those it was. Whether the page really advanced is decided by the DIFF the click produced (a step swap makes many nodes appear AND disappear), never by the click answering ok: a Next that is disabled until the step validates accepts a click and does nothing — that case is caught before the click, from the control's own state, and comes back as advanced.ok:false with stillNeeded. When it did advance, next carries the FIELD NAMES of the step you are now on, so the following step costs no qa_snapshot of your own; pass next:false to leave them out. dry_run:true resolves the keys and fills nothing — read-only, and the cheap way to check a dataset against a page (with advance set it reports wouldAdvance and presses nothing). Requires the one-time “Agent control” confirmation in the panel; without it the extension answers consent-required and does nothing.

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": "qa_fill_json"
  }
}

Input Schema

NameRequiredDescriptionDefault
nextNoDefault true when `advance` is set: ride the NEXT step's field names back in the same reply (`next.fields`, plus its title and what its forward control is called), so the step after this one costs you no qa_snapshot. Pass false when you do not need them.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
fieldsYesThe dataset: { "Initiative name": "Test run", "Country": "Ukraine", "Start date": "2026-08-01", "I agree": true }
verifyNoDefault true: after the batch, read the page back and re-write any field whose value did not actually land, one at a time and re-found by name. This is what makes MUI-style multi-section fields and masked inputs work; pass false to skip the check.
withinNoLimit the matching to one form / dialog / step — the `selector` of a container node from a snapshot
advanceNoAfter the fill, click the control with THIS accessible name — "Next", "Continue", "Submit". Resolved by name against a snapshot taken at that moment (a fill re-renders the step, which is what makes a ref taken earlier click the wrong button), skipped entirely when the control reports itself disabled, and refused when anything about the fill was not clean. The reply's `advanced.ok` tells you whether the page actually moved, judged by the click's diff.
dry_runNoResolve the keys and report what would be filled, without touching the page
frameIdNoWhich frame to ask, from qa_frames. Omit for the page itself. A payment form, an SSO step or an embedded widget usually lives in a frame of its own, and a cross-origin one can only be read from inside it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full behavioral burden and does so: matching order (exact, then truncated, then contains), automatic read-back and repair under verify, gating of `advance` on a clean fill plus a diff-based judgment of whether the page really moved, dry_run as read-only, the consent-required precondition, and the hard limitation that MUI section-built date fields cannot be written. These are exactly the traits an agent would otherwise only discover by failing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the alternative, which is good, but the body is dense and padded — multiple all-caps section headers, an aside about the panel's own `{ }` editor, and repeated restatement of advance/next behavior already in the schema. Every sentence is informative, yet the whole would land harder at roughly two-thirds the length.

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

Completeness5/5

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

With 8 parameters, a nested `fields` object, no output schema and no annotations, the description would normally leave gaps; instead it explains what comes back (unmatched plus the page's real field names, verified, advanced.ok with stillNeeded, next.fields) and how failures behave. An agent can call this correctly, and recover from its two common failure modes, from the description alone.

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 100%, so the baseline is 3; the description earns above that by adding meaning the schema cannot: the special "click" value that presses rather than fills, the "Full name#2" repeated-label notation for duplicate accessible names, and the practical effect of dry_run and next:false. Only mild redundancy remains (the advance/next semantics are largely restated from the schema descriptions).

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?

States a specific verb (fills a form) with a concrete input shape ({ "Field label": "value" }) and a clear scope claim ("fills the form in ONE call"). It distinguishes itself from qa_snapshot + qa_type_many by name, so an agent can tell them apart without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use rule ("Reach for this when you ALREADY know the data — from a ticket, a persona, a CSV row") and an explicit when-not rule with the named alternative ("Use qa_snapshot + qa_type_many instead when you need to choose targets deliberately (duplicate labels, one specific control among many)"). It also routes date-section fields to a manual calendar procedure, so the exclusions are actionable rather than just stated.

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