Skip to main content
Glama

A2UI Atomic Catalog

render_surface

Read-only

Render an A2UI payload INSIDE the chat as a live interactive view (MCP Apps hosts only — on other hosts this returns the payload as text). No URL, no size ceiling, nothing stored: the payload travels in the tool result and renders in the a2ui_catalog_view. Accepts the blocks dialect or a v1.0 createSurface envelope (templates + dataModel decode in the view). Prefer this over preview_url when the host supports MCP Apps.

If the user names one of the Workspace's own pre-built views — Wall Builder, profile, history, links, composer — call open_workspace(view: ...) instead of composing one here yourself; those are wired demos with their own state, not something to reconstruct block by block. And never invent a generic block type (there is no "text" or "button" atom) — call get_catalog / get_atom_schema for the real vocabulary first; an unrecognised type is caught and replaced with a visible notice rather than silently dropped, but the block still won't render as intended.

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": {
      "payload": "<payload>"
    },
    "name": "render_surface"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesThe A2UI payload to render in the chat view: blocks dialect {title, theme, blocks:[...]} or a v1.0 createSurface envelope.

Output Schema

NameRequiredDescriptionDefault
titleNoSurface title, when the payload has one.
blocksNoThe catalogue blocks the view paints, as given (an unknown atom type is replaced by a notice block).
createSurfaceNoThe A2UI v1.0 form of the payload, when that is what was given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "blocks": {
      +      "description": "The catalogue blocks the view paints, as given (an unknown atom type is replaced by a notice block).",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "createSurface": {
      +      "additionalProperties": true,
      +      "description": "The A2UI v1.0 form of the payload, when that is what was given.",
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "title": {
      +      "description": "Surface title, when the payload has one.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, non-destructive, closed-world), and the description adds substantial behavior beyond that: host-dependent degradation to plain text on non-MCP Apps hosts, no URL, no size ceiling, nothing persisted, payload returned in the tool result, and unknown block types caught and replaced with a visible notice. These are exactly the non-obvious traits an agent needs before calling.

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?

Front-loaded with the core action and its host constraint, then usage routing, then the anti-pattern warning about inventing block types. A few clauses are dense ('there is no "text" or "button" atom'), but every sentence carries actionable information and none is filler.

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

Completeness5/5

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

For a single-parameter render tool with a rich nested schema and an output schema, the description covers the remaining unknowns: host fallback behavior, persistence, payload size, accepted dialects, and the catalog-lookup prerequisite. An agent has everything needed to invoke it correctly or decide not to.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (the payload parameter and its nested blocks/theme/title fields are documented), so the baseline is 3. The description still adds meaning beyond the schema: that a v1.0 createSurface envelope is accepted equivalently, that templates and dataModel are decoded inside the view, and that there is no size ceiling on the payload.

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?

Opens with a specific verb and resource ('Render an A2UI payload INSIDE the chat as a live interactive view') and immediately scopes it to MCP Apps hosts. It distinguishes itself from preview_url and open_workspace by name, so an agent can choose without opening any 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?

Gives explicit when-to-use ('Prefer this over preview_url when the host supports MCP Apps'), explicit when-not ('If the user names one of the Workspace's own pre-built views ... call open_workspace(view: ...) instead'), and a prerequisite step ('call get_catalog / get_atom_schema for the real vocabulary first'). Alternatives and selection conditions are named rather than implied.

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.