Skip to main content
Glama

click

Destructive

Press a visible element in Typora via Playwright/CDP; provide an index when a selector matches multiple elements.

Instructions

Click a visible element through Playwright/CDP; pass index when the selector matches more than one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
indexNo
selectorNo
targetIdNoRenderer targetId from typora_status; required when no single window is focused
snapshotIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered. The description adds the 'visible element' precondition, but does not say what happens on hidden/unmatched elements, timeouts, or whether the action triggers navigation - real behavioral gaps for a mutating click 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?

A single front-loaded sentence that leads with the action and mechanism, then the one disambiguation rule. 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 a 5-parameter mutation tool with no output schema and thin schema coverage, the description leaves return/error behavior and several parameters unexplained. It is adequate to attempt a common call but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 20% (just targetId documented) across 5 parameters. The description explains index disambiguation semantics, which the bare schema does not, but ref, snapshotId, and how selector/ref interact remain undocumented in either place.

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 (click) plus resource (visible element) and the mechanism (Playwright/CDP), which cleanly separates it from siblings like type, press_key, and scroll. It does not, however, name any sibling or scope limits beyond visibility.

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?

Gives one conditional hint - use index when the selector matches multiple elements - which is genuine usage guidance, but there is no when-to-use/when-not framing relative to alternatives such as type or press_key, and no prerequisites are stated.

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