Skip to main content
Glama

Detect UX smells from a description

detect_smell
Read-onlyIdempotent

Identifies matching UX smells from plain-language UI problems or user complaints, returning confidence levels and suggested fixes. Use it to name an unnamed interface issue before design changes.

Instructions

Detect which UX smells match a plain-language description of an interface problem or a user complaint, in English or Spanish. Returns the matched smells with a confidence level and the suggested fix for each. Use it as the first step when a UI "feels off" and the cause is not named yet; 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": {
      "description": "<description>"
    },
    "name": "detect_smell"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the returned content: "en" (English) or "es" (Spanish). Defaults to "en".en
descriptionYesWhat is wrong, in the user's or the team's words (e.g., "users say the dashboard is too cluttered and they don't know where to start", "el formulario es demasiado largo").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.0
    • changedInput schema / properties / description / description
      Previous value: -"Description of the UI issue or user complaint (e.g., \"users say the dashboard is too cluttered and they don't know where to start\")"New value: +"What is wrong, in the user's or the team's words (e.g., \"users say the dashboard is too cluttered and they don't know where to start\", \"el formulario es demasiado largo\")."
    • addedInput schema / properties / locale / description
      Added value: +"Language of the returned content: \"en\" (English) or \"es\" (Spanish). Defaults to \"en\"."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds useful context beyond them: the tool runs offline and returns confidence levels plus a suggested fix per match. It does not say what happens on no match or how many results come back.

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?

Three tight sentences: capability, return values, then usage cue, with the core purpose front-loaded. Every sentence carries information; only minor tightening would be possible.

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?

With no output schema, the description correctly compensates by describing the return payload (smells, confidence, suggested fix). For a two-parameter read-only tool this is nearly complete; only no-match behavior and result volume are unstated.

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%, so both parameters are already documented, including the locale enum and default. The description adds only that input may be in English or Spanish, which slightly clarifies the free-text field. Note the schema defines locale as the language of returned content, a distinction the description does not reinforce.

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: match a plain-language problem description against UX smells, in English or Spanish. It also names the return shape (matched smells, confidence level, suggested fix). It does not explicitly contrast itself with siblings such as get_smell or suggest_fix, so an agent must infer that this is the discovery step.

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?

It gives a clear triggering condition: use it as the first step when a UI 'feels off' and the cause is not named yet. That is real when-to-use guidance. It stops short of naming alternatives or exclusions, e.g. what to do once a smell is already identified (get_smell, suggest_fix).

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