insumer_get_merchant
Retrieve a merchant's full public profile including token tiers, NFT collections, discount mode, and verification status from on-chain attestation across 31 EVM chains and Solana.
Instructions
Get full public merchant profile including token tiers, NFT collections, discount mode, and verification status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Merchant ID |
Implementation Reference
- src/index.ts:377-392 (registration)Registration and handler for the 'insumer_get_merchant' tool. It is registered via server.tool() with a Zod schema expecting an 'id' (string). The handler makes a GET request to `${API_BASE}/merchants/${encodeURIComponent(args.id)}` and formats the result.
server.tool( "insumer_get_merchant", "Get full public merchant profile including token tiers, NFT collections, discount mode, and verification status.", { id: z.string().describe("Merchant ID"), }, async (args) => { const url = `${API_BASE}/merchants/${encodeURIComponent(args.id)}`; const res = await fetch(url, { method: "GET", headers: { "Accept": "application/json" }, }); const result = await res.json() as { ok: boolean; data?: unknown; error?: unknown; meta?: unknown }; return formatResult(result); } ); - src/index.ts:380-381 (schema)Input schema for insumer_get_merchant: a single required 'id' field of type string (Merchant ID).
{ id: z.string().describe("Merchant ID"),