Skip to main content
Glama

insumer_list_tokens

List all registered tokens and NFT collections in the Insumer registry. Filter by chain, symbol, or asset type to find specific assets for on-chain attestation and wallet trust profiles.

Instructions

List all registered tokens and NFT collections in the Insumer registry. Filter by chain, symbol, or asset type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoFilter by chain ID
symbolNoFilter by token symbol
typeNoFilter by asset type

Implementation Reference

  • Handler function for insumer_list_tokens. Queries the /tokens endpoint with optional chain, symbol, and type filters, then formats the result.
      async (args) => {
        const params = new URLSearchParams();
        if (args.chain !== undefined) params.set("chain", String(args.chain));
        if (args.symbol) params.set("symbol", args.symbol);
        if (args.type) params.set("type", args.type);
        const qs = params.toString();
        const url = `${API_BASE}/tokens${qs ? `?${qs}` : ""}`;
        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:394-416 (registration)
    Registration of the insumer_list_tokens tool via server.tool() with name 'insumer_list_tokens', description, Zod schema for params, and async handler.
    server.tool(
      "insumer_list_tokens",
      "List all registered tokens and NFT collections in the Insumer registry. Filter by chain, symbol, or asset type.",
      {
        chain: z.union([z.number().int(), z.literal("solana"), z.literal("xrpl"), z.literal("bitcoin")]).optional().describe("Filter by chain ID"),
        symbol: z.string().optional().describe("Filter by token symbol"),
        type: z.enum(["token", "nft"]).optional().describe("Filter by asset type"),
      },
      async (args) => {
        const params = new URLSearchParams();
        if (args.chain !== undefined) params.set("chain", String(args.chain));
        if (args.symbol) params.set("symbol", args.symbol);
        if (args.type) params.set("type", args.type);
        const qs = params.toString();
        const url = `${API_BASE}/tokens${qs ? `?${qs}` : ""}`;
        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);
      }
    );
  • Input schema for insumer_list_tokens: optional chain (number or literal), symbol (string), and type (enum 'token'|'nft').
    {
      chain: z.union([z.number().int(), z.literal("solana"), z.literal("xrpl"), z.literal("bitcoin")]).optional().describe("Filter by chain ID"),
      symbol: z.string().optional().describe("Filter by token symbol"),
      type: z.enum(["token", "nft"]).optional().describe("Filter by asset type"),
    },
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It states the tool lists all registered tokens and NFT collections, implying a read-only operation, but does not disclose details like permissions, pagination, or response format. This is adequate for a simple listing tool but lacks depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence that immediately conveys the core function and filtering options. No filler words, highly front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity, the description provides enough information: it lists all registered tokens/NFTs and explains available filters. It lacks details on output structure but is sufficient for a basic listing tool with no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with each parameter having a clear description (e.g., 'Filter by chain ID'). The tool description merely reiterates the filters without adding new semantic meaning beyond the schema, so it meets the baseline for high coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb-resource pair: 'List all registered tokens and NFT collections'. It clearly distinguishes from sibling tools like configure_tokens or configure_nfts, which are for configuration, not listing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains filtering options ('Filter by chain, symbol, or asset type'), giving context on how to narrow results. It does not explicitly contrast with alternatives, but the purpose is straightforward and does not require extensive guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/douglasborthwick-crypto/mcp-server-insumer'

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