Skip to main content
Glama
mitsuru

A2UI MCP Server

by mitsuru

Update A2UI Data Model

a2ui_update_data
Idempotent

Updates an A2UI surface's data model to refresh bound components by replacing, merging, or removing keys in real time.

Instructions

Update the data model of an A2UI surface.

The data model provides dynamic values that components can bind to using dataBinding.

Operations:

  • replace: Completely replace the data model

  • merge: Shallow merge with existing data

  • remove: Delete specified keys

Example: { "surface_id": "booking_form", "operation": "merge", "data": { "userName": "John Doe", "selectedDate": "2025-01-15", "guestCount": 4 } }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesData to apply to the surface's data model
operationNoHow to apply the data: 'replace' (overwrite), 'merge' (shallow merge), 'remove' (delete keys)merge
surface_idYesSurface ID to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior1/5

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

The annotations declare destructiveHint=false, yet the description explicitly states 'remove: Delete specified keys' and 'replace: Completely replace the data model,' both of which are destructive to existing data. This directly contradicts the annotation, so per the rubric this dimension scores 1.

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?

The description is well-structured: a one-line purpose, a brief dataBinding context, a compact operations list, and an example. It is front-loaded and every sentence earns its place with no redundant filler.

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

Completeness3/5

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

The description covers the operations and includes a helpful example, so the tool can generally be invoked. However, the destructiveHint contradiction creates ambiguity about whether replace/remove are safe, and the absence of any return-behavior statement is a gap since no output schema exists. This lands at the minimum viable level.

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 description coverage is 100%, so the baseline is 3. The description adds value by explaining the semantics of each enum value (replace, merge, remove) and providing a concrete example with realistic values, which clarifies how the nested `data` object is used beyond the schema's generic description.

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?

The description clearly states a specific verb and resource: 'Update the data model of an A2UI surface.' It differentiates from siblings like a2ui_update_components by focusing on dataBinding-backed dynamic values, and the operations list removes ambiguity about what the tool does.

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?

The description implies the tool is for updating a surface's dynamic data model, and the dataBinding context gives a clue. However, it never explicitly says when to use this tool instead of a2ui_update_components or other siblings, nor does it provide exclusion criteria or decision rules.

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