: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
feat(error-tracking): return compact rows from the issues list mcp tool (#107538)
Hugues Pouillot9f4a162014c4
diff --git a/products/error_tracking/backend/facade/query_utils.py b/products/error_tracking/backend/facade/query_utils.pyindex 8f52d8d4ba45..3b14a41b1237 100644--- a/products/error_tracking/backend/facade/query_utils.py+++ b/products/error_tracking/backend/facade/query_utils.py@@ -6,6 +6,8 @@ from typing import castfrom posthog.hogql.escape_sql import escape_hogql_stringMAX_NORMALIZED_TEXT_CHARS = 1000+# The issue detail tool returns the full description, so list rows keep only a preview.+MAX_LIST_DESCRIPTION_CHARS = 300ISSUE_FIELDS = ["id",@@ -189,6 +191,19 @@ def pick_fields(record: dict[str, object], fields: list[str]) -> dict[str, objecreturn {field: record[field] for field in fields if field in record}+def build_list_issue(issue: dict[str, object], include_volume: bool) -> dict[str, object]:+ row = pick_fields(issue, LIST_ISSUE_FIELDS)+ if "description" in row:+ row["description"] = truncate_text(row["description"], MAX_LIST_DESCRIPTION_CHARS)+ aggregations = as_record(row.get("aggregations"))+ if aggregations is not None and not include_volume:+ # The query always computes one volume bucket, which only repeats the occurrence count.+ row["aggregations"] = {+ key: value for key, value in aggregations.items() if key not in {"volumeRange", "volume_buckets"}+ }+ return row++def to_number(value: object) -> float | None:if isinstance(value, bool) or not isinstance(value, int | float):return None@@ -210,11 +225,11 @@ def parse_jsonish(value: object) -> object:return parsed-def truncate_text(value: object) -> object:- if not isinstance(value, str) or len(value) <= MAX_NORMALIZED_TEXT_CHARS:+def truncate_text(value: object, max_chars: int = MAX_NORMALIZED_TEXT_CHARS) -> object:+ if not isinstance(value, str) or len(value) <= max_chars:return valuesuffix = f"… [truncated from {len(value)} chars]"- return f"{value[: MAX_NORMALIZED_TEXT_CHARS - len(suffix)]}{suffix}"+ return f"{value[: max_chars - len(suffix)]}{suffix}"def as_record(value: object) -> dict[str, object] | None:diff --git a/products/error_tracking/backend/presentation/views/query.py b/products/error_tracking/backend/presentation/views/query.pyindex 65eb00bae3df..5638f4e3b47f 100644--- a/products/error_tracking/backend/presentation/views/query.py+++ b/products/error_tracking/backend/presentation/views/query.py@@ -26,13 +26,13 @@ from products.error_tracking.backend.facade.query_utils import (CONTEXT_EVENT_SELECTS,DEFAULT_EVENT_CONTEXT_INCLUDES,ISSUE_FIELDS,- LIST_ISSUE_FIELDS,build_date_range,build_event_selects,build_impact,build_issue_event_where,build_issue_filters,build_issue_where,+ build_list_issue,build_property_group,build_search_query,build_sparkline,@@ -71,7 +71,7 @@ class ErrorTrackingQueryViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):def issues(self, request: ValidatedRequest, **kwargs: object) -> Response:params = dict(request.validated_data)filters = build_issue_filters(params)- limit = cast(int, params.get("limit", 25))+ limit = cast(int, params.get("limit", 10))offset = cast(int, params.get("offset", 0))assignee = params.get("assignee")person_id = params.get("personId")@@ -98,7 +98,10 @@ class ErrorTrackingQueryViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):data = query_facade.run_error_tracking_query(self.team, query)raw_results_value = data.get("results")raw_results: list[object] = raw_results_value if isinstance(raw_results_value, list) else []- results = [pick_fields(cast(dict[str, object], issue), LIST_ISSUE_FIELDS) for issue in raw_results[:limit]]+ results = [+ build_list_issue(cast(dict[str, object], issue), include_volume=volume_resolution > 0)+ for issue in raw_results[:limit]+ ]has_more, next_offset = get_page_info(data, limit, offset)payload: dict[str, object] = {"results": results, "hasMore": has_more, "limit": limit, "offset": offset}if next_offset is not None:diff --git a/products/error_tracking/backend/presentation/views/query_serializers.py b/products/error_tracking/backend/presentation/views/query_serializers.pyindex 4fa8b788def9..3ebcf39e5fe3 100644--- a/products/error_tracking/backend/presentation/views/query_serializers.py+++ b/products/error_tracking/backend/presentation/views/query_serializers.py@@ -133,14 +133,20 @@ class ErrorTrackingIssuesListQueryRequestSerializer(serializers.Serializer):orderDirection = serializers.ChoiceField(choices=["ASC", "DESC"], required=False, default="DESC", help_text="Sort direction. Defaults to DESC.")- limit = serializers.IntegerField(required=False, min_value=1, max_value=100, default=25, help_text="Page size.")+ limit = serializers.IntegerField(+ required=False,+ min_value=1,+ max_value=100,+ default=10,+ help_text="Page size. Defaults to 10. Use nextOffset to fetch more rows instead of a large page.",+ )offset = serializers.IntegerField(required=False, min_value=0, default=0, help_text="Pagination offset.")volumeResolution = serializers.IntegerField(required=False,min_value=0,max_value=200,default=0,- help_text="Number of volume buckets. Defaults to 0 for compact aggregate counts.",+ help_text="Number of volume buckets. Defaults to 0, which returns only aggregate counts without volume buckets.",)library = StringOrStringListField(required=False, help_text="Filter by SDK/library value from event $lib, for example posthog-js."@@ -270,7 +276,11 @@ class ErrorTrackingAggregationsSerializer(ErrorTrackingImpactSerializer):class ErrorTrackingIssueListItemSerializer(serializers.Serializer):id = serializers.UUIDField(help_text="Error tracking issue ID.")name = serializers.CharField(required=False, allow_null=True, help_text="Issue name.")- description = serializers.CharField(required=False, allow_null=True, help_text="Issue description.")+ description = serializers.CharField(+ required=False,+ allow_null=True,+ help_text="Issue description. List rows truncate it to a short preview; the issue detail query returns it in full.",+ )status = serializers.CharField(required=False, help_text="Issue status.")severity = ErrorTrackingIssueSeverityField(choices=contracts.ERROR_TRACKING_ISSUE_SEVERITIES,diff --git a/products/error_tracking/backend/tests/api/test_query_api.py b/products/error_tracking/backend/tests/api/test_query_api.pyindex 1969840be6cb..ab77d552ba28 100644--- a/products/error_tracking/backend/tests/api/test_query_api.py+++ b/products/error_tracking/backend/tests/api/test_query_api.py@@ -270,22 +270,49 @@ class TestErrorTrackingQueryAPI(ClickhouseTestMixin, APIBaseTest):assert response.status_code == 200assert observed_tags == [(Product.ERROR_TRACKING, Feature.QUERY)]- def test_issues_list_normalizes_volume_resolution(self) -> None:- observed_volume_resolutions: list[int] = []+ @parameterized.expand(+ [+ ("counts_only", {"volumeResolution": 0}, 1, False),+ ("with_volume", {"volumeResolution": 1}, 1, True),+ ]+ )+ def test_issues_list_returns_compact_rows(+ self, _name: str, data: dict[str, object], expected_resolution: int, expect_volume: bool+ ) -> None:+ observed_queries: list[tuple[int, int | None]] = []def calculate(runner: ErrorTrackingQueryRunner) -> FakeQueryResponse:- observed_volume_resolutions.append(runner.query.volumeResolution)- return FakeQueryResponse({"results": [], "hasMore": False, "limit": 25, "offset": 0})+ observed_queries.append((runner.query.volumeResolution, runner.query.limit))+ issue = {+ "id": self.issue_id,+ "name": "TypeError",+ "description": "x" * 2000,+ "status": "active",+ "aggregations": {+ "occurrences": 3,+ "users": 2,+ "sessions": 1,+ "volumeRange": [3],+ "volume_buckets": [{"label": "2026-04-17T12:00:00+00:00", "value": 3}],+ },+ }+ return FakeQueryResponse({"results": [issue], "hasMore": False, "limit": 10, "offset": 0})with patch("products.error_tracking.backend.facade.queries.ErrorTrackingQueryRunner.calculate", calculate):response = self.client.post(f"/api/environments/{self.team.id}/error_tracking/query/issues",- data={"volumeResolution": 0},+ data=data,format="json",)assert response.status_code == 200- assert observed_volume_resolutions == [1]+ assert observed_queries == [(expected_resolution, 10)]+ row = response.json()["results"][0]+ assert len(row["description"]) == 300+ assert row["description"].endswith("[truncated from 2000 chars]")+ assert row["aggregations"]["occurrences"] == 3+ assert ("volumeRange" in row["aggregations"]) is expect_volume+ assert ("volume_buckets" in row["aggregations"]) is expect_volumedef test_issue_detail_tags_clickhouse_queries(self) -> None:self.create_issue()diff --git a/products/error_tracking/frontend/generated/api.schemas.ts b/products/error_tracking/frontend/generated/api.schemas.tsindex 599bb6509533..dd0c9b6340eb 100644--- a/products/error_tracking/frontend/generated/api.schemas.ts+++ b/products/error_tracking/frontend/generated/api.schemas.ts@@ -1217,7 +1217,7 @@ export interface ErrorTrackingIssueDetailApi {*/name?: string | null/**- * Issue description.+ * Issue description. List rows truncate it to a short preview; the issue detail query returns it in full.* @nullable*/description?: string | null@@ -1580,7 +1580,7 @@ export interface ErrorTrackingIssuesListQueryRequestApi {* * `DESC` - DESC */orderDirection?: OrderDirectionEnumApi/**- * Page size.+ * Page size. Defaults to 10. Use nextOffset to fetch more rows instead of a large page.* @minimum 1* @maximum 100*/@@ -1591,7 +1591,7 @@ export interface ErrorTrackingIssuesListQueryRequestApi {*/offset?: number/**- * Number of volume buckets. Defaults to 0 for compact aggregate counts.+ * Number of volume buckets. Defaults to 0, which returns only aggregate counts without volume buckets.* @minimum 0* @maximum 200*/@@ -1633,7 +1633,7 @@ export interface ErrorTrackingIssueListItemApi {*/name?: string | null/**- * Issue description.+ * Issue description. List rows truncate it to a short preview; the issue detail query returns it in full.* @nullable*/description?: string | nulldiff --git a/products/error_tracking/frontend/generated/api.zod.ts b/products/error_tracking/frontend/generated/api.zod.tsindex 69c45b4e26e7..7b69071140b2 100644--- a/products/error_tracking/frontend/generated/api.zod.ts+++ b/products/error_tracking/frontend/generated/api.zod.ts@@ -800,7 +800,7 @@ export const errorTrackingQueryIssuesListCreateBodyFilterGroupItemOperatorDefaulexport const errorTrackingQueryIssuesListCreateBodyFilterGroupItemTypeDefault = `event`export const errorTrackingQueryIssuesListCreateBodyOrderByDefault = `occurrences`export const errorTrackingQueryIssuesListCreateBodyOrderDirectionDefault = `DESC`-export const errorTrackingQueryIssuesListCreateBodyLimitDefault = 25+export const errorTrackingQueryIssuesListCreateBodyLimitDefault = 10export const errorTrackingQueryIssuesListCreateBodyLimitMax = 100export const errorTrackingQueryIssuesListCreateBodyOffsetDefault = 0@@ -978,7 +978,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object.min(1).max(errorTrackingQueryIssuesListCreateBodyLimitMax).default(errorTrackingQueryIssuesListCreateBodyLimitDefault)- .describe('Page size.'),+ .describe('Page size. Defaults to 10. Use nextOffset to fetch more rows instead of a large page.'),offset: zod.number().min(errorTrackingQueryIssuesListCreateBodyOffsetMin)@@ -989,7 +989,9 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object.min(errorTrackingQueryIssuesListCreateBodyVolumeResolutionMin).max(errorTrackingQueryIssuesListCreateBodyVolumeResolutionMax).default(errorTrackingQueryIssuesListCreateBodyVolumeResolutionDefault)- .describe('Number of volume buckets. Defaults to 0 for compact aggregate counts.'),+ .describe(+ 'Number of volume buckets. Defaults to 0, which returns only aggregate counts without volume buckets.'+ ),library: zod.union([zod.string(), zod.array(zod.string()).min(1)]).optional()diff --git a/products/error_tracking/mcp/prompts/query-error-tracking-issues-list.md b/products/error_tracking/mcp/prompts/query-error-tracking-issues-list.mdindex 8d597579053f..6870f7a16e53 100644--- a/products/error_tracking/mcp/prompts/query-error-tracking-issues-list.md+++ b/products/error_tracking/mcp/prompts/query-error-tracking-issues-list.md@@ -2,7 +2,9 @@ List and filter Error tracking issues. Returns compact issue rows with aggregateUse this first when the user asks which errors are happening, which errors are most common, or wants to narrow issues by status, severity, release, library, fingerprint, URL, user, person, or properties.-Defaults are intentionally useful: active issues, last 7 days, sorted by occurrences, test accounts filtered out, and compact aggregate counts.+Defaults are intentionally useful: active issues, last 7 days, sorted by occurrences, test accounts filtered out, 10 rows per page, and compact aggregate counts. Each row carries a short `description` preview. Use `query-error-tracking-issue` for the full description.++Keep `limit` small. When `hasMore` is true and you need more rows, fetch the next page with `offset` set to `nextOffset`. Set `volumeResolution` only when the user asks for volume over time.For all-time issue counts by status or severity, query `system.error_tracking_issues` with `posthog:execute-sql`. The table follows the connected user's Error tracking access and only returns issues from the current project. This list tool only includes issues observed during `dateRange`.diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex cd8aa46f6700..d8944f791c68 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -9425,7 +9425,7 @@"system_prompt_hint": "Error event samples, stack traces, code variables, and session IDs (error-tracking category)"},"query-error-tracking-issues-list": {- "description": "List and filter Error tracking issues. Returns compact issue rows with aggregate impact counts (`occurrences`, `users`, `sessions`) and optional volume buckets.\n\nUse this first when the user asks which errors are happening, which errors are most common, or wants to narrow issues by status, severity, release, library, fingerprint, URL, user, person, or properties.\n\nDefaults are intentionally useful: active issues, last 7 days, sorted by occurrences, test accounts filtered out, and compact aggregate counts.\n\nFor all-time issue counts by status or severity, query `system.error_tracking_issues` with `posthog:execute-sql`. The table follows the connected user's Error tracking access and only returns issues from the current project. This list tool only includes issues observed during `dateRange`.\n\nBe minimalist. Only add filters needed to answer the user’s question. Do not add \"is set\" filters unless the user explicitly asks for them.\n\n# Common filters\n\n- `status`: `active`, `resolved`, `suppressed`, `pending_release`, `archived`, or `all`. Defaults to `active`.\n- `searchQuery`: free-text search for exception names, values, stack frames, and email text.\n- `library`: exact `$lib` match, for example `posthog-js`.\n- `release`: exact release ID, release version, or git commit ID captured in `$exception_releases`. This intentionally does not match project name, branch, or timestamp fragments.\n- `fingerprint`: exact `$exception_fingerprint` match.\n- `url`: substring match on `$current_url`.\n- `personId`: exact PostHog person UUID.\n- `user`: user/email text search.\n- `filePath`: stack-frame file/source text search.\n- `filterGroup`: advanced flat AND property filters. Prefer typed fields above when they fit. For severity, use type `error_tracking_issue`, key `severity`, and `exact`, `is_set`, or `is_not_set`.\n\nUse `dateRange` for time, not property filters. Omit `date_to` for now.\n\n# Next steps\n\n- Use `query-error-tracking-issue` with `issueId` to inspect one issue.\n- Use `query-error-tracking-issue-events` with `issueId` to fetch sampled exception events, stack traces, URLs, and `$session_id` values.\n- If the user asks what people were doing before the error, use `$session_id` values from issue events with `query-session-recordings-list` and its `session_ids` parameter.",+ "description": "List and filter Error tracking issues. Returns compact issue rows with aggregate impact counts (`occurrences`, `users`, `sessions`) and optional volume buckets.\n\nUse this first when the user asks which errors are happening, which errors are most common, or wants to narrow issues by status, severity, release, library, fingerprint, URL, user, person, or properties.\n\nDefaults are intentionally useful: active issues, last 7 days, sorted by occurrences, test accounts filtered out, 10 rows per page, and compact aggregate counts. Each row carries a short `description` preview. Use `query-error-tracking-issue` for the full description.\n\nKeep `limit` small. When `hasMore` is true and you need more rows, fetch the next page with `offset` set to `nextOffset`. Set `volumeResolution` only when the user asks for volume over time.\n\nFor all-time issue counts by status or severity, query `system.error_tracking_issues` with `posthog:execute-sql`. The table follows the connected user's Error tracking access and only returns issues from the current project. This list tool only includes issues observed during `dateRange`.\n\nBe minimalist. Only add filters needed to answer the user’s question. Do not add \"is set\" filters unless the user explicitly asks for them.\n\n# Common filters\n\n- `status`: `active`, `resolved`, `suppressed`, `pending_release`, `archived`, or `all`. Defaults to `active`.\n- `searchQuery`: free-text search for exception names, values, stack frames, and email text.\n- `library`: exact `$lib` match, for example `posthog-js`.\n- `release`: exact release ID, release version, or git commit ID captured in `$exception_releases`. This intentionally does not match project name, branch, or timestamp fragments.\n- `fingerprint`: exact `$exception_fingerprint` match.\n- `url`: substring match on `$current_url`.\n- `personId`: exact PostHog person UUID.\n- `user`: user/email text search.\n- `filePath`: stack-frame file/source text search.\n- `filterGroup`: advanced flat AND property filters. Prefer typed fields above when they fit. For severity, use type `error_tracking_issue`, key `severity`, and `exact`, `is_set`, or `is_not_set`.\n\nUse `dateRange` for time, not property filters. Omit `date_to` for now.\n\n# Next steps\n\n- Use `query-error-tracking-issue` with `issueId` to inspect one issue.\n- Use `query-error-tracking-issue-events` with `issueId` to fetch sampled exception events, stack traces, URLs, and `$session_id` values.\n- If the user asks what people were doing before the error, use `$session_id` values from issue events with `query-session-recordings-list` and its `session_ids` parameter.","category": "Error tracking","feature": "error_tracking","summary": "Query error tracking issues list",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex cbd2dd8deca9..18f56be70639 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -9983,7 +9983,7 @@"system_prompt_hint": "Error event samples, stack traces, code variables, and session IDs (error-tracking category)"},"query-error-tracking-issues-list": {- "description": "List and filter Error tracking issues. Returns compact issue rows with aggregate impact counts (`occurrences`, `users`, `sessions`) and optional volume buckets.\n\nUse this first when the user asks which errors are happening, which errors are most common, or wants to narrow issues by status, severity, release, library, fingerprint, URL, user, person, or properties.\n\nDefaults are intentionally useful: active issues, last 7 days, sorted by occurrences, test accounts filtered out, and compact aggregate counts.\n\nFor all-time issue counts by status or severity, query `system.error_tracking_issues` with `posthog:execute-sql`. The table follows the connected user's Error tracking access and only returns issues from the current project. This list tool only includes issues observed during `dateRange`.\n\nBe minimalist. Only add filters needed to answer the user’s question. Do not add \"is set\" filters unless the user explicitly asks for them.\n\n# Common filters\n\n- `status`: `active`, `resolved`, `suppressed`, `pending_release`, `archived`, or `all`. Defaults to `active`.\n- `searchQuery`: free-text search for exception names, values, stack frames, and email text.\n- `library`: exact `$lib` match, for example `posthog-js`.\n- `release`: exact release ID, release version, or git commit ID captured in `$exception_releases`. This intentionally does not match project name, branch, or timestamp fragments.\n- `fingerprint`: exact `$exception_fingerprint` match.\n- `url`: substring match on `$current_url`.\n- `personId`: exact PostHog person UUID.\n- `user`: user/email text search.\n- `filePath`: stack-frame file/source text search.\n- `filterGroup`: advanced flat AND property filters. Prefer typed fields above when they fit. For severity, use type `error_tracking_issue`, key `severity`, and `exact`, `is_set`, or `is_not_set`.\n\nUse `dateRange` for time, not property filters. Omit `date_to` for now.\n\n# Next steps\n\n- Use `query-error-tracking-issue` with `issueId` to inspect one issue.\n- Use `query-error-tracking-issue-events` with `issueId` to fetch sampled exception events, stack traces, URLs, and `$session_id` values.\n- If the user asks what people were doing before the error, use `$session_id` values from issue events with `query-session-recordings-list` and its `session_ids` parameter.",+ "description": "List and filter Error tracking issues. Returns compact issue rows with aggregate impact counts (`occurrences`, `users`, `sessions`) and optional volume buckets.\n\nUse this first when the user asks which errors are happening, which errors are most common, or wants to narrow issues by status, severity, release, library, fingerprint, URL, user, person, or properties.\n\nDefaults are intentionally useful: active issues, last 7 days, sorted by occurrences, test accounts filtered out, 10 rows per page, and compact aggregate counts. Each row carries a short `description` preview. Use `query-error-tracking-issue` for the full description.\n\nKeep `limit` small. When `hasMore` is true and you need more rows, fetch the next page with `offset` set to `nextOffset`. Set `volumeResolution` only when the user asks for volume over time.\n\nFor all-time issue counts by status or severity, query `system.error_tracking_issues` with `posthog:execute-sql`. The table follows the connected user's Error tracking access and only returns issues from the current project. This list tool only includes issues observed during `dateRange`.\n\nBe minimalist. Only add filters needed to answer the user’s question. Do not add \"is set\" filters unless the user explicitly asks for them.\n\n# Common filters\n\n- `status`: `active`, `resolved`, `suppressed`, `pending_release`, `archived`, or `all`. Defaults to `active`.\n- `searchQuery`: free-text search for exception names, values, stack frames, and email text.\n- `library`: exact `$lib` match, for example `posthog-js`.\n- `release`: exact release ID, release version, or git commit ID captured in `$exception_releases`. This intentionally does not match project name, branch, or timestamp fragments.\n- `fingerprint`: exact `$exception_fingerprint` match.\n- `url`: substring match on `$current_url`.\n- `personId`: exact PostHog person UUID.\n- `user`: user/email text search.\n- `filePath`: stack-frame file/source text search.\n- `filterGroup`: advanced flat AND property filters. Prefer typed fields above when they fit. For severity, use type `error_tracking_issue`, key `severity`, and `exact`, `is_set`, or `is_not_set`.\n\nUse `dateRange` for time, not property filters. Omit `date_to` for now.\n\n# Next steps\n\n- Use `query-error-tracking-issue` with `issueId` to inspect one issue.\n- Use `query-error-tracking-issue-events` with `issueId` to fetch sampled exception events, stack traces, URLs, and `$session_id` values.\n- If the user asks what people were doing before the error, use `$session_id` values from issue events with `query-session-recordings-list` and its `session_ids` parameter.","category": "Error tracking","feature": "error_tracking","summary": "Query error tracking issues list",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex a16b00be26ad..cc15f416765e 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -37195,7 +37195,7 @@ export namespace Schemas {*/name?: string | null;/**- * Issue description.+ * Issue description. List rows truncate it to a short preview; the issue detail query returns it in full.* @nullable*/description?: string | null;@@ -37401,7 +37401,7 @@ export namespace Schemas {*/name?: string | null;/**- * Issue description.+ * Issue description. List rows truncate it to a short preview; the issue detail query returns it in full.* @nullable*/description?: string | null;@@ -37647,7 +37647,7 @@ export namespace Schemas {* * `DESC` - DESC */orderDirection?: OrderDirectionEnum;/**- * Page size.+ * Page size. Defaults to 10. Use nextOffset to fetch more rows instead of a large page.* @minimum 1* @maximum 100*/@@ -37658,7 +37658,7 @@ export namespace Schemas {*/offset?: number;/**- * Number of volume buckets. Defaults to 0 for compact aggregate counts.+ * Number of volume buckets. Defaults to 0, which returns only aggregate counts without volume buckets.* @minimum 0* @maximum 200*/diff --git a/services/mcp/src/generated/error_tracking/api.ts b/services/mcp/src/generated/error_tracking/api.tsindex 3e6664e396dc..2ccdaf3e6ddc 100644--- a/services/mcp/src/generated/error_tracking/api.ts+++ b/services/mcp/src/generated/error_tracking/api.ts@@ -8347,7 +8347,7 @@ export const errorTrackingQueryIssuesListCreateBodyFilterGroupItemOperatorDefaulexport const errorTrackingQueryIssuesListCreateBodyFilterGroupItemTypeDefault = `event`export const errorTrackingQueryIssuesListCreateBodyOrderByDefault = `occurrences`export const errorTrackingQueryIssuesListCreateBodyOrderDirectionDefault = `DESC`-export const errorTrackingQueryIssuesListCreateBodyLimitDefault = 25+export const errorTrackingQueryIssuesListCreateBodyLimitDefault = 10export const errorTrackingQueryIssuesListCreateBodyLimitMax = 100export const errorTrackingQueryIssuesListCreateBodyOffsetDefault = 0@@ -8525,7 +8525,7 @@ export const ErrorTrackingQueryIssuesListCreateBody = () => zod.object({.min(1).max(errorTrackingQueryIssuesListCreateBodyLimitMax).default(errorTrackingQueryIssuesListCreateBodyLimitDefault)- .describe('Page size.'),+ .describe('Page size. Defaults to 10. Use nextOffset to fetch more rows instead of a large page.'),offset: zod.number().min(errorTrackingQueryIssuesListCreateBodyOffsetMin)@@ -8536,7 +8536,9 @@ export const ErrorTrackingQueryIssuesListCreateBody = () => zod.object({.min(errorTrackingQueryIssuesListCreateBodyVolumeResolutionMin).max(errorTrackingQueryIssuesListCreateBodyVolumeResolutionMax).default(errorTrackingQueryIssuesListCreateBodyVolumeResolutionDefault)- .describe('Number of volume buckets. Defaults to 0 for compact aggregate counts.'),+ .describe(+ 'Number of volume buckets. Defaults to 0, which returns only aggregate counts without volume buckets.'+ ),library: zod.union([zod.string(), zod.array(zod.string()).min(1)]).optional()diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.jsonindex 9a7656612a09..3a9227a17e77 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/query-error-tracking-issues-list.json@@ -218,8 +218,8 @@"description": "Filter by SDK/library value from event $lib, for example posthog-js."},"limit": {- "default": 25,- "description": "Page size.",+ "default": 10,+ "description": "Page size. Defaults to 10. Use nextOffset to fetch more rows instead of a large page.","maximum": 100,"minimum": 1,"type": "number"@@ -274,7 +274,7 @@},"volumeResolution": {"default": 0,- "description": "Number of volume buckets. Defaults to 0 for compact aggregate counts.",+ "description": "Number of volume buckets. Defaults to 0, which returns only aggregate counts without volume buckets.","maximum": 200,"minimum": 0,"type": "number"