list_leaders
Retrieve available travel guides to assign to activities within a travel program, ensuring efficient management and coordination of resources.
Instructions
Obtiene todos los guías disponibles para asociar a una actividad en un programa de viajes
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/handlers/tools.handler.ts:1257-1265 (handler)Handler logic for executing the 'list_leaders' tool: calls ApiService.getLeaders() and returns JSON response.case 'list_leaders': { const leaders = await this.apiService.getLeaders() return { content: [{ type: 'text', text: JSON.stringify(leaders, null, 2) }] } }
- Tool schema definition including name, description, and empty input schema for 'list_leaders'.name: 'list_leaders', description: 'Obtiene todos los guías disponibles para asociar a una actividad en un programa de viajes', inputSchema: { type: 'object', properties: {} } },
- src/services/api.service.ts:383-390 (helper)ApiService.getLeaders() method: performs authenticated GET request to fetch all leaders from the backend API.async getLeaders () { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/leaders`, { method: 'GET', headers }) return await this.handleResponse<any[]>(response) }
- src/index.ts:44-47 (registration)MCP server registration of CallToolRequestHandler, which routes 'list_leaders' calls to ToolsHandler.callTool.this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )
- src/index.ts:38-41 (registration)MCP server registration of ListToolsRequestHandler, which provides the tool list including 'list_leaders' schema.this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() )