Skip to main content
Glama
lumile

MercadoLibre MCP Server

by lumile

seller_reputation

Retrieve seller reputation scores on MercadoLibre to evaluate trustworthiness before purchasing. Input a seller ID to access detailed reputation metrics.

Instructions

Obtiene la reputación de un vendedor

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sellerIdNoID del vendedor

Implementation Reference

  • Handler case in callTool method that processes seller_reputation tool call by extracting sellerId and delegating to apiService.sellerReputation, then returning JSON-formatted response.
    case 'seller_reputation': {
      const { sellerId } = args as { sellerId: string }
      const reputation = await this.apiService.sellerReputation(sellerId)
      return {
        content: [{
          type: 'text',
          text: JSON.stringify(reputation, null, 2)
        }]
      }
    }
  • Input schema definition for the seller_reputation tool, specifying sellerId as required string.
    inputSchema: {
      type: 'object',
      properties: {
        sellerId: {
          type: 'string',
          description: 'ID del vendedor'
        }
      }
    }
  • Tool registration in listTools method, including name, description, and input schema.
    {
      name: 'seller_reputation',
      description: 'Obtiene la reputación de un vendedor',
      inputSchema: {
        type: 'object',
        properties: {
          sellerId: {
            type: 'string',
            description: 'ID del vendedor'
          }
        }
      }
    },
  • Core implementation in ApiService that fetches the seller's reputation data from MercadoLibre API endpoint /users/{sellerId}.
    async sellerReputation (sellerId: string) {
      const headers = await this.getHeaders()
      const response = await fetch(`${this.baseURL}users/${sellerId}`, { 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