Skip to main content
Glama

interact

Destructive

Hover, scroll, type Unicode text, or select option values on PyWebView elements using locators, with DOM-assisted fallback when direct input fails.

Instructions

Hover, scroll, type Unicode, or select option value (explicit DOM-assisted fallback).

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": {
      "session_id": "<session_id>",
      "request": "<request>"
    },
    "name": "interact"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the agent knows this mutates page state, but the description adds nothing about what gets changed - e.g. that 'type' inserts text at the caret or replaces existing value, or that 'select' alters a persisted form control. It also omits failure behavior when the locator matches zero or multiple elements. It does not contradict the annotations, but it misses an easy opportunity to justify the destructive flag.

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

Conciseness3/5

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

One short sentence is efficient and front-loaded with the action list. But the trailing parenthetical is vague filler that consumes attention without conveying actionable meaning, and the terseness crosses into under-specification for a four-action mutation tool.

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?

This is a multi-action, destructive, session-scoped interaction tool with no output schema and no documented return or error behavior. The description does not explain the action-to-parameter mapping, when the DOM fallback applies, or how failures surface, leaving significant gaps for an agent to discover by trial.

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?

The tool takes a session_id plus a nested request, and the schema itself carries detailed field descriptions for Locator and the locator/action/text fields, so much meaning is already structured. The description still adds nothing about dx/dy (presumably scroll deltas, defaulting to 0), about text serving double duty as typed string or option value, or about which actions require a locator. Given the stated low schema coverage, that is a gap, but the nested schema text partially compensates.

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

Purpose3/5

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

The description names four concrete actions (hover, scroll, type, select) that map onto the request.action enum, so the general capability is identifiable. However, it never states that this operates on page elements in an existing session, and the parenthetical 'explicit DOM-assisted fallback' is cryptic rather than differentiating. It gives no help distinguishing this from siblings like fill, click, or press.

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?

The phrase 'explicit DOM-assisted fallback' hints that this is a secondary path when normal interaction fails, but it does not say when to prefer it over fill, click, or press, nor what condition triggers the fallback. No prerequisites, no exclusions, and no guidance on choosing among the four listed actions.

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