Skip to main content
Glama

Set Checked

set_checked

Check or uncheck a checkbox or radio control by CSS, text, role, test ID, XPath, or label selector, with optional page and timeout settings.

Instructions

Check or uncheck a checkbox/radio control.

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>",
      "checked": "<checked>"
    },
    "name": "set_checked"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNoPage id. Defaults to the active page.
checkedYes
selectorYesCSS selector, text=..., role=button[name="Save"], testid=..., xpath=..., or label=...
timeoutMsNoOperation timeout in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full behavioral burden and delivers almost none of it. It does not say whether the operation is idempotent (setting checked=true on an already-checked box), whether it scrolls the element into view, what happens if the selector matches a non-checkbox element, or how timeouts surface as errors.

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?

A single well-formed sentence with the action front-loaded and zero filler. It is efficient but so terse that the structure carries no additional information.

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

Completeness2/5

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

For a mutation tool with four parameters, no annotations, and no output schema, the definition is too thin. An agent cannot tell from the description alone how failures, non-checkbox targets, or no-op state changes are handled.

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 75%, so the schema documents selector, pageId, and timeoutMs well; only 'checked' is undocumented but is self-evident from the name. The description adds no meaning beyond the schema, so the baseline of 3 is appropriate.

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 names a specific verb pair ('check or uncheck') and a specific resource type ('checkbox/radio control'), which is clearly distinct from click, fill, or select_option. It stops short of naming any sibling or stating how it differs from clicking a checkbox directly.

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?

Usage is only implied: an agent can infer this sets checked state rather than toggling arbitrarily, but there is no explicit guidance on when to prefer this over click (which is what a human would do) nor any preconditions. No exclusions or alternatives are given.

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