Skip to main content
Glama

get_theme_usage

Retrieve theme implementation guidelines and usage instructions for Modus Web Components to apply design system standards in development projects.

Instructions

Get theme implementation guidelines and usage instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that finds the theme setup guide in loaded documents and returns its markdown content as a tool response.
    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)
    Tool registration in the ListTools response, defining 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-334 (registration)
    Dispatch case in the CallTool handler that invokes the getThemeUsage method.
    case "get_theme_usage": return await this.getThemeUsage();
  • Helper code in loadSetup that maps the 'theme_usage.md' filename to setupType 'theme', enabling the handler to find it.
    // Map filenames to more user-friendly types if (setupType === "universal_rules") setupType = "universal"; if (setupType === "theme_usage") setupType = "theme";
  • Input schema definition for the tool (empty object, no parameters required).
    inputSchema: { type: "object", properties: {}, },

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