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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/actions.ts:93-95 (handler)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"); } - src/schemas.ts:100-107 (schema)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; - src/mcp-server.ts:95-108 (registration)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), - src/schemas.ts:33-33 (schema)Type definition for GetMerchantInfoParams which requires no parameters (Record<string, never>).
export type GetMerchantInfoParams = Record<string, never>;