Overview

Tool Name

dbt_cloud_tools

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

  1. dbt_cloud_analyze_run: Analyze a specific run for timings, test outcomes, artifacts, and performance signals.
  2. dbt_cloud_context: Retrieve account, project, and environment context including connections and settings.
  3. dbt_cloud_list: List resources such as projects, jobs, runs, environments, and connections with pagination.
  4. dbt_cloud_get: Fetch detailed information for a single resource by type and id.
  5. dbt_cloud_monitor: Poll job execution for a period and emit real time status updates and alerts.

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

NameDefinitionFormat
account_idDBT Cloud account id.String (required)
run_idThe job run id to analyze.String (required)
api_tokenDBT Cloud API token.String (required)
include_artifactsInclude run artifacts in the analysis output.Boolean
detailed_metricsReturn granular timing and performance metrics if available.Boolean

dbt_cloud_context

NameDefinitionFormat
account_idDBT Cloud account id.String (required)
api_tokenDBT Cloud API token.String (required)
project_idProject id for scoped context.String
environment_idEnvironment id for scoped context.String

dbt_cloud_list

NameDefinitionFormat
account_idDBT Cloud account id.String (required)
resource_typeResource to list: projects, jobs, runs, environments, connections.String (required)
api_tokenDBT Cloud API token.String (required)
limitMaximum number of results to return.Integer
offsetPagination offset.Integer
status_filterOptional status filter where supported.String

dbt_cloud_get

NameDefinitionFormat
account_idDBT Cloud account id.String (required)
resource_typeType of resource to retrieve.String (required)
resource_idUnique id of the resource.String (required)
api_tokenDBT Cloud API token.String (required)
include_relatedInclude related objects when available.Boolean

dbt_cloud_monitor

NameDefinitionFormat
account_idDBT Cloud account id.String (required)
api_tokenDBT Cloud API token.String (required)
job_idThe job id to monitor. If omitted, monitor recent account jobs.String
monitor_durationMinutes to monitor before stopping.Integer
alert_on_failureSend alert events on job failures.Boolean
For large listings, supply limit and offset to control pagination and avoid hitting rate limits.

Use Cases

  1. Production Run Monitoring Track nightly jobs, emit alerts on failure, and post summaries to Slack.
  2. Performance Analysis Identify slow models by timing breakdowns and compare runs week over week.
  3. Ops Dashboards Feed run status and duration metrics into centralized observability tools.
  4. Governance & Docs Pull project and environment context for documentation and audits.
  5. Incident Automation On failure, fetch logs and artifacts, open a ticket, and notify owners.

Workflow/How It Works

  1. Authenticate with an account level api_token.
  2. Discover resources using dbt_cloud_list, or get details via dbt_cloud_get.
  3. Monitor active jobs with dbt_cloud_monitor for live status.
  4. Analyze completed executions using dbt_cloud_analyze_run to extract timings, tests, and artifacts.
  5. Act on insights by notifying teams, updating tickets, or storing reports.

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

  • Use account scoped api_token with permissions for the target resources.
  • 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.
Store API tokens securely and rotate them regularly. Never embed tokens in source files or logs.

Limitations or Notes

  1. Requires an active DBT Cloud subscription and API access.
  2. API rate limits apply and vary by plan.
  3. Monitoring granularity depends on DBT Cloud polling frequency.
  4. Very large result sets require pagination to avoid timeouts.
  5. Historical retention and artifact availability may be limited by account settings.
  6. Cross account resource access needs explicit permissions.

Output

  • Run Analysis: Model timings, tests, artifacts, and summary metrics.
  • 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.