Skip to main content
Glama

Get a principle

get_principle
Read-onlyIdempotent

Retrieve a specific UX/UI principle by slug, including its title, code, summary, citations, and full-guide link; use search first when you only have a topic.

Instructions

Get one UX/UI principle by slug: title, code, part, difficulty, summary, the bibliographic citations behind it (author, title, year, url) and the link to the full guide on uxuiprinciples.com. With UXUI_API_KEY set (pro mode) the full guide body comes back in content. Use it to identify, summarize or cite a specific principle; use search_principles first when you only have a topic.

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": {
      "slug": "<slug>"
    },
    "name": "get_principle"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe principle slug as returned by search_principles or list_principles (e.g., "cognitive-load", "hicks-law", "fitts-law").
localeNoLanguage of the returned content: "en" (English) or "es" (Spanish). Defaults to "en".en

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.0
    • changedInput schema / properties / locale / description
      Previous value: -"Language for the content"New value: +"Language of the returned content: \"en\" (English) or \"es\" (Spanish). Defaults to \"en\"."
    • changedInput schema / properties / slug / description
      Previous value: -"The principle slug (e.g., \"cognitive-load\", \"hicks-law\", \"fitts-law\")"New value: +"The principle slug as returned by search_principles or list_principles (e.g., \"cognitive-load\", \"hicks-law\", \"fitts-law\")."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and non-destructive behavior, so the bar is lower. The description still adds real value by disclosing the pro-mode gating on UXUI_API_KEY and the conditional `content` field, plus a full list of returned fields. It does not say what happens for an unknown slug, which keeps it from a 5.

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?

Front-loaded with the action and resource, then the return payload, then the auth variant, then usage routing. The field enumeration is dense but every item earns its place by telling the agent what to expect back.

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-value burden and does so fully, including the conditional pro-mode content field and the citation structure. For a single-required-param lookup tool this leaves no meaningful gap for an agent.

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 `slug` (with examples) and the `locale` enum are already documented in the schema. The description reinforces slug provenance via search_principles/list_principles but adds no new syntax or format guidance for `locale`. Baseline 3 is appropriate.

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 one UX/UI principle by slug') and enumerates exactly what is returned: title, code, part, difficulty, summary, citations, and guide link. It is clearly distinguishable from search_principles and list_principles, which are named in the guidance.

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

Usage Guidelines5/5

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

Gives explicit use cases ('identify, summarize or cite a specific principle') and an explicit routing rule: 'use search_principles first when you only have a topic.' This is exactly the when-to-use/when-to-use-something-else information an agent needs.

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