Skip to main content
Glama

get_icons_guide

Access the PrimeIcons usage guide to find and implement icons in Angular UI development with PrimeNG components.

Instructions

Obtiene la guía de uso de PrimeIcons

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that implements the tool logic for get_icons_guide: checks cache for 'icons' guide, scrapes from DocsScraperService if missing, caches the result, formats with formatGuideDoc, and returns the response or error.
    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, including 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: Instantiates the GetIconsGuideTool with scraper and cache services.
    this.getIconsGuideTool = new GetIconsGuideTool( this.docsScraperService, this.cacheService );
  • Registration: Handles tool calls by dispatching to the getIconsGuideTool's run method.
    case "get_icons_guide": return await this.getIconsGuideTool.run(args);
  • Tool class specific to get_icons_guide, extending GetGuideTool and configuring tool name and guide name ('icons').
    export class GetIconsGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_icons_guide', 'icons', 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