HomeVendure FrameworkMoreMoreMCP SDKIdSchemaIdSchema@vendure/mcp-sdkSourcev3.8.0 A Zod schema for a Vendure entity ID. It accepts a string or a number, because the project's ID strategy decides which one an ID is. Example Tsimport { idSchema, MAX_ID_LIST_LENGTH } from '@vendure/mcp-sdk';import { z } from 'zod';const input = z.strictObject({ productId: idSchema.describe('The product to update.'), assetIds: z.array(idSchema).max(MAX_ID_LIST_LENGTH).optional(),});Was this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousGRAPHQL_INT_MINNextInt32SchemaEdited Oct 1, 2026·View source