Skip to main content
Glama

Get the AI prompts of a principle

get_principle_prompts
Read-onlyIdempotent

Retrieve ready-to-use AI prompts tied to a UX/UI principle so you can apply, audit, or refactor an interface; pass the principle slug.

Instructions

Get the ready-to-use AI prompts attached to one principle (prompts to apply, audit or refactor an interface against it). With UXUI_API_KEY set (pro mode) the prompt texts come back in prompts; without it the prompts belong to the paid Principles Library and the tool returns the count and the URL of the guide. Call get_principle first if you only need the summary.

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_prompts"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe principle slug (e.g., "cognitive-load").
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
    • addedInput schema / properties / locale / description
      Added value: +"Language of the returned content: \"en\" (English) or \"es\" (Spanish). Defaults to \"en\"."
    • changedInput schema / properties / slug / description
      Previous value: -"The principle slug"New value: +"The principle slug (e.g., \"cognitive-load\")."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this is a safe, idempotent, closed read, so the remaining burden is outcome shape. The description discloses a non-obvious conditional behavior: with UXUI_API_KEY the prompt texts appear in `prompts`, otherwise the tool degrades to returning only a count and a guide URL. That gating behavior is exactly the kind of thing an agent cannot learn from annotations, though error handling for bad slugs is unstated.

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, no filler. The core purpose leads, the credential-gated return behavior follows, and the alternative-tool routing closes it out.

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 two-parameter read tool with no output schema, the description covers what comes back in both the pro and non-pro cases and when to prefer the sibling. Only failure modes (unknown slug, invalid locale) and any pagination or size limits are left implicit.

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%, with slug example and locale enum both documented in the schema, so the description adds no parameter-level detail beyond that. 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?

Names a specific verb and resource ('Get the ready-to-use AI prompts attached to one principle') and spells out what those prompts are for (apply, audit, refactor). It also explicitly distinguishes itself from the sibling get_principle by scoping that tool to summaries only.

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 a clear routing rule: use get_principle first if only the summary is needed, which tells the agent when this tool is the wrong choice. It does not cover other plausible alternatives such as suggest_fix or audit_interface, but the primary sibling conflict is resolved.

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