Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

reactivate_vehicle

Reactivate a vehicle by providing its ID to restore its functionality in the LumbreTravel MCP Server, enabling seamless travel program management.

Instructions

Reactivar un vehículo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID del vehículo a reactivar

Implementation Reference

  • MCP tool handler implementation for 'reactivate_vehicle'. Extracts the vehicle ID from arguments, calls ApiService.reactivateVehicle(id), and returns the JSON response.
    case 'reactivate_vehicle': { const { id } = args as { id: string } const vehicle = await this.apiService.reactivateVehicle(id) return { content: [{ type: 'text', text: JSON.stringify(vehicle, null, 2) }] } }
  • Tool registration and schema definition in listTools(). Defines the tool name, description, and input schema requiring a string 'id'.
    { name: 'reactivate_vehicle', description: 'Reactivar un vehículo.', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del vehículo a reactivar' } }, required: ['id'] } },
  • ApiService helper method that performs the actual API call to reactivate a vehicle by ID via PUT request to /integrations/mcp/vehicle/reactivate.
    async reactivateVehicle (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/vehicle/reactivate`, { method: 'PUT', headers, body: JSON.stringify({ id }) }) return await this.handleResponse<any>(response) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lumile/lumbretravel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server