MCP gives agents hands on your Karzoun data. These patterns help you get reliable results without repeating yourself in every chat.
Coming soon: screenshot of an agent listing customers and applying tags via Karzoun MCP tools.
For hosted connections (Claude.ai, Manus, remote Cursor), see AI app connectors — same tools, different client config.
Add a short system or project instruction so the model knows Karzoun tools exist:
You have Karzoun MCP tools for CRM and workspace data.
- Prefer read tools (customers, tags, customerDetail) before mutations.
- Use page: 1, perPage: 10 for list queries unless I ask for more.
- Confirm destructive actions (customersRemove, tagsRemove) before calling.Point the agent at this docs site for operation names: tool catalog.
| Step | Tool | Why |
|---|---|---|
| 1 | customers with searchValue | Find the right record |
| 2 | customerDetail with _id | Full context (tags, owner, custom fields) |
| 3 | customersEdit or tagsTag | Mutate with confidence |
Example prompt: "Find customer with email alice@example.com, show their tags, then add tag VIP if missing."
Start read-only with a tool prefix:
"KARZOUN_MCP_TOOL_PREFIX": "customer"Or instruct: "Only use query tools for the next five messages."
Use currentUser to verify the token works and see which workspace identity the app runs as.
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:
{ "page": 1, "perPage": 5 }See pagination for pagination.totalCount and hasNextPage.
| Goal | Tools |
|---|---|
| Dedupe check | customers + searchValue, then customerDetail on candidates |
| Merge | customersMerge (confirm with user first) |
| Tag campaigns | tags → tagsTag on customer ids |
| Product lookup | products → productDetail |
For integration debugging (not provider webhooks):
webhooks— list subscriptionswebhookDetail— inspect configwebhookDeliveryLogs— see failures and HTTP status codes
Pair with the webhooks guide for tenant outbound events.
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
Do not expose the session or token to end users. Details: Hosted MCP.
| Avoid | Do instead |
|---|---|
| "Do everything with Karzoun" (vague) | Name tools or outcomes: "list open tags" |
Huge perPage on first call | Start with 5–20 rows |
| Mutations without confirmation | Ask agent to propose, then execute |
| Embedding tokens in Cursor rules | Keep tokens in MCP env or server secrets |
| Using MCP in frontend JavaScript | GraphQL from backend, or hosted MCP server-side only |
Optional .cursor/rules/karzoun-mcp.mdc:
# Karzoun MCP
- Use Karzoun tools for live CRM data; do not invent customer ids.
- After mutations, summarize what changed and link to relevant record ids.
- On permission errors, tell the user to check Developer → Apps scopes.