Skip to main content
Glama

payoutMethods.update

Modify bank account details for payouts in Ryft MCP, including account numbers and addresses, to ensure accurate fund transfers.

Instructions

Update a Ryft payout method.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdYes
payoutMethodIdYes
displayNameNo
bankAccountYes

Implementation Reference

  • The tool 'payoutMethods.update' is registered here, including its description, input schema, and handler function.
    registerTool(
      'payoutMethods.update',
      'Update a Ryft payout method.',
      updatePayoutMethodSchema.shape,
      async (args) => {
        const parsed = updatePayoutMethodSchema.parse(args);
        const { accountId, payoutMethodId, ...body } = parsed;
        return client.patch(`/accounts/${accountId}/payout-methods/${payoutMethodId}`, body);
      },
    );
  • The handler implementation for 'payoutMethods.update', which parses arguments and performs a PATCH request to the Ryft API.
      async (args) => {
        const parsed = updatePayoutMethodSchema.parse(args);
        const { accountId, payoutMethodId, ...body } = parsed;
        return client.patch(`/accounts/${accountId}/payout-methods/${payoutMethodId}`, body);
      },
    );
  • The Zod schema definition for 'payoutMethods.update' input validation.
    const updatePayoutMethodSchema = z.object({
      accountId: z.string().min(1),
      payoutMethodId: z.string().min(1),
      displayName: z.string().min(1).optional(),
      bankAccount: bankAccountSchema,
    });

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