Zum Hauptinhalt springen
10 Min. Lesedauer

Permissions & Limits

This page covers how access control, rate limiting, and error handling work for the Zenovay MCP integration.


API Key Types

When creating an API key, you choose the access scope:

TypeDescriptionlist_websites returns
Full AccessAccess all websites in your teamAll team websites
Site AccessAccess a single website onlyOnly the assigned website

Site-scoped keys cannot query, modify, or even see other websites in the team. Every tool that takes a website_id parameter validates access before executing.


MCP Modes

Each API key can be configured with an MCP access mode:

ModeDescriptionWrite Tools
Read Only (default)Query analytics data, export, view insightsBlocked
Read & WriteFull access including creating goals and funnelsAllowed

Write-Protected Tools

The following tools require Read & Write mode. They will return an error if the key is in Read Only mode:

  • create_goal — Create a custom conversion goal
  • update_goal — Update an existing goal
  • delete_goal — Delete a goal
  • toggle_goal — Enable or disable a goal
  • manage_funnel — Create or update a conversion funnel
  • delete_funnel — Delete a funnel
  • update_website_settings — Modify website configuration
  • toggle_public_dashboard — Enable or disable public dashboard sharing
  • toggle_cookieless_tracking — Enable or disable cookieless tracking mode
  • regenerate_tracking_code — Generate a new tracking code (invalidates the old one)
  • delete_website — Permanently delete a website and all its data
  • add_ip_exclusion — Add an IP address to the exclusion list
  • remove_ip_exclusion — Remove an IP from the exclusion list
  • add_path_exclusion — Add a URL path pattern to exclude from tracking
  • remove_path_exclusion — Remove a path exclusion
  • update_notification_settings — Modify notification preferences
  • invite_team_member — Invite a new member to the team
  • remove_team_member — Remove a member from the team
  • create_api_key — Create a new API key
  • revoke_api_key — Revoke an API key
  • update_api_key_permissions — Update API key MCP permissions
  • create_uptime_monitor — Create a new uptime monitor
  • delete_uptime_monitor — Delete an uptime monitor
  • update_website_name — Update website display name
  • update_website_timezone — Update website timezone
  • update_website_domain — Update website domain
  • pause_tracking — Pause analytics tracking
  • resume_tracking — Resume analytics tracking
  • schedule_report — Schedule a recurring report
  • cancel_report — Cancel a scheduled report
  • set_revenue_currency — Set the revenue display currency
  • add_allowed_domain — Add a domain to the CORS whitelist
  • remove_allowed_domain — Remove a domain from the CORS whitelist
  • request_data_deletion — Delete visitor data for GDPR compliance

All other tools work in both modes.


Feature Group Permissions

MCP tools are organized into 8 feature groups. Each group can be enabled or disabled independently per API key:

GroupToolsDescription
analyticsquery_analytics, get_visitors, get_top_pages, get_traffic_sources, get_geographic_data, get_technology_breakdown, get_realtime_visitors, compare_periodsCore analytics queries
advancedget_funnel_analysis, get_goals, get_session_replays, get_heatmap_data, get_errors, get_b2b_companies, get_revenue, get_performance_metricsAdvanced feature data
ai_insightsget_insights, get_anomalies, get_weekly_digest, get_recommendationsAI-powered analysis
managementlist_websites, create_website, delete_website, create_goal, update_goal, delete_goal, toggle_goal, manage_funnel, delete_funnel, list_funnels, list_goals, export_data, get_api_usage, get_website_settings, update_website_settings, toggle_public_dashboard, toggle_cookieless_tracking, get_tracking_code, regenerate_tracking_code, update_website_name, update_website_timezone, update_website_domain, pause_tracking, resume_tracking, schedule_report, get_report_schedule, cancel_report, get_export_history, get_data_retentionWebsite, conversion, & reporting management
api_keyslist_api_keys, create_api_key, revoke_api_key, get_api_key_details, update_api_key_permissionsAPI key management
uptimelist_uptime_monitors, get_uptime_status, create_uptime_monitor, delete_uptime_monitor, get_uptime_historyUptime monitoring
settingsadd_ip_exclusion, remove_ip_exclusion, add_path_exclusion, remove_path_exclusion, list_exclusions, get_notification_settings, update_notification_settings, set_revenue_currency, get_revenue_settings, add_allowed_domain, remove_allowed_domain, list_allowed_domains, request_data_deletionConfiguration, revenue settings, CORS, & GDPR
teamget_team_members, invite_team_member, remove_team_memberTeam collaboration

When a feature group is disabled, its tools will not appear in tools/list and calls to them will return an error.

Configure feature group permissions in Settings > API Keys > [Key] > MCP tab in your Zenovay Dashboard.


API Key Scope Requirements

Some tools have additional restrictions based on your API key type:

ToolMinimum Key TypeNotes
delete_websiteFull AccessSite-scoped keys cannot delete their own website
invite_team_memberFull AccessRequires team-level access
remove_team_memberFull AccessRequires team-level access
get_team_membersFull AccessRequires team-level access
regenerate_tracking_codeEitherSite-scoped keys can only regenerate their own website's code
All other toolsEitherSite-scoped keys are limited to their assigned website

Plan-Gated Features

Certain tools are tied to features that require specific subscription plans:

