Overview
Tool Name
Purpose
The dbt_cloud_tools provide programmatic access to DBT Cloud. Use them to list resources, fetch rich context, monitor job runs, and analyze performance so you can integrate DBT Cloud operations into your broader workflows.Functions Available
dbt_cloud_analyze_run: Analyze a specific run for timings, test outcomes, artifacts, and performance signals.dbt_cloud_context: Retrieve account, project, and environment context including connections and settings.dbt_cloud_list: List resources such as projects, jobs, runs, environments, and connections with pagination.dbt_cloud_get: Fetch detailed information for a single resource by type and id.dbt_cloud_run_job: Start an on-demand job run, optionally with a one-run command override.dbt_cloud_monitor: Poll job execution for a period and emit real time status updates and alerts.dbt_cloud_verify_presenter_recovery: Run or refresh independent Prover verification for a recovered presenter demo incident.dbt_cloud_audit_log: Read the dbt Cloud audit log: who added, changed or removed jobs, environments, projects, connections, credentials, users, groups or permissions, and when.dbt_cloud_sandbox: Build, run, test, compile or preview models in the requesting person’s own dbt Cloud sandbox (their development environment), as them.
Connection Requirements
Create a dbt Cloud connection in Config -> Connections under Data Pipelines before using these tools. When tools omit an explicit connection, Genesis resolves the caller’s effective defaultdbt_cloud connection (My
default, then Role default; typically the shared dbt_cloud.shared
entry) when listing resources, monitoring runs, or analyzing failures. See
Default connection layers.
For dbt Cloud’s no-default and incomplete-connection behavior, see
dbt Cloud connections.
Genesis supports three connection modes under Data Pipelines. The stored
auth_type selects which token field and Authorization scheme Genesis uses:
For User OAuth registration and connection setup, see dbt Cloud connections.
Connection-specific fields include:
Genesis injects
bot_id, thread_id, and user_id into every tool in this
group automatically. You do not pass user_id manually. The runtime uses the
calling user and bot as secret-access principals when decrypting
Connections-UI secrets (service token, personal access token, GitHub token, and
other secret fields). Resolved credential contexts are scoped to those caller
principals, so one user’s or bot’s context is not reused for another caller.dbt_cloud_context tool can view or patch the active conversation context
for troubleshooting. When you patch svc_token or github_token with a secret
reference (for example secret_* or env_*), Genesis resolves it for runtime
API use using the calling user and bot before making dbt Cloud calls. When it
writes new secret values, Genesis assigns ownership to the calling user so later
tool calls can resolve the same secrets under RBAC.
Key Features
Cloud Resource Discovery
Explore projects, jobs, runs, environments, and connections across DBT Cloud accounts.
Run Analytics
Break down model timings, test results, and performance metrics from completed runs.
Context & Config
Pull project and environment context to power governance and documentation.
Live Monitoring
Track job executions in near real time and trigger alerts on failures.
Scalable Listings
Page through large resource sets with filters for status and size.
Input Parameters for Each Function
dbt_cloud_analyze_run
When
dbt_cloud_analyze_run starts nested incident analysis, its analyzer uses
the LLM provider configured for the triggering conversation. This keeps the
analysis on the same provider instead of switching to a separate default. No
additional dbt Cloud or analyzer configuration is required.
dbt_cloud_context
All parameters are optional. Omit every field to read the active context; supply
one or more fields to patch it for troubleshooting.
Use
auth_type='service_token' for account-scoped service tokens (sent with
Token authorization) and auth_type='personal_access_token' for user-scoped
PATs (sent with Bearer authorization). If dbt Cloud calls fail with HTTP 401,
confirm the saved auth_type matches the token kind you configured.
Response shape (dbt_cloud_context)
Read-only calls (no optional fields supplied) return success, content, and on failure error. If the saved dbt Cloud connection exists but context cannot be loaded (for example the shared connection’s token cannot be resolved under RBAC), Genesis returns success: false, content: {}, and error with the reason — check success before reading content.
When you supply any optional field to patch context (acct_id, access_url, svc_token, auth_type, github_user, github_token, bot_name, or slack_channel), Genesis merges the new values even when the existing context cannot be read first, then returns success: true with content set to the merged context.
content never includes decrypted or plaintext credentials. For svc_token and github_token:
If a patched secret reference cannot be resolved (missing secret, or the calling user or bot lacks access), Genesis returns
success: false and error with the resolution reason instead of falling back to legacy configuration.
Persisted presenter investigations
When a conversation is bound to a persisted presenter incident, dbt Cloud reads remain scoped to that incident instead of using caller-supplied discovery filters:dbt_cloud_listreturns only the incident’s project, environment, job, or failed run.dbt_cloud_getreturns only the incident run and its related resources. Resource IDs and artifact requests that do not belong to the incident are rejected.dbt_cloud_contextremains read-only for the bound conversation. Attempts to change its dbt Cloud connection are rejected.dbt_cloud_analyze_runanalyzes the persisted incident run and uses its isolated presenter workspace, preventing recovery analysis from switching incidents.
dbt_cloud_list
When listing runs with
dbt_cloud_list, failed_only is a Boolean that
defaults to false: the default includes runs across statuses, while
failed_only=true limits results to failed runs. Genesis formats the run
filters for dbt Cloud’s List Runs API so the request is accepted.
Runs remain listable when dbt Cloud omits related job data, such as for a
deleted job; monitor and outlier alerts show the job as unknown in that case.
dbt_cloud_get
Run artifacts
Whendbt_cloud_get fetches an artifact for a run, an unavailable artifact
does not always mean that a file is missing. A 404 reports that the artifact
was not produced by the run; use dbt_cloud_get(kind='run') to list the
artifacts that the run produced. A 401 or 403 reports that the caller is
not permitted to read the artifact. For manifest.json, Genesis also reports
when the response cannot be parsed as JSON or is not a JSON object. Other
HTTP errors remain errors rather than being relabeled as missing artifacts.
Run evidence
dbt_cloud_get(kind='run_evidence', run_id=...) reports what a finished run’s
run_results.json shows, across every dbt step: the outcome, objects built, target
schemas, test counts, and rows if the warehouse reported them. It shows that the build
and tests passed, not that the data is right. It cannot read the database, and it leaves
out row values, compiled SQL and dbt error text. One call reads the run and its
environment, then makes one additional HTTP request for each dbt step whose results it
checks.
dbt_cloud_monitor
dbt_cloud_run_job
Use
dbt_cloud_list(resource_type='jobs') to discover a job ID. The tool returns the
new run ID, initial status, and dbt Cloud link. When the run finishes, call
dbt_cloud_get(kind='run_evidence', run_id=...) to report what its artifacts show and
their limits.
Development environments
dbt_cloud_run_job cannot run a development-type environment, such as a user’s dbt Cloud
sandbox. dbt Cloud’s run API only starts jobs, and jobs exist only in deployment
environments, so listing jobs in a development environment returns an error saying so. Use
dbt_cloud_sandbox to build in a person’s own sandbox. Without a
sandbox, use a deployment job. schema_override can point one run at a
personal schema, if the job’s role can create it and the project’s schema macros honor it;
check target_schemas in the run evidence afterwards. A run without it may replace objects
in a shared development schema, so confirm with the user first.
For a presenter recovery, Genesis binds the run to the persisted investigation
context instead of resolving a potentially different default connection. The
incident ID, authenticated user, job ID, and exact dbt Cloud connection must
match that context; otherwise Genesis refuses to start the recovery run.
dbt_cloud_sandbox
Runs a dbt command in the requesting person’s own dbt Cloud development environment, the
sandbox they use in the dbt Cloud IDE. It runs the project files in the Genesis repository
checkout, uncommitted edits included, inside dbt Cloud with that person’s development
credentials and target schema, so models build in their own development schema rather than
a shared one. What a run can change is whatever the person’s development role can change:
hooks, run_query and custom schema macros run with that role too. Agents use it first
when someone wants a changed model run. The person needs view access to the repository,
and the same dbt safety checks as dbt_action apply to every action’s request and output,
check included.
Each call reads the current connections and sandbox settings. If the person adds a
connection or changes their development credentials or token, call again rather
than repeating a result from earlier in the conversation.
The response’s
status is success, failed (a model or test failed; nodes carries
dbt’s message), or the reason nothing ran. Success is read from dbt’s run_results.json,
because the dbt Cloud CLI exits 0 even when a model fails.
- In dbt Cloud, open Account settings → Credentials → your project and set your development credentials: your warehouse login, a role, a warehouse and a schema of your own. Press Test connection and save.
-
Give Genesis your own dbt Cloud credential, in one of two ways:
- Sign in (User OAuth). On a dbt Cloud connection with auth type User OAuth, which
can be one shared connection for the whole team, sign in with your own dbt Cloud account.
On dbt Cloud’s consent screen keep Develop dbt models selected and give access to
the project, or to all projects. The connection must request the
projects:developscope; see the admin setup below. - Personal token. Create a personal token under Account settings → API tokens → Personal tokens, then add a personal dbt Cloud connection in Genesis with auth type Personal Access Token.
- Sign in (User OAuth). On a dbt Cloud connection with auth type User OAuth, which
can be one shared connection for the whole team, sign in with your own dbt Cloud account.
On dbt Cloud’s consent screen keep Develop dbt models selected and give access to
the project, or to all projects. The connection must request the
-
The project’s
dbt_project.ymlidentifies its dbt Cloud project. If it does not, configuresandbox_project_idon the connection as described in dbt Cloud connections.
- Choose the Genesis connection’s name. Its callback URL is
<Genesis URL>/api/connections/dbt_cloud/<connection name>/oauth/callback/ui; the connection form in Genesis shows the exact value. - In dbt Cloud, as an account admin, open Account settings → Integrations → App integrations, add a manually registered integration with that callback URL as its redirect URL, and copy the client ID it issues. dbt issues no client secret, and the registration has no scope settings: the connection decides what each person approves.
- In Genesis, add the dbt Cloud connection with auth type User OAuth and Shared — my
team: the numeric account ID, the account’s Access URL, the client ID, and under More
options → Scopes
account:read, offline_access, projects:develop. - Each person signs in on the connection. People who signed in before
projects:developwas added sign in again to approve it.
project_name, the error explains
what was found and can suggest up to five other repositories you can view that
contain the requested project.
Limits:
- When dbt Cloud refuses a command because another is running in your development session
(for example a build you started in the IDE or the CLI), the sandbox run returns status
session_occupied; try again when that command ends. - If the connection to dbt Cloud drops, dbt Cloud keeps running the command. The run returns
status
connection_lostwithactive_invocations, what dbt Cloud reports as still running, so you can tell whether to wait before running it again. - If Genesis cannot reach dbt Cloud before an invocation starts, the run returns
host_unreachable: nothing ran. Allow outbound access to theblocked_hoston port 443 (the host in the connection’s dbt Cloud Access URL), then try again. - One sandbox command runs at a time per repository checkout, alongside
dbt_action. - Stopping the agent stops Genesis waiting, but, as with a dropped connection, dbt Cloud may
still finish the command; your next run may return
session_occupieduntil it does. - dbt Cloud defers to the environment set in your project’s deferral settings, as in the IDE.
- The dbt Cloud CLI ships in the Genesis container image. Its path is configured by
dbt.cloud_cli_path, default/opt/dbt-cloud-cli/dbt. Sandbox runs are unavailable in a confined Databricks App. - The person’s token is written to a private file for each command and deleted when it ends; it is never placed in a code sandbox’s environment.
dbt_cloud_audit_log
With neither
start nor end, dbt Cloud returns the last 90 days. Each call
makes one dbt Cloud API request and returns one page with events, the
window that was sent, and pagination (offset, limit, total_count,
next_offset, which is null on the last page). Each event carries its id,
offset, created_at, event_type (for example job_definition.changed),
event_label, the actor who made the change (actor, actor_id,
actor_name, and actor_type when dbt Cloud provides them), the event’s
source and service, and event_context, which holds dbt Cloud’s details
of the change.
When an event’s details are very large, the event carries
event_context_preview and event_context_truncated: true instead of
event_context. To read it in full, call the tool again with the same start
and end, limit=1, offset set to that event’s offset, and
expected_event_id set to its id. If newer events have moved it to another
offset, Genesis refuses rather than return a different event; list the window
again to find its new offset.
The audit log records changes to dbt Cloud account settings. It does not
record edits to dbt model SQL, which live in the dbt project’s git repository.
dbt Cloud offers the audit log only on its Enterprise plan, and only to a
token whose owner is an Account admin, Account viewer or Security admin. When
dbt Cloud answers 403, Genesis names that requirement as a possible cause.
The tool is not available inside a persisted presenter investigation, because
the audit log covers the whole account rather than one incident.
dbt_cloud_verify_presenter_recovery
Call this only after the tracked dbt Cloud recovery run succeeds. Genesis
compares the isolated presenter fixture’s authoritative owner mapping against
the repaired model output using the scenario’s configured Prover comparison key
on both sides, plus fully qualified Snowflake
database and schema identities
from the incident fixture. It then persists the Prover verdict with the original
failure, code diff, and recovery run.
Response shape (dbt_cloud_verify_presenter_recovery)
When
content has no terminal verdict, poll this same tool with the same
presenter_incident_id and job_id. If a prior Prover attempt ended with
status: "error", calling the tool again starts a fresh verification and
preserves the earlier attempt in prior_attempts. When Prover returns FAIL,
treat the reported mismatches as new remediation evidence: explain the exact
mismatch, propose the smallest correction on the same isolated branch, wait for
explicit approval, delegate that correction, rerun the same ordinary dbt job, and
start a fresh Prover verification. Repeat only while Prover reports
evidence-backed failures; stop on PASS or report the exact infrastructure
blocker.
Use dbt_cloud_run_job to start the recovery run and dbt_cloud_analyze_run to
inspect dbt execution evidence. If the stored presenter incident does not yet
recognize a successful recovery, this tool refreshes the attached recovery run
from dbt Cloud before retrying verification. The refreshed run must still match
the incident’s authenticated user, job, project, and environment; otherwise
verification fails. This tool only verifies a successful tracked presenter
recovery — it does not replace run analysis or job execution.
Use Cases
- Production Run Monitoring Track nightly jobs, emit alerts on failure, and post summaries to Slack.
- Performance Analysis Identify slow models by timing breakdowns and compare runs week over week.
- Ops Dashboards Feed run status and duration metrics into centralized observability tools.
- Governance & Docs Pull project and environment context for documentation and audits.
- Incident Automation On failure, fetch logs and artifacts, open a ticket, and notify owners.
-
Presenter demo recovery verification
After a trusted dbt Cloud presenter incident is repaired and the recovery run
succeeds, verify the fix with
dbt_cloud_verify_presenter_recoveryand poll until Prover returnsPASSbefore claiming recovery.
Workflow/How It Works
- Configure a dbt Cloud connection under Config -> Connections (or confirm legacy server configuration is present), then run Test Connection so secrets resolve for your user.
- Discover resources using
dbt_cloud_list, or get details viadbt_cloud_get. - Monitor active jobs with
dbt_cloud_monitorfor live status. - Analyze completed executions using
dbt_cloud_analyze_runto extract timings, tests, and artifacts. - Act on insights by notifying teams, updating tickets, or storing reports.
- Verify presenter demo recovery with
dbt_cloud_verify_presenter_recoveryafter a successful tracked recovery run.
Integration Relevance
- dbt_action to coordinate local and Cloud operations.
- data_connector_tools to validate downstream warehouse connectivity.
- project_manager_tools for issue tracking and task automation.
- slack_tools for status notifications and alerts.
- file_manager_tools to persist run reports, logs, and artifacts.
Configuration Details
- Prefer the saved dbt Cloud connection in Config -> Connections; use
dbt_cloud_contextonly when troubleshooting or patching context for the current conversation. - Ensure the user driving the agent conversation can resolve connection secrets (owner of the saved secrets, admin, or RBAC grant). Other users see access-denied errors even when the connection exists.
- Validate account_id, project_id, environment_id, job_id, and run_id against DBT Cloud.
- Choose monitor_duration that reflects expected job times to reduce unnecessary polling.
- Align alerting with your existing notification channels and on call practices.
Limitations or Notes
- Requires an active DBT Cloud subscription and API access.
- API rate limits apply and vary by plan.
- Monitoring granularity depends on DBT Cloud polling frequency.
- Very large result sets require pagination to avoid timeouts.
- Historical retention and artifact availability may be limited by account settings.
- Cross account resource access needs explicit permissions.
dbt_cloud_audit_logrequires dbt Cloud’s Enterprise plan and a token whose owner is an Account admin, Account viewer or Security admin.- In the Databricks App,
run_git_commandis unavailable.git_actionis also refused for repositories with unsafe local Git configuration or submodules; see Git Action Tools.
Output
- Run Analysis: Model timings, tests, artifacts, and summary metrics. Successful runs also include the run details as JSON in the analysis.
- Context: Project, environment, and connection configuration.
- Listings: Paginated arrays of resources with metadata.
- Details: Full records for specific resources.
- Monitoring: Status updates, progress signals, and optional failure alerts.
- Errors: Clear messages for authentication, permission, or connectivity issues.

