Skip to main content
Glama
clawallex

Clawallex MCP Server

by clawallex

list_transactions

Retrieve and filter card transaction records for the current agent, enabling payment tracking and financial oversight within the Clawallex payment system.

Instructions

List card transactions for this agent (scoped to the server's client_id). Transactions from other agents using the same API key are not visible. All filter parameters are optional — omit all to list recent transactions across all cards.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
card_tx_idNoFilter by platform transaction ID (e.g. 'ctx_123')
issuer_tx_idNoFilter by issuer transaction ID
card_idNoFilter by card ID (e.g. 'c_123') to get transactions for one card
pageNoPage number, starting from 1 (default 1)
page_sizeNoResults per page, max 100 (default 20)

Implementation Reference

  • The implementation of the list_transactions tool handler, which fetches transaction data from the Clawallex client.
    async (params) => {
      try {
        const query: Record<string, string | number> = {};
        if (params.card_tx_id !== undefined) query.card_tx_id = params.card_tx_id;
        if (params.issuer_tx_id !== undefined) query.issuer_tx_id = params.issuer_tx_id;
        if (params.card_id !== undefined) query.card_id = params.card_id;
        if (params.page !== undefined) query.page = params.page;
        if (params.page_size !== undefined) query.page_size = params.page_size;
    
        const result = await client.get<unknown>("/payment/transactions", query);
        return toolOk(result);
      } catch (err) {
        return toolError(err);
      }
    },
  • Registration of the list_transactions tool with the MCP server.
    server.tool(
      "list_transactions",
      [
        "List card transactions for this agent (scoped to the server's client_id).",
        "Transactions from other agents using the same API key are not visible.",
        "All filter parameters are optional — omit all to list recent transactions across all cards.",
      ].join(" "),
      {
        card_tx_id: z.string().describe("Filter by platform transaction ID (e.g. 'ctx_123')").optional(),
        issuer_tx_id: z.string().describe("Filter by issuer transaction ID").optional(),
        card_id: z.string().describe("Filter by card ID (e.g. 'c_123') to get transactions for one card").optional(),
        page: z.number().int().min(1).default(1).describe("Page number, starting from 1 (default 1)").optional(),
        page_size: z
          .number()
          .int()
          .min(1)
          .max(100)
          .default(20)
          .describe("Results per page, max 100 (default 20)")
          .optional(),
      },
      async (params) => {
        try {
          const query: Record<string, string | number> = {};
          if (params.card_tx_id !== undefined) query.card_tx_id = params.card_tx_id;
          if (params.issuer_tx_id !== undefined) query.issuer_tx_id = params.issuer_tx_id;
          if (params.card_id !== undefined) query.card_id = params.card_id;
          if (params.page !== undefined) query.page = params.page;
          if (params.page_size !== undefined) query.page_size = params.page_size;
    
          const result = await client.get<unknown>("/payment/transactions", query);
          return toolOk(result);
        } catch (err) {
          return toolError(err);
        }
      },
    );
Behavior3/5

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

No annotations provided, so description carries full disclosure burden. Explains visibility scope (client_id isolation) and default ordering ('recent transactions'), but omits rate limits, error behaviors, and side effects. Adequate but not comprehensive behavioral disclosure.

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 efficient sentences with zero waste. Front-loaded with the core action, follows with scope constraints, then usage pattern. Every clause earns its place.

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?

With 100% schema coverage and no output schema, description adequately covers the listing behavior, pagination implications, and scoping rules. Missing explicit return value description (since no output schema exists), but 'List card transactions' implies the return type sufficiently for invocation.

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 coverage is 100%, so parameters are fully self-documenting. Description adds confirmation of optionality ('All filter parameters are optional') and connects the 'omit all' case to the default behavior, adding slight semantic value beyond the schema baseline.

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?

Opens with specific verb 'List' and resource 'card transactions', clearly distinguishing from sibling 'list_cards'. Adds scope qualification '(scoped to the server's client_id)' that clarifies ownership boundary.

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?

Provides clear context on visibility constraints ('Transactions from other agents...are not visible') and filter usage ('All filter parameters are optional — omit all to list recent transactions'). Lacks explicit naming of when to use vs siblings like get_card_details, but the scoping guidance effectively constrains usage.

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/clawallex/clawallex-mcp'

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