Skip to main content
Glama

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
NameRequiredDescriptionDefault
addressYesToken contract address (0x...)
chainNoChain to query (default: base)base

Implementation Reference

  • 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,
                }),
              },
            ],
          };
        }
      }
    );

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/JhiNResH/maiat-protocol'

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