Skip to main content
Glama

events.list

Retrieve a list of Ryft events to monitor payment sessions, customers, subscriptions, payouts, and disputes. Filter by account and control sorting and limits.

Instructions

List Ryft events.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ascendingNo
limitNo
accountIdNo

Implementation Reference

  • The registration of the 'events.list' tool, which includes the handler implementation inline.
    registerTool(
      'events.list',
      'List Ryft events.',
      listEventsSchema.shape,
      async (args) => {
        const parsed = listEventsSchema.parse(args);
        const { accountId, ...query } = parsed;
        return client.get('/events', {
          query: query as Record<string, QueryValue>,
          ...(accountId ? { accountId } : {}),
        });
      },
    );
  • The Zod schema definition for the arguments accepted by 'events.list'.
    const listEventsSchema = z.object({
      ascending: z.boolean().optional(),
      limit: z.number().int().positive().max(100).optional(),
      accountId: z.string().min(1).optional(),
    });

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/bkawk/ryft-mcp'

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