Skip to main content
Glama

get_tailwind_guide

Retrieve the integration guide for using Tailwind CSS with PrimeNG components in Angular applications.

Instructions

Obtiene la guía de integración de PrimeNG con Tailwind CSS

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The execute method in GetGuideTool implements the core logic for the get_tailwind_guide tool: checks cache, scrapes the 'tailwind' guide if needed, caches the result, formats it, and returns the response. This is called via run() from BaseTool.
    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}` ); } }
  • Defines the MCP tool schema for 'get_tailwind_guide', including name, description, and empty input schema (no parameters required).
    export function createGetTailwindGuideSchema(): Tool { return { name: "get_tailwind_guide", description: "Obtiene la guía de integración de PrimeNG con Tailwind CSS", inputSchema: { type: "object", properties: {}, }, }; }
  • Tool dispatch registration in the MCP CallToolRequest handler: calls getTailwindGuideTool.run() when 'get_tailwind_guide' is requested.
    case "get_tailwind_guide": return await this.getTailwindGuideTool.run(args);
  • Instantiation and registration of the GetTailwindGuideTool instance in PrimeNGServer during initialization.
    this.getTailwindGuideTool = new GetTailwindGuideTool( this.docsScraperService, this.cacheService );
  • Specific tool class for 'get_tailwind_guide' that extends GetGuideTool, configuring it with tool name and 'tailwind' guide name.
    export class GetTailwindGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_tailwind_guide', 'tailwind', scraperService, 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