Skip to main content
Glama

get_incoming_summary

Generate period-based summaries of incoming transactions with daily, weekly, or monthly totals converted to USD for crypto wallet analysis.

Instructions

Get a period-based summary of incoming transactions (daily/weekly/monthly totals with USD conversion).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
periodNoAggregation period: daily, weekly, or monthly (default: daily)
chainNoFilter by chain (solana or ethereum)
networkNoFilter by network
sinceNoSummary start epoch (seconds)
untilNoSummary end epoch (seconds)
wallet_idNoTarget wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.

Implementation Reference

  • The handler function for the 'get_incoming_summary' tool, which constructs query parameters and fetches the summary from the API.
    async (args) => {
      const params = new URLSearchParams();
      if (args.period !== undefined) params.set('period', args.period);
      if (args.chain !== undefined) params.set('chain', args.chain);
      if (args.network !== undefined) params.set('network', args.network);
      if (args.since !== undefined) params.set('since', String(args.since));
      if (args.until !== undefined) params.set('until', String(args.until));
      if (args.wallet_id) params.set('wallet_id', args.wallet_id);
      const qs = params.toString();
      const result = await apiClient.get(`/v1/wallet/incoming/summary${qs ? `?${qs}` : ''}`);
      return toToolResult(result);
    },
  • Zod schema defining the input arguments for 'get_incoming_summary'.
    {
      period: z.string().optional().describe('Aggregation period: daily, weekly, or monthly (default: daily)'),
      chain: z.string().optional().describe('Filter by chain (solana or ethereum)'),
      network: z.string().optional().describe('Filter by network'),
      since: z.number().optional().describe('Summary start epoch (seconds)'),
      until: z.number().optional().describe('Summary end epoch (seconds)'),
      wallet_id: z.string().optional().describe('Target wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.'),
    },
  • Function that registers the 'get_incoming_summary' tool with the MCP server.
    export function registerGetIncomingSummary(
      server: McpServer,
      apiClient: ApiClient,
      walletContext?: WalletContext,
    ): void {
      server.tool(
        'get_incoming_summary',
        withWalletPrefix(
          'Get a period-based summary of incoming transactions (daily/weekly/monthly totals with USD conversion).',
          walletContext?.walletName,
        ),
        {
          period: z.string().optional().describe('Aggregation period: daily, weekly, or monthly (default: daily)'),
          chain: z.string().optional().describe('Filter by chain (solana or ethereum)'),
          network: z.string().optional().describe('Filter by network'),
          since: z.number().optional().describe('Summary start epoch (seconds)'),
          until: z.number().optional().describe('Summary end epoch (seconds)'),
          wallet_id: z.string().optional().describe('Target wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.'),
        },
        async (args) => {
          const params = new URLSearchParams();
          if (args.period !== undefined) params.set('period', args.period);
          if (args.chain !== undefined) params.set('chain', args.chain);
          if (args.network !== undefined) params.set('network', args.network);
          if (args.since !== undefined) params.set('since', String(args.since));
          if (args.until !== undefined) params.set('until', String(args.until));
          if (args.wallet_id) params.set('wallet_id', args.wallet_id);
          const qs = params.toString();
          const result = await apiClient.get(`/v1/wallet/incoming/summary${qs ? `?${qs}` : ''}`);
          return toToolResult(result);
        },
      );
    }

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/minhoyoo-iotrust/WAIaaS'

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