Skip to main content
Glama

Set a date RANGE that lives in one control

qa_pick_range

Set both ends of a date range in one call for range-picker controls, automatically moving from the start panel to the end panel and reporting the clicked trail.

Instructions

Both ends of a date range in one call, for a control that owns two inputs — Ant Design's RangePicker and its equivalents. Not the same as two qa_pick_date calls: the control walks from the start panel to the end panel by itself, and approaching it a second time from cold restarts the range on the start input, which is how a range ends up half-set. The start goes in through the normal single-date route (so every library it knows still applies), then the panel — still open — is steered to the end date by the same recipe with the opening click dropped. Reports a trail of what it clicked, and if the panel closed after the start it says so instead of pretending: some pickers do, and then the end date is its own field ("End date") for a plain qa_pick_date. 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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "qa_pick_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe end, dd/mm/yyyy
fromYesThe start, dd/mm/yyyy
nameYesThe control's accessible name — for Ant this is usually the START input's name, e.g. "Start date" or the field's label
tabIdNoTarget tab (from qa_tabs); omit for the active tab

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does so well: it discloses the internal stepping (start via normal single-date route, then the still-open panel steered to the end), the reported `trail`, the panel-closed failure branch, and the consent-required response that makes it a no-op. It stops short of covering things like timeouts, whether the date format is enforced, or what the trail looks like.

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?

The core rule and the sibling contrast are front-loaded, and every paragraph carries operational content. It is dense to the point of being slightly winding, with a long em-dash aside explaining how a range ends up half-set, but nothing is truly redundant.

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 fiddly multi-step UI tool with no annotations and no output schema, the description supplies the mechanics, the failure branch, and the auth gate a caller needs. Only edge behavior around timing and the trail's shape is left unstated.

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 coverage is 100% and each parameter is already documented in the schema, including the dd/mm/yyyy format and the tip that `name` is usually the START input's name. The description adds usage nuance but no format or constraint detail beyond what the schema provides, so the baseline applies.

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 opening clause names the specific action and resource ("Both ends of a date range in one call, for a control that owns two inputs") and names the concrete control family (Ant Design RangePicker). It also explicitly distinguishes itself from the closest sibling: "Not the same as two qa_pick_date calls."

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?

It states when this tool applies (composite two-input control), why the two-call alternative fails (approaching cold restarts the range, leaving it half-set), and gives a concrete fallback: if the panel closes after the start, the end date is its own field for a plain qa_pick_date. The consent prerequisite is also spelled out.

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