Skip to main content
Glama

Get UX Flow

get_flow

Retrieves a complete flow spec with all screens, states, transitions, and success and error handling so you can build multi-step flows without designing them from scratch.

Instructions

ALWAYS call this before building any multi-step flow. Returns a complete flow spec: all screens, states, transitions, success and error handling. Never design flows from scratch.

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": {
      "flow_name": "<flow_name>"
    },
    "name": "get_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
flow_nameYesFlow name. E.g. 'empty-state', 'onboarding', 'auth'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the return contents and that this is a retrieval rather than a mutation, implying a safe read. However, it says nothing about what happens when flow_name is unknown, whether the returned spec is authoritative/complete for unusual flows, or any limits on the response. Useful but incomplete for a zero-annotation tool.

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?

Three short sentences: the imperative call-to-action is front-loaded, the payload contents follow, and the prohibition closes it. No filler, and every sentence changes agent behavior.

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 one-parameter read tool with no output schema, the description covers the essential question an agent has — what comes back and when to call it. The remaining gap is failure behavior for unrecognized flow names, which matters given the mandatory-sounding 'ALWAYS' framing.

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 the single parameter is documented with concrete examples ('empty-state', 'onboarding', 'auth'), so the schema does the work. The description adds no additional meaning about naming conventions, matching behavior, or fallbacks beyond what the schema already provides.

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 states a specific verb and resource ('Returns a complete flow spec') and enumerates the payload contents — screens, states, transitions, success and error handling — so an agent knows exactly what it gets. It scopes the tool to 'multi-step flow' work but never explicitly distinguishes itself from siblings like get_ux_pattern or get_component, leaving that separation implicit.

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

Usage Guidelines4/5

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

Strong affirmative guidance ('ALWAYS call this before building any multi-step flow') plus a negative directive ('Never design flows from scratch') that tells the agent not to improvise. It lacks explicit exclusions or a named alternative for single-screen or pattern-level lookups, so the boundary with siblings must be inferred.

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