Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes
accountIdNo

Implementation Reference

  • 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);
      },
    );
  • Input validation schema for the 'events.get' tool.
    const getEventSchema = z.object({
      id: z.string().min(1),
      accountId: z.string().min(1).optional(),
    });
  • 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);
        },
      );
    }

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