find_customer
Retrieve a complete customer object by email or ID, including loyalty summary when available.
Instructions
Find a customer by email or ID and return complete customer object.
Lookup Behavior:
ID lookup: Direct retrieval by customer ID (faster, more reliable)
Email lookup: Searches customers and returns first match (case-insensitive)
Returns complete customer object including loyalty summary when available
Parameters:
email: Valid email address for customer search
id: Customer identifier with 'cust_' prefix for direct lookup
Validation Rules:
Exactly one parameter (email OR id) must be provided
Email must be valid email format
ID must start with 'cust_' prefix
Examples:
find_customer(email="john.doe@example.com")
find_customer(id="cust_abc123def456")
Returns: JSON object containing complete customer data including:
id, source_id, email, name
metadata (custom attributes)
loyalty summary (points, tier, etc.) when available
creation and update timestamps
Raises:
ToolError: If both/neither parameters provided, customer not found, or invalid format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |