Skip to main content
Glama

ui_check

Set checkboxes or radios to a specified state, avoiding blind toggles. Reads the current state first and clicks only when it differs, so repeated calls do not undo changes.

Instructions

Set a checkbox or radio to a specific state, rather than toggling it blindly. Reads the current state first and clicks only if it differs, so calling it twice does not undo the first call — the usual way a 'toggle' helper leaves a form in the wrong state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nthNoWhich match to use when several qualify, 0-based.
roleNoNarrow the matches to this ARIA role.
textNoVisible text on the control. Matches the innermost element that carries it, and follows a <label> to its input.
exactNoRequire the whole text to match rather than a substring.
frameNo'main' (default) or a substring of a frame's origin/name. Single-page apps often render the screen you want in a child frame.main
testidNoValue of a test attribute (data-testid and friends — see the testAttributes setting).
checkedNoThe state you want.
selectorNoCSS selector. Descends into open shadow roots.
timeout_msNoHow long to wait for the element to become actionable before giving up.
Install Server

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full disclosure burden and delivers: it reads the current state first, clicks only if it differs, and is therefore idempotent across repeated calls. This is exactly the behavioral insight an agent needs to avoid double-calling and to predict the outcome of a second invocation, going well beyond any structured field.

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

Conciseness5/5

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

Two sentences with zero filler: the first front-loads the action and operand scope, the second explains the mechanism and the pitfall it avoids. Every clause earns its place, including the concrete example of why a naive toggle fails.

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 9-parameter tool with no annotations and no output schema, the description covers purpose, operand scope, and the crucial idempotency behavior. The remaining gaps are minor: return values, timeout/no-match failure behavior, and explicit routing among the many sibling ui_* tools.

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% — all 9 parameters carry individual descriptions — so the baseline of 3 holds even though the tool description itself adds no per-parameter meaning. The central 'checked' parameter is adequately covered by the schema ('The state you want'), consistent with the declared purpose.

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?

States a specific verb and resource — 'Set a checkbox or radio to a specific state' — and contrasts with 'toggling blindly', distinguishing it behaviorally from generic click/toggle helpers among the siblings (notably ui_click). The purpose is unmistakable before reading any schema.

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?

The description gives clear context for when this tool is the right choice: when a control must reach a deterministic state, and why it beats a 'toggle' helper that can leave the form in the wrong state. It doesn't explicitly name an alternative tool or state exclusions (e.g., 'use ui_click for non-form controls'), so it stops short of full routing guidance.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dayananda-D/Devcdp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server