Skip to main content
Glama

Get UX Pattern

get_ux_pattern

Fetch the correct UX pattern and implementation guidance before making UI decisions on destructive actions, forms, modals, loading, empty states, errors, navigation, tables, or notifications.

Instructions

ALWAYS call this before making any UX decision. Covers destructive actions, forms, modals, loading states, empty states, errors, navigation, data tables, and notifications. Returns the correct pattern plus implementation guidance. Never guess at UX decisions.

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": {
      "context": "<context>"
    },
    "name": "get_ux_pattern"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextYesUX context. E.g. 'destructive-actions', 'forms', 'empty-states', 'errors', 'loading', 'modals', 'navigation', 'data-tables', 'notifications'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the return shape ("the correct pattern plus implementation guidance"). It does not state behavior for an unrecognized context value, whether context matching is exact/case-sensitive, or whether the lookup is strictly read-only, all of which matter for a single free-text parameter.

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?

The triggering imperative is front-loaded, followed by scope and return behavior in three short sentences. The closing "Never guess at UX decisions" is essentially a restatement of the opening directive, a minor redundancy but not enough to obstruct scanning.

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-only lookup with no output schema and no annotations, the description covers what the tool does, when to call it, what it covers, and what it returns. The remaining gap is edge-case behavior for invalid context strings, which is small relative to the tool's simplicity.

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 description coverage is 100% and the schema already enumerates the nine valid context strings with examples, so the description's domain list largely restates structured data. Baseline 3 applies; the description adds no syntax, casing, or fallback detail beyond what the schema shows.

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?

"Returns the correct pattern plus implementation guidance" paired with an explicit list of covered domains (destructive actions, forms, modals, loading, empty states, errors, navigation, data tables, notifications) makes the verb, resource, and scope unambiguous. It does not, however, distinguish itself from siblings like get_rules or get_design_system, which an agent could reasonably confuse with UX pattern guidance.

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?

"ALWAYS call this before making any UX decision" and "Never guess at UX decisions" give a clear, strong trigger condition that leaves little room for inference about when to invoke it. There is no when-not guidance and no sibling is named as an alternative for adjacent queries, so routing between this and get_rules/get_design_system is left unresolved.

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