Skip to main content
Glama

get_merchant_info

Retrieve authenticated merchant profile details like ID, nickname, and site from Mercado Pago's payment platform.

Instructions

Retrieve the authenticated merchant's user profile including ID, nickname, and site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The getMerchantInfo handler function that executes the API call to retrieve merchant information from the /users/me endpoint using the MercadoPagoClient.
    export async function getMerchantInfo(client: MercadoPagoClient): Promise<unknown> {
      return client.get("/users/me");
    }
  • The getMerchantInfoSchema defining the tool's name, description, and empty parameters object since no input parameters are required.
    export const getMerchantInfoSchema = {
      name: "get_merchant_info",
      description: "Retrieve the authenticated merchant's user profile including ID, nickname, and site.",
      parameters: {
        type: "object",
        properties: {},
      },
    } as const;
  • MCP server tool registration for get_merchant_info, defining the Zod schema validation and handler that calls the tools.get_merchant_info() function.
    server.tool(
      "get_merchant_info",
      "Retrieve the authenticated merchant's user profile including ID, nickname, and site.",
      {},
      async () => {
        try {
          const result = await tools.get_merchant_info();
          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:36-37 (registration)
    Tool registration in createMercadoPagoTools, exposing get_merchant_info as a function that calls getMerchantInfo with the client instance.
    get_merchant_info: () =>
      getMerchantInfo(client),
  • Type definition for GetMerchantInfoParams which requires no parameters (Record<string, never>).
    export type GetMerchantInfoParams = Record<string, never>;

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/cobroya'

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