Skip to main content
Glama

get_theming_guide

Retrieve the PrimeNG theming guide to customize themes, apply dark mode, and personalize UI components for Angular applications.

Instructions

Obtiene la guía de theming de PrimeNG (temas, personalización, modo oscuro)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler logic for executing the get_theming_guide tool: checks cache, scrapes the 'theming' guide using DocsScraperService, caches result, formats with formatGuideDoc, and returns response.
    async execute(_args: Record<string, any>): Promise<ToolResponse> { try { // Check cache first const cachedGuide = await this.cacheService.getGuide(this.guideName); if (cachedGuide) { logger.info(`Returning cached guide: ${this.guideName}`); return this.createResponse(formatGuideDoc(cachedGuide)); } // Scrape guide const guide = await this.scraperService.scrapeGuide(this.guideName); // Cache the result await this.cacheService.setGuide(this.guideName, guide); return this.createResponse(formatGuideDoc(guide)); } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return this.createErrorResponse( `Failed to get ${this.guideName} guide: ${errorMessage}` ); } }
  • Specific tool handler class for 'get_theming_guide', extends GetGuideTool and configures it for the 'theming' guide section.
    export class GetThemingGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_theming_guide', 'theming', scraperService, cacheService); }
  • Input schema definition for the get_theming_guide tool (no input params required).
    /** * Creates the schema for get_theming_guide tool */ export function createGetThemingGuideSchema(): Tool { return { name: "get_theming_guide", description: "Obtiene la guía de theming de PrimeNG (temas, personalización, modo oscuro)", inputSchema: { type: "object", properties: {}, }, }; }
  • Tool dispatch/registration in server request handler: calls getThemingGuideTool.run() for 'get_theming_guide'.
    case "get_theming_guide": return await this.getThemingGuideTool.run(args);
  • Instantiation/registration of GetThemingGuideTool instance in PrimeNGServer.
    this.getThemingGuideTool = new GetThemingGuideTool( this.docsScraperService, this.cacheService );

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/hnkatze/PrimeNG_MCP'

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