Skip to main content
Glama
dan1d

mercadolibre-mcp

get_seller_info

Retrieve seller profile data including reputation, ratings, and transaction statistics from MercadoLibre marketplace to evaluate seller credibility.

Instructions

Get seller profile including reputation, ratings, and transaction stats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seller_idYesSeller user ID

Implementation Reference

  • The main handler function that executes the get_seller_info tool logic. It takes a MercadoLibreClient and GetSellerInfoParams, then makes an API call to the /users/{seller_id} endpoint.
    export async function getSellerInfo(
      client: MercadoLibreClient,
      params: GetSellerInfoParams
    ): Promise<unknown> {
      return client.get(`/users/${encodeURIComponent(String(params.seller_id))}`);
    }
  • Type definition for the get_seller_info tool input parameters, defining that seller_id is a required number.
    export interface GetSellerInfoParams {
      seller_id: number;
    }
  • MCP server tool registration for get_seller_info with Zod schema validation and error handling. Registers the tool with description, input schema (seller_id as number), and async handler that calls tools.get_seller_info.
    server.tool(
      "get_seller_info",
      "Get seller profile including reputation, ratings, and transaction stats.",
      {
        seller_id: z.number().describe("Seller user ID"),
      },
      async (params) => {
        try {
          const result = await tools.get_seller_info(params);
          return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
        } catch (error) {
          const message = error instanceof Error ? error.message : String(error);
          return { content: [{ type: "text", text: message }], isError: true };
        }
      },
    );
  • src/index.ts:33-33 (registration)
    Tool registration in the createMercadoLibreTools factory function, mapping the get_seller_info tool name to the getSellerInfo handler function.
    get_seller_info: (params: GetSellerInfoParams) => getSellerInfo(client, params),

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

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