customers.list
Retrieve customer records from Ryft MCP to manage payment accounts, filter by email or date range, and support financial operations.
Instructions
List Ryft customers.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| startTimestamp | No | ||
| endTimestamp | No | ||
| ascending | No | ||
| limit | No | ||
| startsAfter | No |
Implementation Reference
- src/tools/customers.ts:42-47 (handler)The handler for 'customers.list' which calls the Ryft client to list customers with parsed query parameters.
registerTool( 'customers.list', 'List Ryft customers.', listCustomersSchema.shape, async (args) => client.get('/customers', { query: listCustomersSchema.parse(args) }), ); - src/tools/customers.ts:11-18 (schema)Input validation schema for the 'customers.list' tool.
const listCustomersSchema = z.object({ email: z.string().email().optional(), startTimestamp: z.number().int().optional(), endTimestamp: z.number().int().optional(), ascending: z.boolean().optional(), limit: z.number().int().positive().max(100).optional(), startsAfter: z.string().optional(), }); - src/tools/customers.ts:42-47 (registration)Tool registration for 'customers.list'.
registerTool( 'customers.list', 'List Ryft customers.', listCustomersSchema.shape, async (args) => client.get('/customers', { query: listCustomersSchema.parse(args) }), );