Skip to main content
Glama

Suggest a fix for a UX issue

suggest_fix
Read-onlyIdempotent

Get an actionable fix for a described UX issue: detect the likely UX smell, then return a step-by-step recipe, relevant principles, and a refactoring prompt for coding agents.

Instructions

Get a fix for a described UX issue: detects the most likely smell (or uses the one you pass), then returns its step-by-step fix recipe, the principles to apply and a refactoring prompt you can hand to a coding agent. Use it when you want an actionable remedy rather than a diagnosis; runs offline.

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": {
      "issue": "<issue>"
    },
    "name": "suggest_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
issueYesThe UX issue to fix, in plain language (e.g., "the checkout asks for account creation before showing the price").
localeNoLanguage of the returned content: "en" (English) or "es" (Spanish). Defaults to "en".en
smell_idNoOptional smell id to skip detection when the smell is already known (e.g., "dead-end-states").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.3.0
    • changedInput schema / properties / issue / description
      Previous value: -"Description of the UX issue to fix"New value: +"The UX issue to fix, in plain language (e.g., \"the checkout asks for account creation before showing the price\")."
    • addedInput schema / properties / locale / description
      Added value: +"Language of the returned content: \"en\" (English) or \"es\" (Spanish). Defaults to \"en\"."
    • changedInput schema / properties / smell_id / description
      Previous value: -"Optional: specific smell ID if already known"New value: +"Optional smell id to skip detection when the smell is already known (e.g., \"dead-end-states\")."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and openWorldHint=false, so 'runs offline' largely restates structured data. The genuine additions are behavioral: the tool auto-detects the smell unless one is supplied, and it returns a composite payload (recipe + principles + prompt). It says nothing about cost, latency, or what happens if detection finds no confident match.

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?

Two sentences, outcome-first, with the return-value enumeration up front and the usage rule second. Dense but purposeful; the parenthetical about detection could be trimmed without loss since the schema covers it.

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?

With no output schema, the description carries the return-shape burden and does so by listing the concrete artifacts returned. Combined with annotations covering safety and a fully documented schema, an agent has everything needed to call this correctly.

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%, so all three parameters are already documented, including that smell_id skips detection. The description's '(or uses the one you pass)' merely restates that behavior, and locale is only indirectly implied by 'the principles to apply' -- no new meaning is added beyond the schema.

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?

States a specific verb and resource (get a fix for a described UX issue) and then enumerates exactly what the call produces: the detected or supplied smell, its step-by-step fix recipe, the principles to apply, and a refactoring prompt. The 'remedy rather than diagnosis' framing carves it apart from the diagnostic sibling without needing the schema.

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?

Gives an explicit selection rule ('Use it when you want an actionable remedy rather than a diagnosis'), which effectively routes the agent away from a detection-only tool. It stops short of naming that sibling or stating any when-not-to-use condition, so the routing is clear but inferential.

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