get_token_forensics
Analyze token contract addresses for honeypot detection, rug pull risks, and liquidity analysis to assess safety and security.
Instructions
Get forensics and safety data for a token contract address. Includes honeypot detection, rug pull risk, and liquidity analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Token contract address (0x...) | |
| chain | No | Chain to query (default: base) | base |
Implementation Reference
- packages/mcp-server/src/index.ts:129-167 (handler)The handler implementation for the `get_token_forensics` tool, which uses the Maiat SDK to fetch token forensics and safety data.
// ---- Tool: get_token_forensics ---- server.tool( "get_token_forensics", "Get forensics and safety data for a token contract address. Includes honeypot detection, rug pull risk, and liquidity analysis.", { address: z.string().describe("Token contract address (0x...)"), chain: z .string() .default("base") .describe("Chain to query (default: base)"), }, async ({ address, chain }) => { try { const data = await sdk.tokenCheck(address); const forensics = await sdk.forensics(address, chain).catch(() => null); return { content: [ { type: "text" as const, text: JSON.stringify({ ...data, forensics }, null, 2), }, ], }; } catch (err) { return { content: [ { type: "text" as const, text: JSON.stringify({ error: err instanceof Error ? err.message : String(err), address, chain, }), }, ], }; } } );