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.

chore(error-tracking): warn against broad MCP suppression rules (#57840)

Catalin Irimie9ca2061503e4
diff --git a/products/error_tracking/mcp/tools.yaml b/products/error_tracking/mcp/tools.yaml
index 3bea213e5611..27ef265a53bc 100644
--- a/products/error_tracking/mcp/tools.yaml
+++ b/products/error_tracking/mcp/tools.yaml
@@ -310,8 +310,13 @@ tools:
idempotent: false
title: Create error tracking suppression rule
description: >
- Create an error tracking suppression rule for the current project. Provide optional `filters` and optional
- `sampling_rate`; omit `filters` to create a match-all suppression rule.
+ 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. Prefer `sampling_rate` to dampen noisy issues rather
+ than fully suppressing when uncertain. Confirm with the user before creating any rule that could match more
+ than one distinct error.
error-tracking-suppression-rules-destroy:
operation: error_tracking_suppression_rules_destroy
enabled: false
diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.json
index 9ac4d95d7b1b..0c53dc2337a9 100644
--- a/services/mcp/schema/generated-tool-definitions.json
+++ b/services/mcp/schema/generated-tool-definitions.json
@@ -1354,7 +1354,7 @@
}
},
"error-tracking-suppression-rules-create": {
- "description": "Create an error tracking suppression rule for the current project. Provide optional `filters` and optional `sampling_rate`; omit `filters` to create a match-all suppression rule.",
+ "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. Prefer `sampling_rate` to dampen noisy issues rather than fully suppressing when uncertain. Confirm with the user before creating any rule that could match more than one distinct error.",
"category": "Error tracking",
"feature": "error_tracking",
"summary": "Create error tracking suppression rule",
diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.json
index b54c3ff946e8..97859ed8c9cb 100644
--- a/services/mcp/schema/tool-definitions-all.json
+++ b/services/mcp/schema/tool-definitions-all.json
@@ -1400,7 +1400,7 @@
}
},
"error-tracking-suppression-rules-create": {
- "description": "Create an error tracking suppression rule for the current project. Provide optional `filters` and optional `sampling_rate`; omit `filters` to create a match-all suppression rule.",
+ "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. Prefer `sampling_rate` to dampen noisy issues rather than fully suppressing when uncertain. Confirm with the user before creating any rule that could match more than one distinct error.",
"category": "Error tracking",
"feature": "error_tracking",
"summary": "Create error tracking suppression rule",