Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

delete_agency

Remove a travel agency from the LumbreTravel system to prevent its association with programs.

Instructions

Eliminar una agencia. La agencia eliminada no se puede usar para asociarle programas

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID de la agencia a eliminar

Implementation Reference

  • Handler logic in callTool method that executes the delete_agency tool by calling ApiService.deleteAgency(id) and returning the result.
    case 'delete_agency': { const { id } = args as { id: string } const agency = await this.apiService.deleteAgency(id) return { content: [{ type: 'text', text: JSON.stringify(agency, null, 2) }] } }
  • Registration of the delete_agency tool in the listTools() method's tools array, including name, description, and input schema.
    { name: 'delete_agency', description: 'Eliminar una agencia. La agencia eliminada no se puede usar para asociarle programas', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID de la agencia a eliminar' } }, required: ['id'] } },
  • Input schema for the delete_agency tool, defining required 'id' parameter.
    inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'ID de la agencia a eliminar' } }, required: ['id'] }
  • ApiService helper method that performs the actual API call to delete an agency by ID.
    async deleteAgency (id: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/agency/delete/${id}`, { method: 'DELETE', headers }) 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