> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Troubleshooting and limitations Canonical URL: https://posthog.com/docs/semantic-layer/troubleshooting > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://app.posthog.com` (app host for links). ## On this page - [I don't see the semantic layer tools in my MCP client](#i-dont-see-the-semantic-layer-tools-in-my-mcp-client) - [My agent can't approve a metric](#my-agent-cant-approve-a-metric) - [Why is my metric drifted?](#why-is-my-metric-drifted) - [I renamed or deleted a metric and references to it broke](#i-renamed-or-deleted-a-metric-and-references-to-it-broke) - [An agent keeps proposing a join we don't want](#an-agent-keeps-proposing-a-join-we-dont-want) - [Where's the UI?](#wheres-the-ui) ## I don't see the semantic layer tools in my MCP client If the `data-catalog-*` tools are missing: 1. Check your API key has the `data_catalog` scope. 2. Reconnect or restart your MCP client; clients cache the tool list, so a key or scope change won't show up until they refresh it. ## My agent can't approve a metric Three causes, in order of likelihood: 1. **Missing scope.** Approval needs `data_catalog_approval` on the API key – `data_catalog` alone can propose but never promote. This split is deliberate; see [governance](https://posthog.com/docs/semantic-layer/governance.md#api-scopes). 2. **The metric is drifted.** Approval is blocked while `is_drifted` is true. Resolve the drift first (below), then approve. 3. **You didn't type "confirm".** Approval only executes after you reply with the literal word "confirm". The agent can't do it for you – that's the point. ## Why is my metric drifted? The metric was created from an insight, and that insight's query has changed since the snapshot (or the insight was deleted). To resolve: - **Keep the new definition:** re-snapshot the insight's current query into the metric with `data-catalog-metrics-refresh-from-insight-create`, then re-approve. - **Keep the old definition:** unlink the metric from the insight (set `source_insight_short_id` to null) so it stands on its own definition, then re-approve. Compare the metric's `compiled_query` (from a run) with the insight's current query to see what changed. Until it's re-approved, agents don't present its results as canonical. ## I renamed or deleted a metric and references to it broke By design. Renaming or deleting a metric frees its name, and anything that stored the old name – saved SQL over `system.information_schema.metrics`, API calls, links – stops resolving. After a rename, update those references to the new name. Two things to know before you rely on this: - **Deletion has no undo in the product.** Re-creating a metric with a deleted name starts completely fresh – the old definition, history, and approval don't come back. - **Renaming an approved metric resets it to `proposed`**, so it needs approving again under the new name. ## An agent keeps proposing a join we don't want Reject the proposal with `data-catalog-relationship-reject-prepare` / `-execute`. Rejection persists forever and the pair is never re-proposed – in either direction. The flip side: **rejection has no undo**. If you rejected a proposal by mistake and need the join anyway, create it directly as a [data warehouse join](https://posthog.com/docs/data-warehouse/join.md) – the catalog's rejection only suppresses re-proposals, not manual joins. ## Where's the UI? Open the command palette with `Cmd/Ctrl + K` and search for **Data Catalog**. From there you can browse and manage your metrics, certifications, and relationships – reviewing and promoting what agents have proposed without leaving PostHog. You can still do everything through MCP tools and SQL if you prefer. Also worth knowing: - `last_run_at` is updated at most every 30 minutes, so treat it as approximate Feedback on any of this shapes what general availability looks like – [tell us what's missing](https://app.posthog.com/home#supportModal).