Skip to main content
Glama

Click element

click_element

Clicks buttons or links by visible text to trigger actions like Run, Submit, Test, or switch tabs in browser-based code editors.

Instructions

Click a button or link by its visible text. This is how you press Run, Submit, Test, or switch tabs. Matches buttons and links first, then any visible text.

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

Input Schema

NameRequiredDescriptionDefault
textYesVisible text to click, e.g. 'Submit', 'Run Code', 'Solution'
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and openWorldHint=true; the description adds the non-obvious resolution rule that it "Matches buttons and links first, then any visible text," which warns that a loose match may hit an unintended element. It still says nothing about failure behavior, ambiguity with multiple matches, or whether the click waits for navigation, so the transparency is useful but partial.

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 short sentences, front-loaded with the core action and followed by intent examples and the matching rule. Every sentence carries distinct information and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an open-world, non-read-only interaction tool with no output schema, the description covers what to pass and how matching resolves, but omits what happens on a miss or timeout and whether the page state changes afterward. An agent could call it correctly but cannot predict failure or side-effect behavior.

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 coverage is 50% and `text` already carries its own description with examples, so the description's "by its visible text" adds little beyond the schema. The second parameter, timeoutMs, is never mentioned in the description even though its schema entry has no prose, leaving that gap unfilled on both sides.

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?

"Click a button or link by its visible text" pairs a specific verb (click) with a specific resource (button/link) and a selector strategy (visible text). It adds a concrete intent list ("press Run, Submit, Test, or switch tabs") so the agent knows the class of actions covered, but it never names a sibling, so the reader has to infer on their own that get_content/set_code are not substitutes.

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?

The second sentence gives real when-to-use context by naming concrete task shapes: submitting forms, pressing Run, switching tabs. There is no when-not guidance and no mention of an alternative path (e.g., using set_code or inspect_editor instead), which keeps it short of a 5.

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