Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

create_leader

Set up travel guides in LumbreTravel MCP Server by entering their name, contact details, language, and description to manage travel programs efficiently.

Instructions

Crear un guía.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNoDescripción del guía
emailNoEmail del guía
languageNoIdioma del guía de acuerdo a ISO 639-1. No intentes usar 'list_service_languages' ni 'get_service_language_by_name' para obtener el idioma del guía.
nameYesNombre del guía
phoneNoTeléfono del guía

Implementation Reference

  • The handler logic for the 'create_leader' tool. It extracts arguments from the input, calls the ApiService.createLeader method, and returns the created leader as a JSON string in the tool response.
    case 'create_leader': { const { name, description, phone, email, language } = args const leader = await this.apiService.createLeader({ name, description, phone, email, language }) return { content: [{ type: 'text', text: JSON.stringify(leader, null, 2) }] } }
  • The input schema and metadata for the 'create_leader' tool, defining parameters like name, description, phone, language, and email.
    name: 'create_leader', description: 'Crear un guía.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del guía' }, description: { type: 'string', description: 'Descripción del guía' }, phone: { type: 'string', description: 'Teléfono del guía' }, language: { type: 'string', description: "Idioma del guía de acuerdo a ISO 639-1. No intentes usar 'list_service_languages' ni 'get_service_language_by_name' para obtener el idioma del guía." }, email: { type: 'string', description: 'Email del guía' } }, required: ['name'] } },
  • The listTools method registers all tools including 'create_leader' by returning the tools array used by the MCP server.
    ] } }
  • Supporting ApiService method that makes the HTTP POST request to the backend to create a leader entity.
    async createLeader (data: { name: string description: string phone: string email: string language: string }) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/leader/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