Skip to main content
Glama
Pharaoh-so

Pharaoh - Your AI breaks things it can't see

get_design_system

Read-only

Identify existing UI components and design tokens before building new ones to prevent duplication and ensure consistency across your application.

Instructions

Discover the design system BEFORE creating any UI component.

CALL THIS WHEN: • You're about to create a React/Vue/Svelte component — check what already exists • You need to know the canonical component for a UI pattern (button, input, modal) • You want to find design tokens (colors, spacing, typography) to use • You suspect raw HTML elements are used instead of existing components

RETURNS: Components with props and usage count, design tokens with values, and anti-patterns where raw HTML is used instead of existing components. Screen/page components are excluded by default.

EXAMPLES: • "What components does this design system have?" • "Is there already a Button component I should use?" • "What color tokens are available?" • "Where are raw HTML elements used instead of components?"

WHY NOT JUST READ FILES: Design systems span dozens of files across multiple directories. This returns the complete inventory with usage frequency — the most-used components are the most canonical.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations declare readOnlyHint=true; description adds valuable behavioral context beyond safety: details return structure (components with props/usage counts, tokens, anti-patterns) and important scope limitation (screen/page components excluded by default). Does not mention performance characteristics or caching behavior.

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?

Excellent structure with clear visual hierarchy: main directive, CALL THIS WHEN, RETURNS, EXAMPLES, and WHY NOT sections. Every sentence earns its place; examples are concrete and relevant. No redundant repetition of schema or annotation data.

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?

Highly complete for a parameter-free tool. Compensates for missing output schema by explicitly detailing what the tool returns (components, tokens, anti-patterns) and what it excludes. Complexity is appropriate for the tool's scope.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Zero parameters present; schema is empty object. Baseline score of 4 applies as per rules for parameter-free tools. No parameter documentation needed.

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?

Excellent specificity: verb 'discover' + resource 'design system' + clear scope (components, tokens, anti-patterns). The description clearly distinguishes this from general codebase analysis tools like get_codebase_map by focusing specifically on UI components and design tokens.

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?

Outstanding guidance with explicit 'CALL THIS WHEN' section listing 4 specific scenarios (creating React/Vue components, finding canonical patterns, locating tokens, detecting anti-patterns). Includes 'WHY NOT JUST READ FILES' section explaining when to use this tool versus manual file exploration.

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/Pharaoh-so/pharaoh'

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