Skip to main content
Glama

customers.update

Modify customer details in Ryft MCP by updating information such as name, contact data, or metadata for accurate record management.

Instructions

Update a Ryft customer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
firstNameNo
lastNameNo
metadataNo

Implementation Reference

  • Registration and implementation of the 'customers.update' tool.
    registerTool(
      'customers.update',
      'Update a Ryft customer.',
      updateCustomerSchema.shape,
      async (args) => {
        const parsed = updateCustomerSchema.parse(args);
        const { id, ...body } = parsed;
        return client.patch(`/customers/${id}`, body);
      },
    );
  • Validation schema for the 'customers.update' tool input.
    const updateCustomerSchema = z.object({
      id: z.string().min(1),
      firstName: z.string().min(1).optional(),
      lastName: z.string().min(1).optional(),
      metadata: z.record(z.string(), z.string()).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