Ground the agent first
Add a short system or project instruction so the model knows Karzoun tools exist:Pattern: Lookup before action
Example prompt: “Find customer with email alice@example.com, show their tags, then add tag VIP if missing.”
Pattern: Safe exploration
Start read-only with a tool prefix:currentUser to verify the token works and see which workspace identity the app runs as.
Pattern: Paginated lists
Agents often fetch unbounded lists and hit the 512 KB response cap. Good prompt: “List the first 5 customers created this month using page 1 and perPage 5.” Tool args example:pagination.totalCount and hasNextPage.
Pattern: CRM hygiene
Pattern: Webhook inspection
For integration debugging (not provider webhooks):webhooks— list subscriptionswebhookDetail— inspect configwebhookDeliveryLogs— see failures and HTTP status codes
Pattern: Hosted backend agent
For server-side workers calling/mcp:
- Store
KARZOUN_APP_TOKENin secrets manager initialize→ capturemcp-session-idtools/callin a loop with explicit tool names- Log GraphQL errors from tool responses
Anti-patterns
Custom rules in Cursor
Optional.cursor/rules/karzoun-mcp.mdc: