events.get
Retrieve a specific Ryft event by its unique identifier to access detailed financial transaction information from the Ryft MCP server.
Instructions
Get a Ryft event by id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| accountId | No |
Implementation Reference
- src/tools/events.ts:32-40 (handler)The handler implementation for the 'events.get' tool, which uses the RyftHttpClient to fetch an event by its ID.
registerTool( 'events.get', 'Get a Ryft event by id.', getEventSchema.shape, async (args) => { const { id, accountId } = getEventSchema.parse(args); return client.get(`/events/${id}`, accountId ? { accountId } : undefined); }, ); - src/tools/events.ts:12-15 (schema)Input validation schema for the 'events.get' tool.
const getEventSchema = z.object({ id: z.string().min(1), accountId: z.string().min(1).optional(), }); - src/tools/events.ts:17-41 (registration)Registration function where 'events.get' tool is defined.
export function registerEventTools(registerTool: ToolRegistrar, client: RyftHttpClient) { 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 } : {}), }); }, ); registerTool( 'events.get', 'Get a Ryft event by id.', getEventSchema.shape, async (args) => { const { id, accountId } = getEventSchema.parse(args); return client.get(`/events/${id}`, accountId ? { accountId } : undefined); }, ); }