Skip to main content
Glama

get_installation_guide

Retrieve the installation and initial configuration guide for PrimeNG, an Angular UI component library, to set up the framework in your Angular projects.

Instructions

Obtiene la guía de instalación y configuración inicial de PrimeNG

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler logic that executes the tool: checks cache for 'installation' guide, scrapes from docs if missing using DocsScraperService.scrapeGuide('installation'), caches result, formats with formatGuideDoc, handles errors.
    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 class for 'get_installation_guide' that configures GetGuideTool with tool name and 'installation' guide section.
    export class GetInstallationGuideTool extends GetGuideTool { constructor(scraperService: DocsScraperService, cacheService: CacheService) { super('get_installation_guide', 'installation', scraperService, cacheService); } }
  • Defines the tool schema including name, description, and empty input schema (no parameters required).
    /** * Creates the schema for get_installation_guide tool */ export function createGetInstallationGuideSchema(): Tool { return { name: "get_installation_guide", description: "Obtiene la guía de instalación y configuración inicial de PrimeNG", inputSchema: { type: "object", properties: {}, }, }; }
  • Instantiates the GetInstallationGuideTool instance with DocsScraperService and CacheService during server initialization.
    this.getInstallationGuideTool = new GetInstallationGuideTool( this.docsScraperService, this.cacheService );
  • Registers the tool handler in the MCP call tool request switch statement, delegating to tool.run(args).
    case "get_installation_guide": return await this.getInstallationGuideTool.run(args);
  • Registers the tool schema in the MCP list tools request handler.
    createGetInstallationGuideSchema(),

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