Skip to main content
Glama

app.diagnose_interaction

Click a control and diagnose why it appears to do nothing. Report whether a handler ran or threw, a request started, input was consumed, or the framework caught an error.

Instructions

Click a control and report what the application actually did: whether a handler was attached, whether it threw, whether any request was initiated, whether the app consumed the input, and any error the framework caught. Use instead of page.click when a control appears to do nothing - page.click reports DOM mutations, which unrelated re-renders also produce.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "app.diagnose_interaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoVisible text of the control, when no selector is handy.
frame_idNo
selectorNoCSS selector for the control.
settle_msNoHow long to watch after the click. Default 1500.
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and openWorldHint=true, so the description carries the burden of explaining behavior — and it does, by listing the five signals returned (handler attached, throw, request initiated, input consumed, framework error). It does not disclose that the click itself mutates application state or how long it waits by default beyond the schema's settle_ms note, which keeps it from 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?

Two sentences, zero filler, and the diagnostic payload is front-loaded before the routing guidance. Every clause earns its place: the enumeration defines the output and the second sentence defines the sibling boundary.

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?

With six optional parameters, no output schema, and only two annotations, the description does the heavy lifting by effectively describing the return payload as a set of diagnostic verdicts. It falls slightly short of complete because it never clarifies the selector-versus-text targeting precedence or that the click has real side effects on the page.

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 83%, so the schema already documents selector, text, settle_ms, target_id, and browser_id. The description adds no meaning about how selector and text interact or which wins when both are supplied, so it sits at the baseline rather than above it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Click a control and report what the application actually did') and enumerates the exact diagnostic dimensions reported: handler attachment, thrown errors, request initiation, input consumption, and framework-caught errors. This is distinguishable at a glance from page.click and from the app.error_state sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternative it replaces ('Use instead of page.click') and gives the precise triggering condition ('when a control appears to do nothing') plus the reason page.click is inadequate (DOM mutations produced by unrelated re-renders). Both the when-to-use and why-not-the-alternative are stated.

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

Deploy Server

Other Tools