Skip to main content
Glama
lumile

LumbreTravel MCP Server

by lumile

get_vehicle_by_name

Search for vehicles by name to retrieve a list of matching results. Use this tool to manage and access vehicle data within the LumbreTravel MCP Server.

Instructions

Buscar vehículos por su nombre, retorna la lista de vehículos encontrados.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesNombre del vehículo

Implementation Reference

  • MCP tool handler implementation for 'get_vehicle_by_name'. Extracts the 'name' argument, calls ApiService.getVehicleByName, and returns the result as a JSON-formatted text content block.
    case 'get_vehicle_by_name': { const { name } = args as { name: string } const vehicle = await this.apiService.getVehicleByName(name) return { content: [{ type: 'text', text: JSON.stringify(vehicle, null, 2) }] } }
  • Tool schema definition including name, description, and input schema requiring a 'name' string parameter.
    { name: 'get_vehicle_by_name', description: 'Buscar vehículos por su nombre, retorna la lista de vehículos encontrados.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Nombre del vehículo' } }, required: ['name'] } },
  • Helper method in ApiService that performs an authenticated POST request to the backend API endpoint '/integrations/mcp/vehicle/get_vehicles_by_name' to fetch vehicles matching the given name.
    async getVehicleByName (name: string) { const headers = await this.getHeaders() const response = await fetch(`${API_CONFIG.baseUrl}/integrations/mcp/vehicle/get_vehicles_by_name`, { method: 'POST', headers: { ...headers, 'Content-Type': 'application/json' }, body: JSON.stringify({ name }) }) return await this.handleResponse<any>(response) }
  • src/index.ts:44-47 (registration)
    Registration of the general callTool handler via MCP Server.setRequestHandler for CallToolRequestSchema, which dispatches to ToolsHandler.callTool based on tool name (including get_vehicle_by_name).
    this.server.setRequestHandler( CallToolRequestSchema, async (request) => await this.toolsHandler.callTool(request.params.name, request.params.arguments, this.server) )
  • src/index.ts:38-41 (registration)
    Registration of the listTools handler via MCP Server.setRequestHandler for ListToolsRequestSchema, which provides the tool definitions including get_vehicle_by_name.
    this.server.setRequestHandler( ListToolsRequestSchema, async () => this.toolsHandler.listTools() )

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