Skip to main content
Glama

set-checked

Set a checkbox or radio button’s checked state in a browser page by targeting it via label, role/name, or snapshot reference.

Instructions

Set the checked state of a checkbox or radio button.

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": {
      "pageId": "<pageId>",
      "selector": "<selector>",
      "checked": "<checked>"
    },
    "name": "set-checked"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
checkedYes
timeoutNoMaximum action time in milliseconds. Use 0 for no timeout.
selectorYes
sessionIdNoBrowser session ID. Defaults to 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it says nothing about whether the operation is idempotent when the element is already in the target state, whether it dispatches change/click events, what happens on a missing or disabled element, or how timeout and failure surface.

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?

One clean, front-loaded sentence with no wasted words, but the brevity comes from under-specification rather than efficiency: nothing about behavior or parameters is packed in.

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 five-parameter browser-mutation tool with no annotations, no output schema, and 40% schema coverage, a single twelve-word sentence is far too thin. An agent cannot determine idempotency, failure modes, or selector semantics without guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%; pageId, checked, and sessionId have no schema descriptions, and the description adds no meaning to any of them. It doesn't explain the three selector strategies (label/role/ref) or the ref-plus-snapshotId coupling, so the agent must reconstruct intent from the raw schema.

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?

States a specific verb and resource: 'Set the checked state of a checkbox or radio button.' The checkbox/radio framing implicitly separates it from generic siblings like click and fill, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

No when-to-use guidance whatsoever: nothing says whether to prefer this over click or fill for a checkbox, no note on prerequisites such as needing an element reference from a snapshot, and no exclusions.

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