lookup_label
Identify cryptocurrency addresses by retrieving entity names, categories, risk scores, and compliance tags for security and compliance checks.
Instructions
Look up the label and risk score for a cryptocurrency address. Returns entity name, category (exchange, DeFi, bridge, etc.), risk flags, and compliance tags. Cost: $0.009 per query. Source: On-chain address intelligence.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Crypto address to look up (e.g. 0xdAC17F958D2ee523a2206206994597C13D831ec7) |
Implementation Reference
- src/tools/labels.ts:44-66 (handler)The handler implementation for the lookup_label tool.
async ({ address }) => { const res = await apiGet<{ dataset: string; data: Record<string, unknown> }>( `/api/v1/labels/${encodeURIComponent(address)}`, ); if (!res.ok) { const msg = res.status === 404 ? `No label found for address ${address}.` : `API error (${res.status}): ${JSON.stringify(res.data)}`; return { content: [{ type: "text" as const, text: msg }], isError: res.status !== 404, }; } const warn = stalenessWarning(res); return { content: [ { type: "text" as const, text: `${warn}${JSON.stringify(res.data.data, null, 2)}` }, ], }; }, - src/tools/labels.ts:30-43 (registration)Registration and schema definition for the lookup_label tool.
server.registerTool( "lookup_label", { title: "Lookup Address Label", description: "Look up the label and risk score for a cryptocurrency address. Returns entity name, " + "category (exchange, DeFi, bridge, etc.), risk flags, and compliance tags. " + "Cost: $0.009 per query. Source: On-chain address intelligence.", inputSchema: { address: z .string() .describe("Crypto address to look up (e.g. 0xdAC17F958D2ee523a2206206994597C13D831ec7)"), }, },