Skip to main content
Glama

interact_with_popup

Open a Chrome extension popup and interact with its UI elements to click, type, or read text and HTML for automated extension testing.

Instructions

Open the extension popup and interact with UI elements (click, type, read text/HTML).

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": {
      "action": "<action>"
    },
    "name": "interact_with_popup"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoText to type (only for 'type' action)
actionYesAction to perform
selectorNoCSS selector for the target element (not needed for 'open')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does not say whether the popup is closed afterward, what happens if a selector does not match, whether actions wait for elements to appear, or whether repeated 'open' calls are idempotent — all material for a UI-driving tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, and the action enumeration is placed up front where it is most useful. It is terse rather than bloated; the brevity is a limit on information, not wasted words.

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

Completeness2/5

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

With no annotations and no output schema, the description should explain what get_text/get_html return and how failures surface, but it does neither. For a tool that drives live UI state, the definition leaves an agent unable to predict results or errors.

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%, with each of the three parameters documented, including the enum values for 'action' and the note that 'selector' is unnecessary for 'open'. The description adds nothing beyond the schema, so the baseline of 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 gives a concrete verb ('Open the extension popup') plus the resource, and parenthetically enumerates the interaction modes (click, type, read text/HTML) which map to the action enum. It is clear what the tool does, but it never distinguishes itself from siblings like inspect_dom or open_options_page, which an agent could plausibly confuse it with.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g. whether the extension must be loaded or the popup already open), and no mention of alternatives. The agent must infer from the sibling list whether popup interaction or DOM inspection is the right approach.

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