Skip to content

: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.

feat(error-tracking): add MCP tools for ingestion rate limit settings (#63394)

Aleksander Błaszkiewicz956ab8693add
diff --git a/products/error_tracking/backend/presentation/views/settings.py b/products/error_tracking/backend/presentation/views/settings.py
index de5d41247c98..1cbac2b1fbf0 100644
--- a/products/error_tracking/backend/presentation/views/settings.py
+++ b/products/error_tracking/backend/presentation/views/settings.py
@@ -46,6 +46,8 @@ class ErrorTrackingSettingsSerializer(serializers.ModelSerializer):
class ErrorTrackingSettingsViewSet(TeamAndOrgViewSetMixin, viewsets.ViewSet):
scope_object = "error_tracking"
+ scope_object_read_actions = ["retrieve_settings"]
+ scope_object_write_actions = ["update_settings"]
def _get_or_create_settings(self) -> ErrorTrackingSettings:
settings, _ = ErrorTrackingSettings.objects.get_or_create(team=self.team)
diff --git a/products/error_tracking/backend/tests/api/test_settings.py b/products/error_tracking/backend/tests/api/test_settings.py
new file mode 100644
index 000000000000..e8ae7b78fc53
--- /dev/null
+++ b/products/error_tracking/backend/tests/api/test_settings.py
@@ -0,0 +1,108 @@
+from posthog.test.base import APIBaseTest
+
+from parameterized import parameterized
+from rest_framework import status
+
+from posthog.models.personal_api_key import PersonalAPIKey
+from posthog.models.utils import generate_random_token_personal, hash_key_value
+
+from products.error_tracking.backend.models import ErrorTrackingSettings
+
+
+class TestErrorTrackingSettingsAPI(APIBaseTest):
+ def _base_url(self) -> str:
+ return f"/api/projects/{self.team.id}/error_tracking/settings"
+
+ def _personal_api_key(self, scopes: list[str]) -> str:
+ value = generate_random_token_personal()
+ PersonalAPIKey.objects.create(
+ label="test",
+ user=self.user,
+ secure_value=hash_key_value(value),
+ scopes=scopes,
+ )
+ return value
+
+ def test_retrieve_settings_with_session_auth(self):
+ response = self.client.get(f"{self._base_url()}/retrieve_settings/")
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
+ self.assertIn("project_rate_limit_value", response.json())
+ self.assertIn("per_issue_rate_limit_value", response.json())
+
+ def test_update_settings_with_session_auth(self):
+ response = self.client.patch(
+ f"{self._base_url()}/update_settings/",
+ {"project_rate_limit_value": 5000, "project_rate_limit_bucket_size_minutes": 60},
+ format="json",
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
+ self.assertEqual(response.json()["project_rate_limit_value"], 5000)
+
+ settings = ErrorTrackingSettings.objects.get(team=self.team)
+ self.assertEqual(settings.project_rate_limit_value, 5000)
+ self.assertEqual(settings.project_rate_limit_bucket_size_minutes, 60)
+
+ def test_update_settings_only_changes_provided_fields(self):
+ setup_response = self.client.patch(
+ f"{self._base_url()}/update_settings/",
+ {"project_rate_limit_value": 2000, "per_issue_rate_limit_value": 50},
+ format="json",
+ )
+ self.assertEqual(setup_response.status_code, status.HTTP_200_OK)
+ response = self.client.patch(
+ f"{self._base_url()}/update_settings/",
+ {"per_issue_rate_limit_value": 75},
+ format="json",
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
+ self.assertEqual(response.json()["per_issue_rate_limit_value"], 75)
+ self.assertEqual(response.json()["project_rate_limit_value"], 2000)
+
+ def test_update_settings_clears_limit_with_null(self):
+ setup_response = self.client.patch(
+ f"{self._base_url()}/update_settings/",
+ {"project_rate_limit_value": 1000},
+ format="json",
+ )
+ self.assertEqual(setup_response.status_code, status.HTTP_200_OK)
+ response = self.client.patch(
+ f"{self._base_url()}/update_settings/",
+ {"project_rate_limit_value": None},
+ format="json",
+ )
+ self.assertEqual(response.status_code, status.HTTP_200_OK)
+ self.assertIsNone(response.json()["project_rate_limit_value"])
+
+ @parameterized.expand(
+ [
+ ("read_scope", ["error_tracking:read"], status.HTTP_200_OK),
+ ("write_scope_satisfies_read", ["error_tracking:write"], status.HTTP_200_OK),
+ ("wrong_scope", ["insight:read"], status.HTTP_403_FORBIDDEN),
+ ]
+ )
+ def test_retrieve_settings_personal_api_key_scopes(self, _name, scopes, expected_status):
+ value = self._personal_api_key(scopes)
+ self.client.logout()
+ response = self.client.get(
+ f"{self._base_url()}/retrieve_settings/",
+ HTTP_AUTHORIZATION=f"Bearer {value}",
+ )
+ self.assertEqual(response.status_code, expected_status)
+
+ @parameterized.expand(
+ [
+ ("write_scope", ["error_tracking:write"], status.HTTP_200_OK),
+ ("read_scope_insufficient", ["error_tracking:read"], status.HTTP_403_FORBIDDEN),
+ ("wrong_scope", ["insight:write"], status.HTTP_403_FORBIDDEN),
+ ]
+ )
+ def test_update_settings_personal_api_key_scopes(self, _name, scopes, expected_status):
+ value = self._personal_api_key(scopes)
+ self.client.logout()
+ response = self.client.patch(
+ f"{self._base_url()}/update_settings/",
+ {"per_issue_rate_limit_value": 100},
+ format="json",
+ HTTP_AUTHORIZATION=f"Bearer {value}",
+ )
+ self.assertEqual(response.status_code, expected_status)
diff --git a/products/error_tracking/mcp/tools.yaml b/products/error_tracking/mcp/tools.yaml
index afe4db925583..9101d52636fb 100644
--- a/products/error_tracking/mcp/tools.yaml
+++ b/products/error_tracking/mcp/tools.yaml
@@ -283,12 +283,39 @@ tools:
error-tracking-releases-update:
operation: error_tracking_releases_update
enabled: false
- error-tracking-settings-retrieve-settings-retrieve:
+ error-tracking-settings-get:
operation: error_tracking_settings_retrieve_settings_retrieve
- enabled: false
- error-tracking-settings-update-settings-partial-update:
+ enabled: true
+ scopes:
+ - error_tracking:read
+ annotations:
+ readOnly: true
+ destructive: false
+ idempotent: true
+ title: Get error tracking settings
+ description: >
+ Get the error tracking ingestion settings for the current project. Returns the project-wide and per-issue
+ exception rate limits, where each `*_rate_limit_value` is the maximum events ingested per bucket and each
+ `*_rate_limit_bucket_size_minutes` is the bucket window. A null `*_rate_limit_value` means no limit is set.
+ Read these before updating so you can preserve the fields you don't intend to change.
+ error-tracking-settings-update:
operation: error_tracking_settings_update_settings_partial_update
- enabled: false
+ enabled: true
+ scopes:
+ - error_tracking:write
+ annotations:
+ readOnly: false
+ destructive: true
+ idempotent: true
+ title: Update error tracking settings
+ description: >
+ Update the error tracking ingestion settings for the current project. Only the fields you include are
+ applied; omitted fields keep their existing values. Use this to set the project-wide rate limit
+ (`project_rate_limit_value` events per `project_rate_limit_bucket_size_minutes`) and the per-issue rate
+ limit (`per_issue_rate_limit_value` events per `per_issue_rate_limit_bucket_size_minutes`). Set a
+ `*_rate_limit_value` to null to remove that limit. WARNING: exception events above a rate limit are dropped
+ at ingestion and cannot be recovered. Lowering a limit silently discards volume — confirm the threshold with
+ the user before reducing it.
error-tracking-spike-detection-config-list:
operation: error_tracking_spike_detection_config_list
enabled: false
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index c4df0128cbc5..3b2c90a50f10 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -2442,6 +2442,34 @@
"readOnlyHint": false
}
},
+ "error-tracking-settings-get": {
+ "description": "Get the error tracking ingestion settings for the current project. Returns the project-wide and per-issue exception rate limits, where each `*_rate_limit_value` is the maximum events ingested per bucket and each `*_rate_limit_bucket_size_minutes` is the bucket window. A null `*_rate_limit_value` means no limit is set. Read these before updating so you can preserve the fields you don't intend to change.",
+ "category": "Error tracking",
+ "feature": "error_tracking",
+ "summary": "Get error tracking settings",
+ "title": "Get error tracking settings",
+ "required_scopes": ["error_tracking:read"],
+ "annotations": {
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": true
+ }
+ },
+ "error-tracking-settings-update": {
+ "description": "Update the error tracking ingestion settings for the current project. Only the fields you include are applied; omitted fields keep their existing values. Use this to set the project-wide rate limit (`project_rate_limit_value` events per `project_rate_limit_bucket_size_minutes`) and the per-issue rate limit (`per_issue_rate_limit_value` events per `per_issue_rate_limit_bucket_size_minutes`). Set a `*_rate_limit_value` to null to remove that limit. WARNING: exception events above a rate limit are dropped at ingestion and cannot be recovered. Lowering a limit silently discards volume — confirm the threshold with the user before reducing it.",
+ "category": "Error tracking",
+ "feature": "error_tracking",
+ "summary": "Update error tracking settings",
+ "title": "Update error tracking settings",
+ "required_scopes": ["error_tracking:write"],
+ "annotations": {
+ "destructiveHint": true,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": false
+ }
+ },
"error-tracking-suppression-rules-create": {
"description": "Create an error tracking suppression rule for the current project. WARNING: matching errors are suppressed indefinitely — dropped at ingestion and will not appear as issues until the rule is disabled or deleted. Scope `filters` tightly to the exact exception type, message, URL, or properties you want gone. Do NOT create match-all rules (omitting `filters`) or broad rules — they silently swallow unrelated errors and cause data loss that is hard to detect after the fact. If unsure, set `sampling_rate` below `1.0` so only a fraction of matches are dropped (e.g. `0.5` drops half) rather than all of them. Confirm with the user before creating any rule that could match more than one distinct error.",
"category": "Error tracking",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index 34b8af332e53..59c8870712e7 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -2472,6 +2472,34 @@
"readOnlyHint": false
}
},
+ "error-tracking-settings-get": {
+ "description": "Get the error tracking ingestion settings for the current project. Returns the project-wide and per-issue exception rate limits, where each `*_rate_limit_value` is the maximum events ingested per bucket and each `*_rate_limit_bucket_size_minutes` is the bucket window. A null `*_rate_limit_value` means no limit is set. Read these before updating so you can preserve the fields you don't intend to change.",
+ "category": "Error tracking",
+ "feature": "error_tracking",
+ "summary": "Get error tracking settings",
+ "title": "Get error tracking settings",
+ "required_scopes": ["error_tracking:read"],
+ "annotations": {
+ "destructiveHint": false,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": true
+ }
+ },
+ "error-tracking-settings-update": {
+ "description": "Update the error tracking ingestion settings for the current project. Only the fields you include are applied; omitted fields keep their existing values. Use this to set the project-wide rate limit (`project_rate_limit_value` events per `project_rate_limit_bucket_size_minutes`) and the per-issue rate limit (`per_issue_rate_limit_value` events per `per_issue_rate_limit_bucket_size_minutes`). Set a `*_rate_limit_value` to null to remove that limit. WARNING: exception events above a rate limit are dropped at ingestion and cannot be recovered. Lowering a limit silently discards volume — confirm the threshold with the user before reducing it.",
+ "category": "Error tracking",
+ "feature": "error_tracking",
+ "summary": "Update error tracking settings",
+ "title": "Update error tracking settings",
+ "required_scopes": ["error_tracking:write"],
+ "annotations": {
+ "destructiveHint": true,
+ "idempotentHint": true,
+ "openWorldHint": true,
+ "readOnlyHint": false
+ }
+ },
"error-tracking-suppression-rules-create": {
"description": "Create an error tracking suppression rule for the current project. WARNING: matching errors are suppressed indefinitely — dropped at ingestion and will not appear as issues until the rule is disabled or deleted. Scope `filters` tightly to the exact exception type, message, URL, or properties you want gone. Do NOT create match-all rules (omitting `filters`) or broad rules — they silently swallow unrelated errors and cause data loss that is hard to detect after the fact. If unsure, set `sampling_rate` below `1.0` so only a fraction of matches are dropped (e.g. `0.5` drops half) rather than all of them. Confirm with the user before creating any rule that could match more than one distinct error.",
"category": "Error tracking",
diff --git a/services/mcp/src/generated/error_tracking/api.ts b/services/mcp/src/generated/error_tracking/api.ts
index c3d8f6c1fd16..b1e45008a678 100644
--- a/services/mcp/src/generated/error_tracking/api.ts
+++ b/services/mcp/src/generated/error_tracking/api.ts
@@ -3,7 +3,7 @@
* MCP service uses these Zod schemas for generated tool handlers.
* To regenerate: hogli build:openapi
*
- * PostHog API - MCP 17 enabled ops
+ * PostHog API - MCP 19 enabled ops
* OpenAPI spec version: 1.0.0
*/
import * as zod from 'zod'
@@ -3496,6 +3496,49 @@ export const ErrorTrackingQueryIssuesListCreateBody = /* @__PURE__ */ zod.object
.describe('Search stack-frame source/file path text.'),
})
+export const ErrorTrackingSettingsRetrieveSettingsRetrieveParams = /* @__PURE__ */ zod.object({
+ project_id: zod
+ .string()
+ .describe(
+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
+ ),
+})
+
+export const ErrorTrackingSettingsUpdateSettingsPartialUpdateParams = /* @__PURE__ */ zod.object({
+ project_id: zod
+ .string()
+ .describe(
+ "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
+ ),
+})
+
+export const ErrorTrackingSettingsUpdateSettingsPartialUpdateBody = /* @__PURE__ */ zod.object({
+ project_rate_limit_value: zod
+ .number()
+ .min(1)
+ .nullish()
+ .describe(
+ 'Maximum number of exception events ingested per bucket for the entire project. Null removes the limit.'
+ ),
+ project_rate_limit_bucket_size_minutes: zod
+ .number()
+ .min(1)
+ .nullish()
+ .describe('Bucket window over which the project-wide rate limit applies, in minutes.'),
+ per_issue_rate_limit_value: zod
+ .number()
+ .min(1)
+ .nullish()
+ .describe(
+ 'Maximum number of exception events ingested per bucket for each individual issue. Null removes the limit.'
+ ),
+ per_issue_rate_limit_bucket_size_minutes: zod
+ .number()
+ .min(1)
+ .nullish()
+ .describe('Bucket window over which the per-issue rate limit applies, in minutes.'),
+})
+
export const ErrorTrackingSuppressionRulesListParams = /* @__PURE__ */ zod.object({
project_id: zod
.string()
diff --git a/services/mcp/src/tools/generated/error_tracking.ts b/services/mcp/src/tools/generated/error_tracking.ts
index 369b4e414ac3..2f5b507f5300 100644
--- a/services/mcp/src/tools/generated/error_tracking.ts
+++ b/services/mcp/src/tools/generated/error_tracking.ts
@@ -17,6 +17,7 @@ import {
ErrorTrackingQueryIssueCreateBody,
ErrorTrackingQueryIssueEventsCreateBody,
ErrorTrackingQueryIssuesListCreateBody,
+ ErrorTrackingSettingsUpdateSettingsPartialUpdateBody,
ErrorTrackingSuppressionRulesCreateBody,
ErrorTrackingSuppressionRulesListQueryParams,
ErrorTrackingSuppressionRulesUpdateBody,
@@ -229,6 +230,57 @@ const errorTrackingIssuesSplitCreate = (): ToolBase<
},
})
+const ErrorTrackingSettingsGetSchema = z.object({})
+
+const errorTrackingSettingsGet = (): ToolBase<
+ typeof ErrorTrackingSettingsGetSchema,
+ Schemas.ErrorTrackingSettings
+> => ({
+ name: 'error-tracking-settings-get',
+ schema: ErrorTrackingSettingsGetSchema,
+ // eslint-disable-next-line no-unused-vars
+ handler: async (context: Context, params: z.infer<typeof ErrorTrackingSettingsGetSchema>) => {
+ const projectId = await context.stateManager.getProjectId()
+ const result = await context.api.request<Schemas.ErrorTrackingSettings>({
+ method: 'GET',
+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/settings/retrieve_settings/`,
+ })
+ return result
+ },
+})
+
+const ErrorTrackingSettingsUpdateSchema = ErrorTrackingSettingsUpdateSettingsPartialUpdateBody
+
+const errorTrackingSettingsUpdate = (): ToolBase<
+ typeof ErrorTrackingSettingsUpdateSchema,
+ Schemas.ErrorTrackingSettings
+> => ({
+ name: 'error-tracking-settings-update',
+ schema: ErrorTrackingSettingsUpdateSchema,
+ handler: async (context: Context, params: z.infer<typeof ErrorTrackingSettingsUpdateSchema>) => {
+ const projectId = await context.stateManager.getProjectId()
+ const body: Record<string, unknown> = {}
+ if (params.project_rate_limit_value !== undefined) {
+ body['project_rate_limit_value'] = params.project_rate_limit_value
+ }
+ if (params.project_rate_limit_bucket_size_minutes !== undefined) {
+ body['project_rate_limit_bucket_size_minutes'] = params.project_rate_limit_bucket_size_minutes
+ }
+ if (params.per_issue_rate_limit_value !== undefined) {
+ body['per_issue_rate_limit_value'] = params.per_issue_rate_limit_value
+ }
+ if (params.per_issue_rate_limit_bucket_size_minutes !== undefined) {
+ body['per_issue_rate_limit_bucket_size_minutes'] = params.per_issue_rate_limit_bucket_size_minutes
+ }
+ const result = await context.api.request<Schemas.ErrorTrackingSettings>({
+ method: 'PATCH',
+ path: `/api/projects/${encodeURIComponent(String(projectId))}/error_tracking/settings/update_settings/`,
+ body,
+ })
+ return result
+ },
+})
+
const ErrorTrackingSuppressionRulesCreateSchema = ErrorTrackingSuppressionRulesCreateBody
const errorTrackingSuppressionRulesCreate = (): ToolBase<
@@ -591,6 +643,8 @@ export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {
'error-tracking-issues-merge-create': errorTrackingIssuesMergeCreate,
'error-tracking-issues-partial-update': errorTrackingIssuesPartialUpdate,
'error-tracking-issues-split-create': errorTrackingIssuesSplitCreate,
+ 'error-tracking-settings-get': errorTrackingSettingsGet,
+ 'error-tracking-settings-update': errorTrackingSettingsUpdate,
'error-tracking-suppression-rules-create': errorTrackingSuppressionRulesCreate,
'error-tracking-suppression-rules-list': errorTrackingSuppressionRulesList,
'error-tracking-suppression-rules-update': errorTrackingSuppressionRulesUpdate,
diff --git a/services/mcp/tests/tools/errorTracking.integration.test.ts b/services/mcp/tests/tools/errorTracking.integration.test.ts
index 10606bd03e84..d536d354df5b 100644
--- a/services/mcp/tests/tools/errorTracking.integration.test.ts
+++ b/services/mcp/tests/tools/errorTracking.integration.test.ts
@@ -384,6 +384,82 @@ describe('Error Tracking', { concurrent: false }, () => {
})
})
+ describe('settings tools', () => {
+ const settingsGetTool = GENERATED_TOOLS['error-tracking-settings-get']!()
+ const settingsUpdateTool = GENERATED_TOOLS['error-tracking-settings-update']!()
+
+ type ErrorTrackingSettingsResult = {
+ project_rate_limit_value?: number | null
+ project_rate_limit_bucket_size_minutes?: number | null
+ per_issue_rate_limit_value?: number | null
+ per_issue_rate_limit_bucket_size_minutes?: number | null
+ }
+
+ // Settings are a single per-team row, so snapshot the originals and restore them after each test
+ // to keep the shared project's rate limits untouched.
+ let originalSettings: ErrorTrackingSettingsResult
+
+ beforeAll(async () => {
+ originalSettings = (await settingsGetTool.handler(context, {})) as ErrorTrackingSettingsResult
+ })
+
+ afterEach(async () => {
+ await settingsUpdateTool.handler(context, {
+ project_rate_limit_value: originalSettings.project_rate_limit_value ?? null,
+ project_rate_limit_bucket_size_minutes: originalSettings.project_rate_limit_bucket_size_minutes ?? null,
+ per_issue_rate_limit_value: originalSettings.per_issue_rate_limit_value ?? null,
+ per_issue_rate_limit_bucket_size_minutes:
+ originalSettings.per_issue_rate_limit_bucket_size_minutes ?? null,
+ })
+ })
+
+ it('should get the current settings', async () => {
+ const result = (await settingsGetTool.handler(context, {})) as ErrorTrackingSettingsResult
+
+ expect(result).toBeTruthy()
+ expect('project_rate_limit_value' in result).toBe(true)
+ expect('per_issue_rate_limit_value' in result).toBe(true)
+ })
+
+ it('should update the project and per-issue rate limits', async () => {
+ const result = (await settingsUpdateTool.handler(context, {
+ project_rate_limit_value: 5000,
+ project_rate_limit_bucket_size_minutes: 60,
+ per_issue_rate_limit_value: 100,
+ per_issue_rate_limit_bucket_size_minutes: 15,
+ })) as ErrorTrackingSettingsResult
+
+ expect(result.project_rate_limit_value).toBe(5000)
+ expect(result.project_rate_limit_bucket_size_minutes).toBe(60)
+ expect(result.per_issue_rate_limit_value).toBe(100)
+ expect(result.per_issue_rate_limit_bucket_size_minutes).toBe(15)
+ })
+
+ it('should clear a rate limit when set to null', async () => {
+ await settingsUpdateTool.handler(context, { project_rate_limit_value: 1000 })
+
+ const result = (await settingsUpdateTool.handler(context, {
+ project_rate_limit_value: null,
+ })) as ErrorTrackingSettingsResult
+
+ expect(result.project_rate_limit_value).toBeNull()
+ })
+
+ it('should only update the fields provided', async () => {
+ await settingsUpdateTool.handler(context, {
+ project_rate_limit_value: 2000,
+ per_issue_rate_limit_value: 50,
+ })
+
+ const result = (await settingsUpdateTool.handler(context, {
+ per_issue_rate_limit_value: 75,
+ })) as ErrorTrackingSettingsResult
+
+ expect(result.per_issue_rate_limit_value).toBe(75)
+ expect(result.project_rate_limit_value).toBe(2000)
+ })
+ })
+
describe('symbol-sets list tool', () => {
const symbolSetsListTool = GENERATED_TOOLS['error-tracking-symbol-sets-list']!()
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-settings-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-settings-get.json
new file mode 100644
index 000000000000..7b7ea9186078
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-settings-get.json
@@ -0,0 +1,5 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {},
+ "type": "object"
+}
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-settings-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-settings-update.json
new file mode 100644
index 000000000000..669429c7cd51
--- /dev/null
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-settings-update.json
@@ -0,0 +1,54 @@
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "properties": {
+ "per_issue_rate_limit_bucket_size_minutes": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Bucket window over which the per-issue rate limit applies, in minutes."
+ },
+ "per_issue_rate_limit_value": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Maximum number of exception events ingested per bucket for each individual issue. Null removes the limit."
+ },
+ "project_rate_limit_bucket_size_minutes": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Bucket window over which the project-wide rate limit applies, in minutes."
+ },
+ "project_rate_limit_value": {
+ "anyOf": [
+ {
+ "minimum": 1,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Maximum number of exception events ingested per bucket for the entire project. Null removes the limit."
+ }
+ },
+ "type": "object"
+}