list_leaders
Retrieve available travel guides to assign to activities in travel programs. This tool helps users find and associate guides with program activities.
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:206-212 (registration)Registration of the 'list_leaders' tool in the listTools() method, including its name, description, and empty input schema (no parameters required).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/handlers/tools.handler.ts:1257-1265 (handler)The handler function for 'list_leaders' tool. It calls apiService.getLeaders() to fetch all leaders and returns the JSON stringified list as text content.case 'list_leaders': { const leaders = await this.apiService.getLeaders() return { content: [{ type: 'text', text: JSON.stringify(leaders, null, 2) }] } }
- Input schema for 'list_leaders' tool: an empty object (no required parameters).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)Helper method getLeaders() in ApiService that performs a GET request to the backend API endpoint /integrations/mcp/leaders to retrieve the list of leaders.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:38-47 (registration)Top-level MCP server registration of tool handlers via ToolsHandler's listTools and callTool methods.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) )