list_services
Retrieve all available services to associate with activities in travel programs. This tool helps users access and manage service options for travel planning.
Instructions
Obtiene todos los servicios disponibles para asociar a una actividad en un programa de viajes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- Schema definition for the 'list_services' tool, including name, description, and empty input schema (no parameters required). This is returned by listTools().name: 'list_services', description: 'Obtiene todos los servicios disponibles para asociar a una actividad en un programa de viajes', inputSchema: { type: 'object', properties: {} } },
- src/handlers/tools.handler.ts:1237-1245 (handler)Handler logic for 'list_services' tool in callTool method. Fetches all services using ApiService.getServices() and returns them as formatted JSON text response.case 'list_services': { const services = await this.apiService.getServices() return { content: [{ type: 'text', text: JSON.stringify(services, null, 2) }] } }
- src/services/api.service.ts:365-372 (helper)ApiService.getServices() method: Makes authenticated GET request to /integrations/mcp/services endpoint and returns the list of services.async getServices () { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/services`, { method: 'GET', headers }) return await this.handleResponse<any[]>(response) }
- src/index.ts:38-47 (registration)MCP server request handlers registration: setRequestHandler for ListToolsRequestSchema (uses listTools() to provide tool list including list_services) and CallToolRequestSchema (dispatches to callTool() for execution).this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() ) // Configure handlers for tools this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )