You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mcp-tools.mdx
+88-1Lines changed: 88 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,93 @@ List all preview branches in the project.
128
128
-`"What preview branches exist?"`
129
129
-`"Show me preview deployments"`
130
130
131
+
## Profile Tools
132
+
133
+
### whoami
134
+
135
+
Show the current authenticated user, active CLI profile, email, and API URL.
136
+
137
+
**Example usage:**
138
+
-`"Who am I logged in as?"`
139
+
-`"What profile am I using?"`
140
+
141
+
### list_profiles
142
+
143
+
List all configured CLI profiles and which one is currently active.
144
+
145
+
**Example usage:**
146
+
-`"What profiles do I have?"`
147
+
-`"Show me my Trigger.dev profiles"`
148
+
149
+
### switch_profile
150
+
151
+
Switch the active CLI profile for this MCP session. This changes which Trigger.dev account and API URL are used for all subsequent tool calls.
152
+
153
+
**Example usage:**
154
+
-`"Switch to my production profile"`
155
+
-`"Use the staging profile"`
156
+
157
+
## Query and Analytics Tools
158
+
159
+
### get_query_schema
160
+
161
+
Get the schema for TRQL queries, including all available tables, their columns, data types, descriptions, and allowed values. Call this before using the query tool to understand what data is available.
162
+
163
+
**Example usage:**
164
+
-`"What tables and columns can I query?"`
165
+
-`"Show me the query schema"`
166
+
167
+
### query
168
+
169
+
Execute a TRQL query against your Trigger.dev data. TRQL is a SQL-style query language for analyzing runs, metrics, and LLM usage.
170
+
171
+
**Example usage:**
172
+
-`"How many runs failed in the last 7 days?"`
173
+
-`"Show me the top 10 most expensive tasks"`
174
+
-`"Query the average execution duration by task"`
175
+
176
+
### list_dashboards
177
+
178
+
List available built-in dashboards with their widgets. Each dashboard contains pre-built queries for common metrics.
179
+
180
+
**Example usage:**
181
+
-`"What dashboards are available?"`
182
+
-`"Show me the dashboard widgets"`
183
+
184
+
### run_dashboard_query
185
+
186
+
Execute a single widget query from a built-in dashboard. Use `list_dashboards` first to see available dashboards and widget IDs.
187
+
188
+
**Example usage:**
189
+
-`"Run the total runs widget from the overview dashboard"`
190
+
-`"Show me the LLM cost over time from the AI dashboard"`
191
+
192
+
## Dev Server Tools
193
+
194
+
### start_dev_server
195
+
196
+
Start the Trigger.dev dev server (`trigger dev`) in the background. Waits up to 30 seconds for the worker to be ready.
197
+
198
+
**Example usage:**
199
+
-`"Start the dev server"`
200
+
-`"Run trigger dev"`
201
+
202
+
### stop_dev_server
203
+
204
+
Stop the running Trigger.dev dev server.
205
+
206
+
**Example usage:**
207
+
-`"Stop the dev server"`
208
+
209
+
### dev_server_status
210
+
211
+
Check the status of the dev server and view recent output. Shows whether it is stopped, starting, ready, or has errors.
212
+
213
+
**Example usage:**
214
+
-`"Is the dev server running?"`
215
+
-`"Show me the dev server logs"`
216
+
-`"Are there any build errors?"`
217
+
131
218
<Callouttype="warning">
132
-
The deploy and list_preview_branches tools are not available when the MCP server is running with the `--dev-only` flag.
219
+
The deploy and list_preview_branches tools are not available when the MCP server is running with the `--dev-only` flag. The `--readonly` flag hides deploy, trigger_task, and cancel_run.
Copy file name to clipboardExpand all lines: docs/observability/query.mdx
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,15 @@ description: "Query allows you to write custom queries against your data using T
7
7
8
8
-`runs`: contains all task run data including status, timing, costs, and task output. Run metadata (key-value set in your task) is not available on the Query page.
9
9
-`metrics`: contains metrics data for your runs including CPU, memory, and your custom metrics
10
+
-`llm_metrics`: contains LLM/AI metrics including token usage, costs, latency, and model performance data from GenAI spans
description: List available built-in dashboards with their widgets. Each dashboard contains pre-built TRQL queries for common metrics like run success rates, costs, and LLM usage.
0 commit comments