Skip to main content
Glama

a2ui_actions

Read-only

What an A2UI session sent to the agent: the action messages from buttons the person pressed, with their context read from the data model. Pass since (the next of the last call) to get only newer ones.

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": "<session>"
    },
    "name": "a2ui_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoReturn messages after this position (the `next` of an earlier call)
sessionYesSession from open_app

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly and non-destructive, so the safety profile is covered. The description adds real context beyond that: what the payload contains (button action messages plus data-model context) and that responses carry a `next` cursor, which matters because no output schema exists to disclose that field.

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 short sentences with no waste: the resource description first, the incremental-polling instruction second. Every clause carries information an agent needs.

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?

For a two-parameter read tool with no output schema, the definition covers what the tool returns and how to page forward using the cursor. Minor gaps remain — no statement about empty results, first-call behavior, or whether messages are consumed/cleared once read.

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% and both parameters are documented in the schema, including `since` as 'the `next` of an earlier call'. The description restates that same cursor chaining rather than adding new meaning such as whether `since` is exclusive, what happens on the first call, or units of the position value.

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 the specific resource: action messages from buttons a person pressed in an A2UI session, with context resolved from the data model. It avoids a clean leading verb (it opens with 'What an A2UI session sent to the agent'), but the resource and origin are unambiguous enough to distinguish it from a2ui_open and a2ui_send.

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

Usage Guidelines3/5

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

It gives one concrete usage pattern — pass `since` with the `next` of the last call to poll only newer messages — which implies repeated/incremental polling after the first call. It does not say when to call this versus a2ui_open or app_activity, nor what a first call (omitting `since`) returns.

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.