Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

create_include

Add optional extras or inclusions to travel programs by defining names and descriptions for enhanced booking customization.

Instructions

Crear un extra o incluído.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre
descriptionYesDescripción

Implementation Reference

  • Handler implementation for the 'create_include' tool. Extracts name and description from arguments, calls ApiService.createInclude, and returns the JSON response.
    case 'create_include': { const { name, description } = args const include = await this.apiService.createInclude({ name, description }) return { content: [{ type: 'text', text: JSON.stringify(include, null, 2) }] } }
  • Schema definition for the 'create_include' tool, including input schema requiring 'name' and 'description' strings.
    name: 'create_include', description: 'Crear un extra o incluído.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre' }, description: { type: 'string', description: 'Descripción' } }, required: ['name', 'description'] }
  • The 'create_include' tool is registered in the listTools() method's tools array, advertised to MCP clients.
    { name: 'create_include', description: 'Crear un extra o incluído.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre' }, description: { type: 'string', description: 'Descripción' } }, required: ['name', 'description'] } },
  • Helper method in ApiService that performs the HTTP POST request to create an include via the LumbreTravel API.
    async createInclude (data: { name: string description: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/include/create`, { method: 'POST', 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