Skip to main content
Glama

get_theme_usage

Access theme implementation guidelines and usage instructions for Modus Web Components to apply consistent design system standards in your projects.

Instructions

Get theme implementation guidelines and usage instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_theme_usage' tool. It retrieves the theme usage guide from the loaded setup documentation and returns it as content, or an error if not found.
    private async getThemeUsage(): Promise<any> { const themeGuide = this.setup.find( (s) => s.setupType === "theme" || s.filename.includes("theme") ); if (!themeGuide) { return { content: [ { type: "text", text: "Theme usage guide not found. Please run: node download-docs.js", }, ], }; } return { content: [ { type: "text", text: themeGuide.content, }, ], }; }
  • src/index.ts:276-284 (registration)
    Registration of the 'get_theme_usage' tool in the list of available tools, including name, description, and empty input schema.
    { name: "get_theme_usage", description: "Get theme implementation guidelines and usage instructions.", inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:332-333 (registration)
    Dispatcher case in the CallToolRequestSchema handler that routes calls to the getThemeUsage method.
    case "get_theme_usage": return await this.getThemeUsage();
  • Input schema definition for the 'get_theme_usage' tool, which requires no parameters.
    inputSchema: { type: "object", properties: {}, },
  • Helper code in loadSetup that maps the 'setup_theme_usage.md' filename to setupType 'theme', enabling the tool to find it.
    if (setupType === "theme_usage") setupType = "theme";

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/julianoczkowski/mcp-modus'

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