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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| firstName | No | ||
| lastName | No | ||
| metadata | No |
Implementation Reference
- src/tools/customers.ts:49-58 (handler)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); }, ); - src/tools/customers.ts:20-25 (schema)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(), });