Skip to main content
Glama

click

Presses one user-approved button, link, or checkbox in a browser tab, such as “Accept” or “I agree,” and lists candidates if no single match.

Instructions

Presses one button, link or checkbox in a tab, such as "Accept" or "I agree". Exactly one visible element must match, otherwise nothing is clicked and the candidates are listed. The approval shows the real text of the element found on the page. Use this only for a step you would otherwise hand back to the user. Nothing happens without the user's approval. If the result has status "needs_confirmation", nothing has been done yet: call the confirm tool with the values from its "confirm" object, unchanged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoStart of the tab address, used when no tabId is given. With neither, the active tab is used.
textNoVisible text or accessible name of the element.
tabIdNoChrome tab id of the tab you are working in.
selectorNoCSS selector, when text alone is ambiguous.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the exactly-one-match rule, the failure behavior (nothing clicked, candidates listed), that the approval surfaces the element's real page text, that nothing executes without user approval, and the meaning of the "needs_confirmation" status. This is the kind of side-effect and gating detail an agent needs before invoking a UI-mutating tool.

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 purpose is front-loaded and every sentence contributes operational detail. Minor drag from slightly awkward phrasing ("The approval shows the real text of the element found on the page") and the dense confirmation-status sentence, but no filler.

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

Completeness5/5

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

For a no-output-schema tool, the definition covers matching semantics, failure mode, approval gating, and the handoff to confirm, which is everything needed to invoke it correctly and handle the result. Nothing material is left to inference.

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%, so url, text, tabId, and selector are already documented. The description adds indirect context — that ambiguity triggers a candidate list, implying selector exists to disambiguate — but it does not explain parameter interaction (e.g. text plus selector precedence) beyond what the schema states. Baseline 3 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?

States a specific verb and resource ("Presses one button, link or checkbox in a tab") with a concrete example of the element type. The scope is narrow enough that an agent can distinguish it from siblings like enter_code, type_secret, or confirm without opening 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 Guidelines5/5

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

Gives an explicit inclusion criterion ("only for a step you would otherwise hand back to the user") and names the alternative path: on status "needs_confirmation", call the confirm tool with its "confirm" object unchanged. It also states the precondition that user approval gates the action, so both when and when-not are covered.

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