Skip to main content
Glama

click

Activates a page element by CSS selector or visible text, optionally navigating to a provided URL first so interactions target the intended page.

Instructions

Click an element by CSS selector or by visible text (navigate to url first if given).

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": {
      "target": "<target>"
    },
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
targetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare that this is not read-only and operates in an open-world context. The description adds one behavioral detail beyond that: if a url is supplied, navigation happens before the click. It omits other relevant behavior such as waiting for actionability, error handling, and what effect the click may have.

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 description is a single efficient sentence with no wasted wording. The core action is front-loaded, and the parameter-related details are concisely included.

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 simple two-parameter click tool with no output schema, the description covers both parameters and the key prerequisite behavior. It could be slightly more complete by mentioning waiting behavior or typical failure modes, but the annotations already communicate the safety profile.

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

Parameters4/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 carry parameter meaning. It explains that `target` accepts a CSS selector or visible text, and that `url` triggers navigation before clicking. It does not specify how the two target forms are disambiguated or preferred, but it substantially compensates for the bare schema.

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 states a specific action and resource: "Click an element." It also distinguishes the interaction method by saying the element can be identified via CSS selector or visible text, which is enough to separate it from siblings like fill_field or press_key.

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

Usage Guidelines3/5

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

The parenthetical "(navigate to `url` first if given)" provides a useful prerequisite for the optional url parameter. However, the description does not explain when to use this tool versus alternatives, nor does it mention exclusions or failure conditions.

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