Skip to main content
Glama

Set a date, whatever library owns the calendar

qa_pick_date

Sets an exact date in a date field in one call, typing it first and falling back to steering the picker when the value does not stick.

Instructions

Put an EXACT date into a date field in ONE call — including the ones a value cannot be written to. It tries the cheap way first (type the date, press Enter, check it stuck), and only if that fails does it open the picker and steer it: the year view for MUI X, the clickable year in the header for Ant Design, the month/year dropdowns for react-datepicker, and plain arrows for anything else — stepping until the calendar header agrees, then clicking the day. Use this instead of writing to a date field whose value never sticks: MUI X DateField is three contenteditable sections the component rebuilds from its own state, so a written "14" can land in the YEAR and the day stay empty. Returns via (typed or calendar) and a trail of what it actually had to do, so a picker this does not recognise is visible rather than silent. 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": {
      "name": "<name>",
      "date": "<date>"
    },
    "name": "qa_pick_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe date as dd/mm/yyyy — the exact one the form must end up with
nameYesThe field's accessible name, e.g. "Owner date of birth"
tabIdNoTarget tab (from qa_tabs); omit for the active tab
open_labelNoName of the button that opens the picker, when the field itself does not (MUI renders "Choose <field name>")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the cheap-path-first strategy, the per-library picker steering, the consent precondition ("Agent control" confirmation, otherwise consent-required and no-op), and the return contract (via and trail). The trail disclosure is especially valuable because it makes unrecognized pickers observable rather than silent.

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

Conciseness4/5

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

It is front-loaded -- the one-call purpose is the first clause, followed by strategy, then alternative-use, then return values and prerequisites. It is a single dense block with a long enumeration of picker implementations that earns its length but could be tightened; some library-specific detail could move to examples.

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 no-annotation, no-output-schema tool this is close to complete: strategy, prerequisites, and return fields are all covered. It stops short on failure behavior -- what it does when the header never agrees with the target date, and whether that raises an error or returns a partial trail -- which matters for a tool that admits unrecognized pickers exist.

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 description coverage is 100%, so the schema already defines name, date, tabId, and open_label with examples. The description adds no parameter-level detail beyond that; the only overlap is restating MUI's "Choose <field name>" label pattern, which is already in the schema, and it never explains the dd/mm/yyyy format constraint in prose.

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 target ("Put an EXACT date into a date field in ONE call") and explains the fallback chain, so the resource is unmistakable. It does not name the adjacent date-related siblings such as qa_pick_range or qa_pick_time, so the agent must infer the boundary from the word "date" alone.

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 gives a concrete positive trigger: use this instead of writing to a date field whose value never sticks, with a worked MUI X DateField example of the failure mode. It never states exclusions -- nothing tells the agent to use qa_pick_range for spans or qa_pick_time for clock values, which is the main remaining ambiguity.

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