Skip to main content
Glama

get_principles

Read-only

Retrieve design principles and usability heuristics matched to your UI context. Get accessibility requirements, Gestalt principles, typography rules, and color theory for any interface.

Instructions

Get design principles relevant to a UI context. Returns usability heuristics, laws of UX, Gestalt principles, accessibility requirements, typography rules, and color theory — matched to what you're designing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNoOutput format: full (all details), checklist (implications + violations), brief (just summary). Default: full
contextYesWhat you're designing (e.g. 'signup form', 'pricing page', 'mobile nav', 'dark dashboard')
categoryNoFilter to category: nielsen-heuristics, laws-of-ux, gestalt, accessibility, typography, color-theory, mobile-ux, d4d, color-systems, spacing-systems
platformNoPlatform context. 'ios' returns Apple HIG principles (Dynamic Type, 44pt targets, SF Symbols, safe areas, dark-mode, haptics, App Review privacy); 'react-native' returns RN principles (44/48pt+hitSlop, accessibilityLabel/Role, font scaling, SafeAreaView, dark mode, iOS+Android parity, secrets). Both replace the web/CSS-oriented set. Default: web.
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the agent knows this is a safe read operation. The description adds that the tool returns 'usability heuristics, laws of UX, Gestalt principles, etc.' but does not disclose any additional behavioral traits like rate limits, authentication needs, or side effects. Since the annotations cover the safety profile, the description does not need to repeat that, but it also does not enrich behavioral understanding beyond what is already provided.

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?

The description is two sentences: the first clearly states the purpose, and the second lists the categories of principles returned. Every sentence is necessary and adds value. There is no fluff or redundancy, making it highly efficient for an agent to parse.

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?

Given the tool's moderate complexity with four parameters and no output schema, the description is mostly complete. It explains what categories of principles are returned and that they are matched to the context. However, it does not describe the structure of the output (e.g., whether it returns a list or a single principle, how results are ranked), which could be helpful for an agent to know how to use the results. This minor gap prevents a perfect score.

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?

The input schema covers 100% of parameters with descriptions and enums where applicable. The tool description does not add new meaning beyond the schema; it restates the purpose of the 'context' parameter indirectly by saying 'matched to what you're designing.' With full schema coverage, the baseline is 3, and the description does not provide additional semantic value to justify a higher score.

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?

The description clearly states the tool's purpose: 'Get design principles relevant to a UI context.' It specificies the verb 'Get', the resource 'design principles', and the context 'relevant to a UI context.' This distinguishes it from sibling tools like 'get_pattern' or 'get_business_strategy' which focus on different types of content.

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?

The description provides clear context on when to use the tool—when designing a UI and needing relevant principles. However, it does not explicitly state when not to use it or mention alternative tools, such as 'get_pattern' for patterns or 'get_brand_principles' for brand-specific guidance. The absence of exclusions slightly reduces the score from a perfect 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rhinocap/raven-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server