Skip to main content
Glama

browser_set_date

Reliably set any date input by handling native fields, masked text formats, and calendar pickers with read-back verification—use it when standard fill fails or a calendar widget opens.

Instructions

Robustly set a date input - handles native , masked text inputs (e.g. MM/DD/YYYY), and calendar pickers (MUI, react-datepicker, AntD, Lexical/Meta). Tries native value-set, format-aware typing via Input.insertText, and ARIA-based picker navigation in sequence with read-back verification. Use instead of browser_fill when fill fails or for any input that opens a calendar widget.

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": {
      "selector": "<selector>",
      "date": "<date>"
    },
    "name": "browser_set_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesISO date string (YYYY-MM-DD), e.g. "2026-05-15"
selectorYesCSS selector for the date input element
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.
skip_pickerNoIf true, only try native + masked paths and skip calendar-picker navigation (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the disclosure burden and does it well: it lists the internal strategy sequence (native value-set, format-aware typing via Input.insertText, ARIA picker navigation) and notes read-back verification. It omits what an agent sees on total failure (does it throw, return false, leave partial state?) and any timing/retry characteristics.

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?

Three dense sentences with no filler: capability first, mechanism second, sibling routing last. Every clause carries information an agent needs, and nothing important is buried.

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

Completeness4/5

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

For a 4-parameter tool with no annotations and no output schema, the description covers inputs handled, method ordering, verification, and the alternative to prefer otherwise. The main remaining gap is failure/error behavior and what constitutes a successful set, which the agent would otherwise have to discover empirically.

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, but the description adds real meaning beyond the schema: the enumerated fallback chain explains what skip_picker actually skips (ARIA picker navigation) rather than just what it toggles. The mention of masked formats clarifies how the ISO date gets applied to MM/DD/YYYY-style inputs.

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+resource ('Robustly set a date input') and immediately enumerates the exact input flavors it handles (native <input type="date">, masked text inputs, MUI/react-datepicker/AntD/Lexical calendar pickers). That detail makes it unmistakable against sibling browser_fill or browser_set_combobox.

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 names the alternative and the selecting condition explicitly: 'Use instead of browser_fill when fill fails or for any input that opens a calendar widget.' This is clear routing guidance rather than implied usage. It stops short of stating when-not to use it (e.g., plain text fields that should just be filled).

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