Skip to main content
Glama

click

Clicks a specified element in a Safari tab using CSS selector, subject to denylist and safety gates.

Instructions

Click an element. Check it with find_elements first.

Passes through the denylist and then the local safety gate, either of which may refuse — the refusal explains itself and is worth relaying verbatim rather than retrying.

Args: tab: Tab index within window 1, or a substring of its URL or title. selector: CSS selector for the element. index: Which match to click when the selector hits several. Default 0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabYes
indexNo
selectorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does meaningful work: it reveals that clicks pass through a denylist then a local safety gate that may refuse, and that refusals are self-explanatory. It does not mention side effects like navigation or form submission triggered by the click, but the safety-gate disclosure is genuinely useful added context.

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?

The purpose is front-loaded in the first sentence, followed by a one-line prerequisite, a compact safety note, and a tight Args block. Each sentence carries information and nothing is redundant.

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 three-parameter tool with an output schema and no enums or nested objects, this is near-complete: all parameters, the prerequisite workflow, and refusal handling are covered. It only omits minor behavioral details, such as whether the click waits for navigation or other side effects.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it fully does: tab is explained as an index or URL/title substring, selector as a CSS selector, and index as the match selector with default 0. Every parameter receives meaning beyond its bare type.

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?

The description opens with 'Click an element', a specific verb and resource, and the sibling list (find_elements, fill, navigate, run_js) makes the distinction immediate. 'Check it with find_elements first' reinforces that this is the action tool rather than the lookup tool.

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?

It explicitly instructs the agent to verify the element with find_elements before clicking and to relay refusals verbatim rather than retrying. However, it does not state when NOT to use click in favor of fill, run_js, or navigate, so it stops short of full exclusion routing.

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