Skip to main content
Glama
AutoFlow MCP

AutoFlow MCP

by gavksingh

Click Element

click_element

Open a page and click an element by CSS selector or visible text, then return the resulting URL and title.

Instructions

Navigate to a URL and click an element by CSS selector or by visible text. Returns the resulting URL and title.

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": {
      "url": "<url>"
    },
    "name": "click_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPage URL to open before clicking
textNoVisible text to match (clicks first matching element)
selectorNoCSS selector to click (e.g. 'button.primary', '#submit')
waitAfterMsNoMs to wait after click for navigation/updates

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral burden. It does disclose the two-step behavior (open URL, then click) and the return values (resulting URL and title), which is genuinely useful. It omits what happens on failure (no matching element, invalid selector, navigation errors) and any timeout or JS requirement, which matters for a browser-interaction tool.

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?

Two short sentences with no filler: the first states what the tool does and how elements are addressed, the second states the return values. Information is front-loaded and nothing is wasted.

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 four-parameter interaction tool with no annotations and no output schema, the description covers purpose, parameter intent, and return values adequately. The main gap is error/failure behavior when the selector or text does not match, which an agent would want to know before calling.

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 description coverage is 100%, so every parameter is already documented in the schema, including the first-match behavior for text and the default for waitAfterMs. The description adds only the high-level framing that the two are alternative element-addressing modes, so baseline 3 is appropriate.

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?

The description states a concrete verb and resource ('click an element') and specifies the two addressing modes (CSS selector or visible text), plus the initial navigation step. It is clearly distinct from the sibling 'navigate', which presumably just opens a page without interacting. It stops short of a 5 only because the differentiation from siblings is implicit rather than stated.

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?

Usage is implied: use this when you need to interact with a page element after loading it, and the text-vs-selector choice is surfaced. However, there is no explicit when-not guidance, no mention of when to use 'navigate' alone instead, and no statement about which mode to prefer when both are possible.

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