Skip to main content
Glama

insumer_list_merchants

Browse merchants from the public directory. Filter by accepted token symbol (e.g., UNI) and verification status. Returns company name, website, tokens accepted, and discount info.

Instructions

Browse merchants in the public directory. Filter by accepted token, verification status. Returns company name, website, tokens accepted, and discount info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenNoFilter by accepted token symbol, e.g. 'UNI'
verifiedNoFilter by domain verification status
limitNoResults per page (default 50, max 200)
offsetNoPagination offset (default 0)

Implementation Reference

  • The handler function for insumer_list_merchants. Builds query params from optional token/verified/limit/offset args, sends a GET request to /merchants, and returns the formatted JSON result.
    async (args) => {
      const params = new URLSearchParams();
      if (args.token) params.set("token", args.token);
      if (args.verified) params.set("verified", args.verified);
      if (args.limit !== undefined) params.set("limit", String(args.limit));
      if (args.offset !== undefined) params.set("offset", String(args.offset));
      const qs = params.toString();
      const url = `${API_BASE}/merchants${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_merchants: optional token (string), verified (enum 'true'/'false'), limit (1-200 int), offset (non-negative int).
    {
      token: z.string().optional().describe("Filter by accepted token symbol, e.g. 'UNI'"),
      verified: z.enum(["true", "false"]).optional().describe("Filter by domain verification status"),
      limit: z.number().int().min(1).max(200).optional().describe("Results per page (default 50, max 200)"),
      offset: z.number().int().min(0).optional().describe("Pagination offset (default 0)"),
    },
  • src/index.ts:351-375 (registration)
    Registration of the insumer_list_merchants tool using server.tool() with name, description, Zod schema, and handler.
    server.tool(
      "insumer_list_merchants",
      "Browse merchants in the public directory. Filter by accepted token, verification status. Returns company name, website, tokens accepted, and discount info.",
      {
        token: z.string().optional().describe("Filter by accepted token symbol, e.g. 'UNI'"),
        verified: z.enum(["true", "false"]).optional().describe("Filter by domain verification status"),
        limit: z.number().int().min(1).max(200).optional().describe("Results per page (default 50, max 200)"),
        offset: z.number().int().min(0).optional().describe("Pagination offset (default 0)"),
      },
      async (args) => {
        const params = new URLSearchParams();
        if (args.token) params.set("token", args.token);
        if (args.verified) params.set("verified", args.verified);
        if (args.limit !== undefined) params.set("limit", String(args.limit));
        if (args.offset !== undefined) params.set("offset", String(args.offset));
        const qs = params.toString();
        const url = `${API_BASE}/merchants${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);
      }
    );
  • Helper function formatResult used by the handler to format API responses as MCP text content, setting isError flag when the API returns ok: false.
    function formatResult(result: {
      ok: boolean;
      data?: unknown;
      error?: unknown;
      meta?: unknown;
    }) {
      if (result.ok) {
        return {
          content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }],
        };
      }
      return {
        content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }],
        isError: true,
      };
    }
Behavior3/5

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

No annotations are provided, so the description carries the burden. It implies read-only by saying 'Browse' but does not explicitly state it is a safe read operation. It also lacks details on authentication, rate limits, or pagination behavior beyond parameters.

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?

Two sentences, no wasted words. Purpose is front-loaded in the first sentence, followed by filters and output. Highly efficient.

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?

Despite lacking annotations and output schema, the description covers the core action, filters, and return fields. It omits pagination behavior but the schema handles that. Reasonably complete for a list tool.

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?

All parameters have descriptions in the schema (100% coverage), so baseline is 3. The description restates filtering but adds no extra meaning beyond the schema. The mention of return fields is helpful but not parameter-related.

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 clearly states the action ('Browse'), resource ('merchants in the public directory'), and what is returned. It distinguishes from siblings like 'insumer_get_merchant' (single) and 'insumer_create_merchant' (write).

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

Usage Guidelines3/5

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

The description implies usage for listing merchants but does not explicitly contrast with other tools or provide when-to-use guidance. No mention of alternatives or exclusions.

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