Skip to main content
Glama

チェックを切り替え

set_checked

Sets checkboxes or radio buttons to a specified checked state using a CSS selector, enabling automated form testing and UI interaction.

Instructions

チェックボックスやラジオボタンを指定した状態にする

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

Input Schema

NameRequiredDescriptionDefault
checkedNo
selectorYes対象要素の CSS セレクタ

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the element scope (checkbox/radio only), implying the tool is not a general clicker, but it says nothing about what happens if the selector matches another element type, whether the operation is idempotent, or how failures surface.

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 front-loaded sentence with no wasted wording. It is perhaps too terse for the guidance it needs to provide, but nothing in it is redundant.

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

Completeness3/5

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

For a simple two-parameter tool with no output schema this is close to adequate, but with zero annotation coverage the description should at least explain the default behavior of 'checked' and the checkbox/radio-only constraint's consequences.

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 50%: 'selector' is documented in the schema while the 'checked' boolean has no description at all. The phrase '指定した状態にする' hints that a target state is supplied, but it never states that the boolean selects checked vs unchecked or that omitting it defaults to true.

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 pairs a specific verb (set to a given state) with a specific resource (checkbox or radio button), which is more informative than the bare tool name 'set_checked'. It does not, however, say how this differs from the sibling 'click', which can also change a checkbox.

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?

There is no guidance on when to prefer this tool over 'click', 'select_option', or 'press_key', nor any prerequisite or precondition. The agent must infer that this is the idempotent, state-explicit alternative to clicking.

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