QueryPageAnalyticsAPI mirrors the erdo_page_analytics_query MCP tool: run a
read-only HogQL query against the caller org’s page-analytics events. Thin — resolves the caller’s org from ctx and hands the query to the organization service (which re-checks member RBAC and pins the query to the org’s own project). A rejected HogQL propagates as InvalidArgument with PostHog’s own message, deliberately, so the caller can fix and retry.
Authorizations
An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).
Body
Response
Success response
should suggest enabling it rather than treating empty as "no traffic".
nested) because the shape is whatever the caller SELECTed — Encore's API schema has no `any`, and re-marshalling raw cells is lossless anyway.
with Columns; empty when the response omitted them.

