Skip to main content
Glama
Wraith MCP Server

Wraith MCP Server

by YogevKr

click

Activates a page element by index or visible name, then returns the resulting snapshot or a compact summary of changes for agent-driven browsing.

Instructions

Click an element: give its index from a snapshot, or its visible name ("Save", "tab:Specs", "link:Payments"). A name is looked up on the page as it is now, so it works for an element you have not seen yet.

Returns the resulting snapshot (or a compact change summary when include_snapshot=false). The result's Changed: line reports what the click did (url change / new elements / new text / nothing).

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

Input Schema

NameRequiredDescriptionDefault
indexYes
include_snapshotNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.29.0
    • addedInput schema / properties / index / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / index / type
      Removed value: -"integer"
  2. Changed1 schema field changedv0.4.0
    • addedInput schema / properties / include_snapshot
      Added value: +{
      +  "default": true,
      +  "title": "Include Snapshot",
      +  "type": "boolean"
      +}
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it says a snapshot is returned, that a compact change summary comes back when include_snapshot=false, and that the Changed: line reports the effect (url change / new elements / new text / nothing). It omits failure behavior (element not found, navigation waits), so not a 5.

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 tight sentences, front-loaded with the action and target identification, then return value, then result interpretation. Parenthetical examples earn their place by disambiguating the name format.

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?

An output schema exists, so return values are already documented; the description still adds helpful interpretation of the Changed: line. For a two-parameter action tool this is nearly complete, with the main gap being error/failure semantics.

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 compensate and does: index is explained as an integer index from a snapshot or a name string with prefix conventions and examples, and include_snapshot is explained via the compact change summary alternative. Both parameters gain meaning not present in the schema.

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 specific verb and resource ("Click an element") and immediately explains the two ways to identify the target (index from a snapshot, or a visible name like "tab:Specs"). It doesn't explicitly distinguish itself from siblings such as click_at or double_click, so it stops short of a 5.

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 context for the name form: names are resolved against the live page, so it works for elements not yet seen. There is no explicit when-not or pointer to alternatives like click_at/double_click, which keeps it below 5.

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