High Risk →

Run-Query

Run a single analytics query and return its results directly. Use this whenever the user requests a chart, a report, a metric, explore a behavior or root cause, or asks to "create a report". Returns results to chain queries iteratively. Only use skip_results=true when bui...

Single-target operation; Admin/system-level operation

Part of the Mixpanel MCP server. Enforce policies on this tool with Intercept, the open-source MCP proxy.

@mixpanel-mcp-server Execute Risk 3/5

AI agents invoke Run-Query to trigger processes or run actions in Mixpanel. Execute operations can have side effects beyond the immediate call -- triggering builds, sending notifications, or starting workflows. Rate limits and argument validation are essential to prevent runaway execution.

Run-Query can trigger processes with real-world consequences. An uncontrolled agent might start dozens of builds, send mass notifications, or kick off expensive compute jobs. Intercept enforces rate limits and validates arguments to keep execution within safe bounds.

Execute tools trigger processes. Rate-limit and validate arguments to prevent unintended side effects.

mixpanel.yaml
tools:
  Run-Query:
    rules:
      - action: allow
        rate_limit:
          max: 10
          window: 60
        validate:
          required_args: true

See the full Mixpanel policy for all 30 tools.

Tool Name Run-Query
Category Execute
MCP Server Mixpanel MCP Server
Risk Level High

View all 30 tools →

Agents calling execute-class tools like Run-Query have been implicated in these attack patterns. Read the full case and prevention policy for each:

Browse the full MCP Attack Database →

Other tools in the Execute risk category across the catalogue. The same policy patterns (rate-limit, validate) apply to each.

Run-Query is one of the high-risk operations in Mixpanel. For the full severity-focused view — only the high-risk tools with their recommended policies — see the breakdown for this server, or browse all high-risk tools across every MCP server.

What does the Run-Query tool do? +

Run a single analytics query and return its results directly. Use this whenever the user requests a chart, a report, a metric, explore a behavior or root cause, or asks to "create a report". Returns results to chain queries iteratively. Only use skip_results=true when building a dashboard or you won't use the results. Report types: - insights: Basic report, supports different chart types, trends, and metric aggregations. - funnels: Conversion rates between sequential events within a time window. Requires at least 2 steps. - flows: Most frequent user paths to or from events. Shows steps before/after/between events as a sankey or paths chart. - retention: User engagement over time. Requires exactly 2 events: an initial action and a retention action. For very simple insights queries, use this schema as the `report` parameter: { "name": "string", "metrics": [ { "eventName": "string", "measurement": { "type": "basic", "math": "total | unique" } } ], "chartType": "table | line | bar", "unit": "hour | day | week | month", "dateRange": { "type": "relative", "range": { "unit": "day | week | month", "value": "integer" } } } For more elaborated queries, with multiple events, filters, breakdowns, formulas or advanced measurements you must call Get-Query-Schema(report_type: 'insights'|'funnels'|'flows'|'retention') first to see the full schema for the `report` parameter. Keep responses compact: prefer short date ranges (7-30 days) or coarser granularity (week/month), and avoid combining many breakdowns with fine-grained time series.. It is categorised as a Execute tool in the Mixpanel MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

How do I enforce a policy on Run-Query? +

Add a rule in your Intercept YAML policy under the tools section for Run-Query. You can allow, deny, rate-limit, or validate arguments. Then run Intercept as a proxy in front of the Mixpanel MCP server.

What risk level is Run-Query? +

Run-Query is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit Run-Query? +

Yes. Add a rate_limit block to the Run-Query rule in your Intercept policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block Run-Query completely? +

Set action: deny in the Intercept policy for Run-Query. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides Run-Query? +

Run-Query is provided by the Mixpanel MCP server (@mixpanel-mcp-server). Intercept sits as a proxy in front of this server to enforce policies before tool calls reach the server.

Enforce policies on Mixpanel

Open source. One binary. Zero dependencies.

npx -y @policylayer/intercept
github.com/policylayer/intercept →
// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.