Skip to main content
Glama

Search principles

search_principles
Read-onlyIdempotent

Find matching UX/UI principles by free text, part, difficulty, or tags to identify which design guidance applies to your question before retrieving full principle details.

Instructions

Search the 195 UX/UI principles by free text, part, difficulty or tags. Returns the matching principles with slug, title, code, part name and summary, plus the total count. Use it to find which principles apply to a design question before calling get_principle.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_principles"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoRestrict to one part of the catalogue, by id or name (e.g., "part-1", "Foundations"). Call list_principles to see the parts.
tagsNoRestrict to principles carrying every listed tag (e.g., ["forms", "errors"]).
limitNoMaximum number of principles to return. Defaults to 10.
queryNoFree-text query matched against title, slug, summary and tags (e.g., "form validation", "loading states", "choice overload").
localeNoLanguage of the returned content: "en" (English) or "es" (Spanish). Defaults to "en".en
difficultyNoRestrict to one difficulty level.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.0
    • changedInput schema / properties / difficulty / description
      Previous value: -"Filter by difficulty level"New value: +"Restrict to one difficulty level."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum results to return"New value: +"Maximum number of principles to return. Defaults to 10."
    • addedInput schema / properties / locale / description
      Added value: +"Language of the returned content: \"en\" (English) or \"es\" (Spanish). Defaults to \"en\"."
    • changedInput schema / properties / part / description
      Previous value: -"Filter by part (e.g., \"part-1\", \"Foundations\")"New value: +"Restrict to one part of the catalogue, by id or name (e.g., \"part-1\", \"Foundations\"). Call list_principles to see the parts."
    • changedInput schema / properties / query / description
      Previous value: -"Search query (searches title, slug, summary, and tags)"New value: +"Free-text query matched against title, slug, summary and tags (e.g., \"form validation\", \"loading states\", \"choice overload\")."
    • changedInput schema / properties / tags / description
      Previous value: -"Filter by tags"New value: +"Restrict to principles carrying every listed tag (e.g., [\"forms\", \"errors\"])."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds value by disclosing the return shape (slug, title, code, part name, summary, total count), which matters because there is no output schema. It omits ordering/pagination behavior beyond the limit cap.

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?

Two sentences, both load-bearing: the first defines the operation and its facets, the second defines the payload and the next step. Front-loaded with the verb and nothing redundant.

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?

All six optional parameters are schema-documented, the returned fields are enumerated in the description, and the downstream tool is named, so an agent can both call and chain this correctly. No output schema exists, and the description compensates by describing the response contents.

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 every parameter including part, tags, limit, query, locale and difficulty is already documented in the schema. The description's phrase 'by free text, part, difficulty or tags' merely restates the filter set and adds no syntax or matching semantics. Baseline 3 applies when the schema does the heavy lifting.

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 ('Search the 195 UX/UI principles') plus the exact facets it searches over ('free text, part, difficulty or tags'), and scopes the corpus size. It is clearly distinct from get_principle, which is named as the follow-up detail lookup.

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?

Explicitly says when to use it ('to find which principles apply to a design question') and what to call next ('before calling get_principle'), which is real routing guidance. It stops short of stating when not to use it — e.g., browsing the catalogue via list_principles — so it is strong but not complete.

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