Skip to main content
Glama
Comet MCP Server

Comet MCP Server

by AdilShaikh1

comet_click

Click elements on the current Comet browser page using text matching or CSS selectors, then wait for the page to settle. Verifies interaction targets for reliable web automation.

Instructions

Click an element on the current Comet page.

Use 'text=...' for visible text matching (preferred over brittle CSS selectors). Waits after click for page to settle. If element not found, returns error — use comet_read_page first to verify the element exists.

Args: selector: CSS selector or 'text=Something' for text matching. wait_after: Seconds to wait after clicking (default 2).

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": "comet_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYes
wait_afterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

With no annotations, the description must carry the behavioral burden. It usefully discloses the post-click settle wait and the failure mode (returns error when the element is missing), but says nothing about side effects of clicking (navigation, form submission), session prerequisites, or whether the wait is blocking — material gaps for a mutation-style 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?

Front-loaded with the core action, then the preferred matching strategy, then behavior, then failure recovery, then args. Minor redundancy between the opening lines and the Args block, but every sentence contributes.

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 two-parameter tool with an output schema, the description covers purpose, argument syntax, wait behavior, and the error path adequately. Only the absence of prerequisites/side-effect disclosure keeps it from full completeness.

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 coverage is 0%, so the description must do all the work, and it does: selector accepts either a CSS selector or the 'text=Something' matching syntax, and wait_after is seconds after clicking with a default of 2. Both undocumented schema fields gain real meaning.

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?

States a concrete verb and resource: 'Click an element on the current Comet page.' An agent can distinguish this from comet_type or comet_navigate by the action alone, though the description never names those siblings explicitly.

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?

Gives actionable selection guidance ('text=...' preferred over brittle CSS selectors) and an explicit recovery path: if the element is not found, use comet_read_page first to verify existence. It stops short of stating when not to click at all (e.g., destructive buttons) or how it relates to comet_type.

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