Skip to main content
Glama
lumile

MercadoLibre MCP Server

by lumile

product_reviews

Retrieve product reviews from MercadoLibre to analyze customer feedback and make informed purchasing decisions.

Instructions

Obtiene las reseñas de un producto

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productIdNoID del producto

Implementation Reference

  • Handler case for 'product_reviews' tool: extracts productId from args, calls apiService.productReviews, and returns JSON-stringified reviews as text content.
    case 'product_reviews': { const { productId } = args as { productId: string } const reviews = await this.apiService.productReviews(productId) return { content: [{ type: 'text', text: JSON.stringify(reviews, null, 2) }] }
  • Registration of the 'product_reviews' tool in listTools(), including name, description, and input schema requiring productId.
    { name: 'product_reviews', description: 'Obtiene las reseñas de un producto', inputSchema: { type: 'object', properties: { productId: { type: 'string', description: 'ID del producto' } } } },
  • Input schema for product_reviews tool: object with required productId string.
    inputSchema: { type: 'object', properties: { productId: { type: 'string', description: 'ID del producto' } } }
  • apiService.productReviews method: fetches product reviews from MercadoLibre API endpoint '/reviews/item/{productId}' using authenticated headers.
    async productReviews (productId: string) { const headers = await this.getHeaders() const response = await fetch(`${this.baseURL}reviews/item/${productId}`, { headers }) if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`) } const data = await response.json() return data }

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/mercadolibre-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server