list_includes
Retrieve all available includes or extras to associate with travel activities in a program using the LumbreTravel API.
Instructions
Obtiene todos los incluye o extras 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:1277-1285 (handler)Handler implementation for the 'list_includes' tool. Fetches includes via ApiService and returns JSON-formatted text content.case 'list_includes': { const includes = await this.apiService.getIncludes() return { content: [{ type: 'text', text: JSON.stringify(includes, null, 2) }] } }
- Tool schema definition including name, description, and empty input schema (no parameters required).name: 'list_includes', description: 'Obtiene todos los incluye o extras disponibles para asociar a una actividad en un programa de viajes', inputSchema: { type: 'object', properties: {} } },
- src/index.ts:38-47 (registration)Registers the MCP request handlers for listing tools and calling tools, enabling the 'list_includes' tool.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) )
- src/services/api.service.ts:401-408 (helper)Helper method in ApiService that fetches the list of includes via GET request to the backend API.async getIncludes () { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/includes`, { method: 'GET', headers }) return await this.handleResponse<any[]>(response) }