Skip to main content
Glama

a2ui_open

Open A2UI v1.0 messages as a screen on a phone and return it as a tree. The messages are the agent's own: createSurface, updateComponents, updateDataModel, deleteSurface. Needs no app. Then use screen, tap, type and screenshot on the session like any app, a2ui_send to change the screen and a2ui_actions to read what the person did.

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": {
      "messages": "<messages>"
    },
    "name": "a2ui_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoPhone model from phone_models, for example 'iPhone 16 Pro' (default: Pixel 8)
sessionNoSession name (default: generated)
messagesYesA2UI messages, each { version: "1.0", createSurface | updateComponents | updateDataModel | deleteSurface: {...} }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations say readOnlyHint=false and destructiveHint=false, so the description's job is to add lifecycle context, and it does: a session is created (optionally named), no app is required, and the screen is subsequently drivable by the shared interaction tools. It does not say whether sessions persist, can be closed, or what happens on a name collision, which is a real gap for something that creates state.

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?

The core action and return are front-loaded in the first sentence, and every later clause routes the agent somewhere useful rather than padding. The second sentence is a dense run-on that would read better as a short list, but no sentence is wasted.

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?

There is no output schema, so the return value matters, and the description only says 'return it as a tree' without describing the tree's node shape or identifiers. That is partly offset because it points the agent at screen, tap and type for interaction instead of raw tree manipulation, but an agent planning to parse the tree is left guessing.

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 coverage is 100%, so the schema already documents model, session and messages, including the default Pixel 8 and generated session name. The description only reinforces the message shape and the notion of a session; it adds no format or syntax detail beyond what the schema supplies, so baseline 3 applies.

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 concrete verb and resource: it opens A2UI v1.0 messages as a phone screen and returns a tree. It names the four message kinds it accepts (createSurface, updateComponents, updateDataModel, deleteSurface) and distinguishes itself from a2ui_send and a2ui_actions, so an agent can pick it out of the sibling list without opening a schema.

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 gives the follow-on workflow: once opened, use screen, tap, type and screenshot on the session 'like any app', use a2ui_send to change the screen and a2ui_actions to read user interactions. It also pre-empts a likely question with 'Needs no app', which tells the agent this is not gated on an installed application.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.