Skip to main content
Glama

get_design_system

Retrieve Laravel design system documentation to access coding rules, implementation templates, and styling guidelines for consistent development.

Instructions

Get design system documentation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Complete implementation of the get_design_system tool handler - registers the tool with no input parameters, reads the design-system.md file from DOCS_PATH, and returns its content as text
    // Register tool: Get design system
    server.registerTool(
      'get_design_system',
      {
        description: 'Get design system documentation',
        inputSchema: {},
      },
      async () => {
        const designPath = path.join(DOCS_PATH, 'design-system.md');
    
        if (!fs.existsSync(designPath)) {
          throw new Error('Design system documentation not found');
        }
    
        const content = fs.readFileSync(designPath, 'utf-8');
    
        return {
          content: [{
            type: 'text',
            text: content,
          }],
        };
      }
    );
  • index.js:368-368 (registration)
    Console output showing get_design_system in the list of available tools displayed when server starts
    console.error('  - get_design_system: Get design system docs\n');
  • Helper function getDocFiles used by tools to recursively find markdown files in the documentation directory (could be used for design system file discovery)
    function getDocFiles(dir, basePath = dir) {
      const files = [];
    
      if (!fs.existsSync(dir)) {
        return files;
      }
    
      const entries = fs.readdirSync(dir, { withFileTypes: true });
    
      for (const entry of entries) {
        const fullPath = path.join(dir, entry.name);
        const relativePath = path.relative(basePath, fullPath);
    
        if (entry.isDirectory()) {
          // Skip node_modules and hidden directories
          if (!entry.name.startsWith('.') && entry.name !== 'node_modules') {
            files.push(...getDocFiles(fullPath, basePath));
          }
        } else if (entry.name.endsWith('.md')) {
          files.push({
            path: relativePath,
            full_path: fullPath,
            name: entry.name,
          });
        }
      }
    
      return files;
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the action ('Get') without detailing traits such as whether it's read-only, requires authentication, has rate limits, or what the output format might be. For a tool with no annotations, this is a significant gap in describing how it behaves beyond the basic purpose.

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 'Get design system documentation' is a single, efficient sentence that front-loads the core purpose with zero waste. It's appropriately sized for a simple tool with no parameters, making it easy to parse and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no annotations, no output schema, and 0 parameters, the description is minimal. While it states the purpose, it lacks context on behavior, output format, or differentiation from siblings. For a tool in a set with multiple documentation-related siblings, this leaves the agent with incomplete information to use it effectively.

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?

The input schema has 0 parameters with 100% coverage, meaning there are no parameters to document. The description doesn't need to add parameter semantics, so it appropriately avoids unnecessary details. Baseline is 4 for zero parameters, as the description doesn't mislead or omit parameter information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Get design system documentation' states a clear verb ('Get') and resource ('design system documentation'), making the purpose understandable. However, it's somewhat vague about what 'design system documentation' entails and doesn't distinguish it from sibling tools like 'get_doc_structure' or 'read_doc', which might have overlapping functions. It avoids being a tautology of the name but lacks specificity.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'get_doc_structure', 'get_domain_examples', and 'read_doc', there's no indication of context, prerequisites, or exclusions. This leaves the agent without direction on selecting the appropriate tool for retrieving documentation-related information.

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/pujandan/mcp-laravel'

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