tp context show before running commands. Add root --json before the command when machine parsing needs JSON output; use root --profile <name> only to override the active profile.
Check context and available resources
Data Lake
Shared DB
Lakehouse and Databricks
Default totp lakehouse for Databricks/Lakehouse work. These commands call ThinkPlatform’s project-scoped Databricks APIs and work in managed Agent Workspaces without requiring direct Databricks CLI auth.
Inventory and context:
--fresh only after a write when a new Databricks execution is required. In a managed ThinkPlatform Agent, call the corresponding SQL preview MCP system tool with fresh=false by default and fresh=true only for that explicit read-after-write case.
Canvas dashboard handoff:
:event_date_start and :event_date_end for a dateRange binding with target event_date.
Notebook and job workflows:
tp lakehouse runs list --job-id with project-tagged jobs created or managed by tp lakehouse jobs .... For a one-time tp lakehouse notebooks run --wait, inspect the returned run id directly with tp lakehouse runs get <run_id> and tp lakehouse runs output <run_id> instead of listing by the transient internal job id.
Use direct databricks ... commands only when CLI auth is explicitly configured in the environment. This can be useful for local agents such as Codex, admin inspection, or temporary troubleshooting. Managed Agent Workspaces should still prefer tp lakehouse.
tp lakehouse status works, continue with tp lakehouse; do not switch to PATs or secrets unless the user explicitly approves that auth model.
CLI and MCP execution routes
If a managed Agent lacks the corresponding system tool, report the capability gap. Do not use shell credentials to bypass it.
SQL conventions:
information_schema: use ${project_catalog}.information_schema.tables, not unqualified information_schema.tables, so ThinkPlatform’s project-catalog guard can validate the query.
Prepare data for MLOps
Verification checklist
- Confirm source path/table and output path/table.
- Show schema and row counts.
- Show a limited sample.
- Record data-quality caveats.
- Confirm downstream query, import, dashboard, or model training can read the asset.