Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

update_agency

Modify travel agency details including name, description, and provider information within the LumbreTravel system to maintain accurate program data.

Instructions

Actualizar una agencia

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID de la agencia a actualizar
nameYesNombre de la agencia
descriptionYesDescripción de la agencia
providerYes

Implementation Reference

  • Handler logic in callTool method that processes arguments and invokes the ApiService updateAgency method, returning the result as MCP content.
    case 'update_agency': { const { id, name, description, provider } = args const agency = await this.apiService.updateAgency({ id, name, description, provider }) return { content: [{ type: 'text', text: JSON.stringify(agency, null, 2) }] } }
  • Tool definition including name, description, and input schema for validation in listTools().
    name: 'update_agency', description: 'Actualizar una agencia', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID de la agencia a actualizar' }, name: { type: 'string', description: 'Nombre de la agencia' }, description: { type: 'string', description: 'Descripción de la agencia' }, provider: { type: 'object', properties: { id: { type: 'string', description: 'ID del proveedor de la agencia' }, name: { type: 'string', description: 'Nombre del proveedor de la agencia' } } } }, required: ['id', 'name', 'description', 'provider'] } },
  • ApiService method that performs the HTTP PUT request to update an agency using authenticated headers and error handling.
    async updateAgency (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/agency/update`, { method: 'PUT', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify(data) }) 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