list_includes
Retrieve available extras and inclusions to associate with travel activities in trip programs. This tool helps travel planners add optional services to activities.
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)MCP tool handler implementation for 'list_includes': calls ApiService.getIncludes() and formats response as MCP content.case 'list_includes': { const includes = await this.apiService.getIncludes() return { content: [{ type: 'text', text: JSON.stringify(includes, null, 2) }] } }
- src/services/api.service.ts:401-408 (helper)Core API call to retrieve the list of includes/extras from the backend API endpoint.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) }
- 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:44-47 (registration)Registers the CallToolRequestHandler which dispatches to tools.handler.ts.callTool based on tool name, enabling execution of list_includes.this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )
- src/index.ts:38-41 (registration)Registers the ListToolsRequestHandler which returns the list of available tools including 'list_includes'.this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() )