Last updated: February 17, 2026
What are AI Contexts?
An AI Context is a saved query configuration that tells your AI assistant which platforms and accounts to use by default. Instead of specifying platform identifiers and account IDs in every prompt, you create a Context once — then just reference it by name. Without an AI Context:How it works
When you run a query using an AI Context, Detrics automatically uses the platforms and accounts saved in that Context. Your AI assistant calls the MCP tool with your Context ID, and Detrics resolves the full query configuration. AI Contexts are stored in your Detrics workspace and shared with all workspace members, making them useful for agencies (set up once per client) or teams with recurring reports.Creating an AI Context
Open AI Contexts in the web app
Go to app.detrics.io/mcp and navigate to the AI Contexts section, or go directly to app.detrics.io/mcp/contexts.
Create a new Context
Click New Context and give it a descriptive name — something your AI assistant can understand in natural language.Good names:
- “Weekly performance report”
- “Client A — Meta Ads”
- “All e-commerce accounts”
- “My main Google Ads account”
Select platforms and accounts
Choose which platform connections and accounts this Context should include. You can add multiple platforms and multiple accounts from each platform.
Using Contexts in your AI assistant
Once you’ve created Contexts, you can reference them by name in your prompts:Managing Contexts
From app.detrics.io/mcp/contexts you can:- View all Contexts in your workspace
- Edit existing Contexts to update platforms, accounts, or names
- Delete Contexts that are no longer needed
MCP tools for Contexts
Your AI assistant uses these MCP tools automatically when working with Contexts:| Tool | What it does |
|---|---|
list_contexts | Lists all Contexts available in your workspace |
get_context | Gets the full details of a specific Context |
query_marketing_data with context_id | Queries data using the Context’s pre-configured settings |