:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"dateRange": {
"properties": {
"date_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Start of the date range. Accepts ISO 8601 timestamps (e.g., 2024-01-15T00:00:00Z) or relative formats: -7d (7 days ago), -2w (2 weeks ago), -1m (1 month ago),\n-1h (1 hour ago), -1mStart (start of last month), -1yStart (start of last year)."
},
"date_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "End of the date range. Same format as date_from. Omit or null for \"now\". A calendar day without a time (2024-01-15) is inclusive: it rounds to the last moment of that day in the project timezone, unless explicitDate is set."
},
"daysOfWeek": {
"anyOf": [
{
"items": {
"anyOf": [
{
"const": 1,
"type": "number"
},
{
"const": 2,
"type": "number"
},
{
"const": 3,
"type": "number"
},
{
"const": 4,
"type": "number"
},
{
"const": 5,
"type": "number"
},
{
"const": 6,
"type": "number"
},
{
"const": 7,
"type": "number"
}
]
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Restrict the query to events occurring on these ISO days of week (1=Monday to 7=Sunday), evaluated in the project timezone. Omit or empty for all days. Only applied by insight queries."
},
"excludeIncompletePeriods": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": false,
"description": "Exclude the current, still-collecting period by clipping date_to to the end of the last complete interval (evaluated in the project timezone). No-op when the range contains no complete interval. Only applied by insight queries."
},
"explicitDate": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": false,
"description": "Whether the date_from and date_to should be used verbatim. Disables rounding to the start and end of period."
}
},
"type": "object"
},
"filterTestAccounts": {
"description": "Exclude reports from the project's internal and test users.",
"type": "boolean"
},
"kind": {
"const": "MCPMissingCapabilitiesQuery",
"default": "MCPMissingCapabilitiesQuery",
"type": "string"
},
"limit": {
"description": "Page size; defaults to 100, capped at 500.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"offset": {
"description": "Reports to skip before returning results. Combine with limit to page through them; the response's has_next flag indicates whether more remain.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"search": {
"description": "Case-insensitive substring match over the report text.",
"type": "string"
}
},
"type": "object"
}