get_includes_by_name
Retrieve travel extras or inclusions by name using the LumbreTravel API to efficiently manage and access specific program details within the MCP framework.
Instructions
Buscar extras o incluídos por su nombre
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Nombre del include |
Implementation Reference
- Tool definition including name, description, and input schema for get_includes_by_name in the listTools method.{ name: 'get_includes_by_name', description: 'Buscar extras o incluídos por su nombre', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del include' } }, required: ['name'] } },
- src/handlers/tools.handler.ts:1703-1708 (handler)Handler logic in callTool method that calls ApiService.getIncludesByName and formats the response.case 'get_includes_by_name': { const { name } = args as { name: string } const includes = await this.apiService.getIncludesByName(name) return { content: [{ type: 'text', text: JSON.stringify(includes, null, 2) }] }
- src/services/api.service.ts:912-920 (helper)ApiService method implementing the core logic by making a POST request to the backend endpoint /integrations/mcp/include/get_includes_by_name.async getIncludesByName (name: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/include/get_includes_by_name`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ name }) }) return await this.handleResponse<any>(response) }
- src/index.ts:38-47 (registration)Registration of the general tools handlers (listTools and callTool) on the MCP server, which includes handling for get_includes_by_name.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) )