FeatureRequired PlanTools Affected
Cookieless trackingPro+toggle_cookieless_tracking
Public dashboardsAll planstoggle_public_dashboard
Team managementPro+invite_team_member, remove_team_member, get_team_members
IP/path exclusionsAll plansadd_ip_exclusion, remove_ip_exclusion, add_path_exclusion, remove_path_exclusion, list_exclusions
Notification settingsAll plansget_notification_settings, update_notification_settings
Revenue settingsAll plansset_revenue_currency, get_revenue_settings
Allowed domainsAll plansadd_allowed_domain, remove_allowed_domain, list_allowed_domains
Data deletion (GDPR)All plansrequest_data_deletion
API key managementPro+list_api_keys, create_api_key, revoke_api_key, get_api_key_details, update_api_key_permissions
Uptime monitoringPro+list_uptime_monitors, get_uptime_status, create_uptime_monitor, delete_uptime_monitor, get_uptime_history
Scheduled reportsPro+schedule_report, get_report_schedule, cancel_report

If you call a plan-gated tool on a plan that doesn't support it, you'll receive error code -32002 (Tier Required). Upgrade your plan at app.zenovay.com/settings.


Plan Enforcement

Zenovay MCP enforces plan limits at the server level. This section covers feature gating, data retention windows, and resource quotas.

Feature-Gated Tools

The following tools require a Pro or higher subscription plan. Free plan users calling these tools receive error code -32002 with the message: "This feature requires a paid plan."

ToolRequired PlanFeature Flag
get_session_replaysPro+sessionReplay
get_heatmap_dataPro+heatmaps
get_revenuePro+revenueAttribution
export_dataScale+dataExport
get_retention_dataPro+retentionAnalysis

Feature flags are checked server-side and cannot be bypassed. Upgrade your plan at app.zenovay.com/settings to unlock gated tools.

Data Retention Limits

Analytics queries are automatically clamped to your plan's data retention window. If your query requests data older than your plan allows, the server adjusts the date range and includes a note in the response.

PlanMax History
Free30 days
Pro2 years (730 days)
Scale4 years (1,460 days)
EnterpriseCustom

For example, a Free plan user can only query the last 30 days of data. Requesting a longer time_range is automatically clamped, and the response includes a retention_note field explaining the limitation.

Quota Limits

Resource creation is limited by plan. Attempting to exceed these limits returns error code -32002.

ResourceFreeProScaleEnterprise
Websites1510Unlimited
Team Members2525Unlimited
API Keys31050Unlimited
MCP Queries/Day2510050010,000

Rate Limits

Daily Query Limit

Each team has a daily MCP query budget based on their subscription plan:

PlanQueries / DayCost per Query
Free251 (standard)
Pro1001 (standard)
Scale5001 (standard)
Enterprise10,0001 (standard)

Important: The daily limit is per team, not per API key. All API keys in the same team share the daily quota.

Usage resets at 00:00 UTC every day.

Query Cost

Most tools cost 1 query. The exception:

ToolCostReason
query_analytics3Uses natural language processing
All other tools1Standard database queries

Per-Minute Rate Limit

In addition to the daily limit, there is a per-minute rate limit of 20 requests per minute per API key to prevent abuse.

Checking Your Usage

Use the get_api_usage tool to check remaining quota at any time:

Check usageJSON
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
  "name": "get_api_usage",
  "arguments": {}
}
}

The response includes mcp.queries_today, mcp.queries_limit, and mcp.reset_at.


Error Codes

MCP uses standard JSON-RPC 2.0 error codes plus custom Zenovay error codes:

Standard JSON-RPC Errors

CodeNameDescription
-32700Parse ErrorInvalid JSON in request body
-32600Invalid RequestMissing jsonrpc or method field
-32601Method Not FoundUnknown method or tool name
-32602Invalid ParamsMissing or invalid tool parameters
-32603Internal ErrorServer-side error

Zenovay MCP Errors

CodeNameDescription
-32001Authentication RequiredMissing or invalid API key
-32002Tier RequiredMCP access requires a higher plan tier
-32003Rate Limit ExceededDaily query limit reached
-32004Permission DeniedAPI key lacks permission for this tool or feature group

Error Response Format

Error response exampleJSON
{
"jsonrpc": "2.0",
"id": 1,
"error": {
  "code": -32003,
  "message": "Daily query limit exceeded. Upgrade at https://app.zenovay.com/settings"
}
}

Common Error Scenarios

ScenarioError CodeResolution
API key not found-32001Check that the key starts with zv_ and is valid
MCP not enabled on key-32001Enable MCP in API key settings
Feature group disabled-32004Enable the feature group in MCP settings
Read-only key calling write tool-32004Switch key to Read & Write mode
Daily limit reached-32003Wait until 00:00 UTC or upgrade plan
Site-scoped key accessing wrong websiteTool errorUse the website ID assigned to this key
Invalid website UUIDTool errorUse list_websites to find valid IDs

Security Best Practices

  1. Use site-scoped keys when you only need to monitor a single website
  2. Keep keys in Read Only mode unless you need to create goals or funnels
  3. Disable unused feature groups to minimize the attack surface
  4. Rotate keys regularly — delete old keys and create new ones from the dashboard
  5. Never commit API keys to source control — use environment variables or secrets managers
  6. Monitor usage — check get_api_usage periodically for unexpected activity
War diese Seite hilfreich?