Skip to main content
Glama

browser_click_ref

Clicks a page element from a browser snapshot by its ref, waiting until it is clickable, then returns what changed on the page.

Instructions

Click the element ref ("r12", "f1:r3") from browser_snapshot like a person: waits until it is clickable, then returns what changed on the page. Payment clicks wait for the person's approval. tab: the handle browser_new_tab returned ("t3"). Pass it on every call: several agents can share this server, and the tab is how each one keeps to its own page.

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": {
      "ref": "<ref>"
    },
    "name": "browser_click_ref"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
tabNo
observeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does substantial work: it declares auto-waiting until clickable, states that the call returns what changed on the page, and warns that payment clicks block on human approval. Remaining gaps are failure behavior (element missing/not clickable) and whether non-payment clicks are irreversible.

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?

Three dense sentences, front-loaded with the action and its return semantics before the tab plumbing detail. Every clause carries information an agent needs, and the parenthetical examples are placed where they disambiguate rather than padding.

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?

No output schema exists, and the description correctly covers the return value ("returns what changed on the page"), plus the shared-server tab model that is essential to calling it correctly in a multi-agent setting. The only material omission is the undocumented `observe` toggle, which could change what an agent sees after clicking.

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 compensate, and it does for two of three parameters: `ref` gets source and format examples, `tab` gets its origin, the requirement to pass it every call, and the multi-agent isolation rationale. The `observe` parameter is never mentioned, leaving its default-on diff behavior unexplained.

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 the element `ref` ... from browser_snapshot") and makes the ref format unambiguous with two literal examples, "r12" and "f1:r3". It does not explicitly differentiate itself from the sibling `browser_click`, which presumably targets the same action by selector, so the boundary is left to inference.

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 clear operating context: the ref must come from browser_snapshot, the tab handle must come from browser_new_tab and be passed on every call, and payment clicks require human approval before proceeding. It stops short of explicit exclusions (e.g. "use browser_click when you have a CSS selector"), so an agent must infer the alternative.

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