Skip to main content
Glama

apps_preview_input

Destructive

Send normalized control or pointer events to the connected preview, enabling interactive app previews only when AI editing control is active.

Instructions

Send a normalized control or pointer event to the connected preview only. Requires current AI editing control; cannot launch or control the device App.

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": {
      "workspaceId": "<workspaceId>",
      "event": "<event>"
    },
    "name": "apps_preview_input"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventYes
workspaceIdYes
connectionRefNoThe host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / connectionRef
      Added value: +{
      +  "description": "The host connection to act on, as returned by terminal_connect (for example vrch-110.vrch.ai). Required when several hosts are connected.",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, openWorldHint=true, and non-idempotent writes, so the safety profile is known. The description adds genuinely useful authorization context (must hold current AI editing control) and a scope boundary (preview only, not device). However, it says nothing about what a destructive event can change in the app or what happens when control has lapsed, so it does not go beyond the annotations on the risk side.

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 short clauses, front-loaded with the action and scope before the permission constraint and the exclusion. Nothing is redundant and nothing is buried.

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 destructive, open-world mutation with a nested opaque payload and no output schema, the highest-burden combination. The description covers permissions and scope but omits the payload contract, failure/control-lost behavior, and any note that events are applied immediately and non-idempotently, which is the gap an agent most needs closed.

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 description coverage is only 33% and the central 'event' parameter is a free-form nested object with no documented shape in either the schema or the description. 'Normalized control or pointer event' gestures at event kinds but gives no field names, allowed event types, or coordinate conventions, so an agent cannot construct a valid call from the definition alone. Only connectionRef is explained, and that comes from the schema, not the description.

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 names a specific verb and resource (send a normalized control or pointer event) and scopes it tightly ('to the connected preview only'), which implicitly separates it from apps_host_input and apps_interface_input. It falls short of 5 because it does not name or contrast with any sibling explicitly.

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?

It gives a real precondition ('Requires current AI editing control') and an explicit exclusion ('cannot launch or control the device App'), which tells the agent when not to reach for this tool. It does not point to the alternative tool for launching or device control, leaving the agent to infer apps_launch.

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