LevelUpWith

Explore / Agent Interfaces: MCP Apps, Generative UI, WebMCP & A2A / Lesson 1

Lesson 1: Where Text-Only Agents Hit Their Limits

Learners see the cases where a text-only reply fails the user: picking from many options, editing structured data, showing charts and maps, confirming risky actions, and running multi-step flows.

Free to read, no account needed. Part of Agent Interfaces: MCP Apps, Generative UI, WebMCP & A2A.

By the end of this level you'll be able to

  • Rewrite a text-only agent transcript and mark each point where a widget, form or visual would beat plain prose
  • Sort example tasks into 'text is fine' and 'needs an interface', and give an engineering reason for each

Why start with what text can't do

You have called a model API and watched a coding agent work. Text was a good fit there. A diff, a stack trace or a shell command already is text, so a reply in prose or code lands well.

Now put that same agent in front of someone booking a flight or cleaning up a CRM record. The model can still reason well, but the reply format starts to work against the user. They scroll back and forth, retype values, and squint at a markdown table trying to work out which "option 3" was which. This first level teaches you to spot those failure points before you build anything, because every protocol later in this course (MCP Apps, AG-UI, WebMCP, A2A) exists to fix one of them.

Here's a useful picture: text is a phone call. It works for questions and answers. It breaks down when someone says "let me read you 40 seat numbers" or "just tell me which cells in the spreadsheet to change."

The five places text breaks

# Situation What goes wrong in prose What beats it
1 Picking from many options The user has to hold 10+ items in their head and answer "the second Lufthansa one" A list, cards or a table with selection
2 Editing structured data The user retypes a whole record to change one field, and typos creep in A pre-filled form
3 Charts and maps "Revenue rose 12%, then dipped in March…" hides the shape of the data A chart, map or diagram
4 Confirming risky actions "Reply yes to delete 312 rows" is easy to approve without reading An explicit confirmation step with a summary and a clear cancel
5 Multi-step flows State gets lost across turns: "wait, which address did I pick?" A wizard or stepper that shows progress

Engineering reason, not taste: each row has a cost you can measure. That means extra turns (and tokens), mistakes from free-text parsing, or an approval the user gave without really meaning it. When you argue for a UI, name the cost.

Walkthrough: marking up a text-only transcript

Here is a realistic transcript from a text-only travel agent. The # ⚑ comments mark each point where an interface would do better.

User:  Find me a flight London -> Berlin next Friday, morning.
Agent: I found 14 flights. Here are the first 8:
       1. BA 982  06:45-09:40  £142  0 stops
       2. EW 8461 07:10-10:05  £89   0 stops
       ... (6 more lines)
       # ⚑ [1] PICK: 14 options, user can't compare price/time at a glance -> sortable list
User:  The cheap one around 7.
Agent: Do you mean EW 8461 at 07:10 (£89) or U2 8615 at 07:25 (£84)?
       # ⚑ [1] An ambiguous reference costs an extra round trip; one click would fix it
User:  The 07:25. Book it with my saved details.
Agent: Here are your saved details:
       Name: David Land, DOB: 1984-03-02, Passport: 5XXXXXX12, Exp: 2027-01
       Reply with any corrections.
       # ⚑ [2] EDIT: retyping a field in free text is error-prone -> pre-filled form
       # ⚠ Also echoes personal data into the chat log; a form field can mask it
User:  Passport expires 2028-01 now.
Agent: Updated. Total £84 + £38 bag = £122. Shall I charge Visa ••4421? (yes/no)
       # ⚑ [4] RISKY: money moves on a typed "yes" -> confirmation step with summary
User:  yes
Agent: Booked. Seat options: 12A window, 12B middle, 14C aisle, ... (30 more)
       # ⚑ [3] VISUAL: a seat map beats 33 lines of seat codes
       # ⚑ [5] FLOW: flight -> details -> pay -> seat is a 4-step flow with no progress shown

Notice what was fine as text: the first request, and the plain "Booked." A good interface designer keeps those parts as prose.

Walkthrough: a triage helper in code

You'll make this call many times, so turn it into a checklist you can run. Here's a small Python version you can drop into a notebook:

# triage.py: does this agent step need an interface?
from dataclasses import dataclass

@dataclass
class Step:
    description: str
    option_count: int = 0        # how many choices are shown to the user
    structured_fields: int = 0   # fields the user may edit
    has_spatial_or_series_data: bool = False  # maps, time series, layouts
    irreversible_or_costly: bool = False      # money, deletion, sending, publishing
    steps_in_flow: int = 1

def triage(s: Step) -> list[str]:
    reasons = []
    if s.option_count > 5:                 # rough threshold; tune it with user testing
        reasons.append("pick: list/cards with selection")
    if s.structured_fields >= 3:
        reasons.append("edit: pre-filled form")
    if s.has_spatial_or_series_data:
        reasons.append("visual: chart or map")
    if s.irreversible_or_costly:
        reasons.append("risky: explicit confirmation with summary")
    if s.steps_in_flow >= 3:
        reasons.append("flow: stepper showing progress")
    return reasons or ["text is fine"]

print(triage(Step("Explain what a 409 error means")))
# ['text is fine']
print(triage(Step("Pay for booking", irreversible_or_costly=True)))
# ['risky: explicit confirmation with summary']

The same idea in TypeScript works well as a type you attach to tool results in your own code:

// Tag every agent step with *why* it needs an interface, or why it doesn't.
type InterfaceNeed =
  | { kind: "text" }
  | { kind: "pick"; options: number }
  | { kind: "edit"; fields: string[] }
  | { kind: "visual"; chart: "line" | "bar" | "map" }
  | { kind: "confirm"; action: string; reversible: false }
  | { kind: "flow"; step: number; of: number };

Gotcha: the thresholds (5 options, 3 fields) are rules of thumb, not standards. Nobody has settled on them. Treat them as defaults you revise once you watch real users.

Trade-off: every widget adds things to build, test, secure and make accessible. A UI that wraps a one-line answer is worse than the text. Only add an interface where you can name the cost it removes.

What's coming

The ecosystem is already moving here. MCP Apps, which arrived in January 2026 as MCP's first official extension, lets a tool return an interactive UI that the host renders in a sandboxed iframe. MCP's elicitation feature lets a server ask the client to show the user a simple form. Later levels cover both in depth. For now, just learn to spot where they're needed.

Hands-on exercise

  1. Take a real transcript from a coding agent or chatbot you've used (or the travel one above with different details).
  2. Mark every turn with one of: text, pick, edit, visual, confirm or flow.
  3. For each non-text mark, write one sentence naming the cost it removes: turns, errors or a weak approval.
  4. Sort these 8 tasks into text is fine or needs an interface, with a reason for each: explain a regex; choose among 20 hotels; fix a typo in a 12-field invoice; show weekly sign-ups for a year; summarise a PDF; delete a production database; plan a 5-step onboarding; answer "what time zone is Tokyo?"

Key takeaways

  • Text works well for questions, explanations and short answers. Keep it there.
  • Five patterns break it: many options, structured edits, spatial or series data, risky actions, multi-step flows.
  • Back every "needs an interface" call with a cost: extra turns, parsing errors or a weak approval.
  • Risky actions need a confirmation step the user can actually read. A typed "yes" is not enough.
  • Widgets have costs too. Don't wrap a one-line answer in a UI.

A 6-question knowledge check follows this lesson in the app, free and without an account.

More like this