Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

update_service

Modify and update service details such as name, description, and provider information to ensure accurate management of travel programs and activities on LumbreTravel MCP Server.

Instructions

Actualizar un servicio

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionYesDescripción del servicio
idYesID del servicio a actualizar
nameYesNombre del servicio
providerYes

Implementation Reference

  • The execution handler for the 'update_service' tool within the callTool switch statement. It destructures the arguments and calls the ApiService.updateService method, returning the result as MCP content.
    case 'update_service': { const { id, name, description, provider } = args const service = await this.apiService.updateService({ id, name, description, provider }) return { content: [{ type: 'text', text: JSON.stringify(service, null, 2) }] } }
  • The input schema and metadata definition for the 'update_service' tool, registered in the listTools() method.
    { name: 'update_service', description: 'Actualizar un servicio', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID del servicio a actualizar' }, name: { type: 'string', description: 'Nombre del servicio' }, description: { type: 'string', description: 'Descripción del servicio' }, provider: { type: 'object', properties: { id: { type: 'string', description: 'ID del proveedor' }, name: { type: 'string', description: 'Nombre del proveedor' } } } }, required: ['id', 'name', 'description', 'provider'] } },
  • The supporting API service method that performs the actual HTTP PUT request to update a service via the LumbreTravel API.
    async updateService (data: { id: string name: string description: string provider: { id: string name: string } }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/service/update`, { method: 'PUT', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) return await this.handleResponse<any>(response) }
  • src/index.ts:38-47 (registration)
    Generic registration of tool handlers to the MCP server: listTools for tool schemas and callTool for execution of any tool including 'update_service'.
    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) )

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