Skip to main content
Glama

get_icons_guide

Retrieve the PrimeIcons usage guide to understand how to implement and use PrimeNG icons in Angular UI development projects.

Instructions

Obtiene la guía de uso de PrimeIcons

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • GetIconsGuideTool class implementing the get_icons_guide tool by extending GetGuideTool and configuring it for the 'icons' guide.
    export class GetIconsGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_icons_guide', 'icons', scraperService, cacheService); }
  • The execute method in GetGuideTool providing the core logic: cache check, scrape icons guide if needed, cache result, format and return 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}` ); } }
  • Schema definition for the get_icons_guide tool, defining name, description, and empty input schema (no parameters required).
    export function createGetIconsGuideSchema(): Tool { return { name: "get_icons_guide", description: "Obtiene la guía de uso de PrimeIcons", inputSchema: { type: "object", properties: {}, }, }; }
  • Registration in the tool call handler: dispatches 'get_icons_guide' calls to this.getIconsGuideTool.run(args).
    case "get_icons_guide": return await this.getIconsGuideTool.run(args);
  • Instantiation of GetIconsGuideTool instance in PrimeNGServer.initializeTools() for use in tool handling.
    this.getIconsGuideTool = new GetIconsGuideTool( 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