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.
Use one route consistently. Both routes call the same ThinkPlatform backend and use the same org/project authorization.
CLI route
Run commands using the active saved profile:--scope organization only as an org owner. Use --force-refresh only when stale provider data would materially affect the conclusion; it is not a routine refresh option. Do not enable query text during broad collection.
Run the bounded collector:
MCP route
Use these ThinkPlatform system tools in a managed Agent:
Pass explicit cost/query dates and scope, and bound Job runs with
start_time_from/start_time_to. Keep include_query_text=false. If a tool is missing, report that capability gap; do not bypass project boundaries with ad-hoc credentials.
Cost-aware operation examples
--fresh only for an explicit new read. Prefer serverless; use job-cluster for unsupported workloads and existing-cluster only with an explicit cluster ID and authorization.
Targeted follow-up
- Filter Query History by
warehouse_idand status before increasing the limit. - Inspect runs only for ranked project Jobs; do not enumerate unrelated workspace Jobs.
- Use SQL hash, duration, cache status, bytes/rows read, and status in reports. Retrieve raw SQL only when an org owner explicitly authorizes it and the diagnosis cannot proceed otherwise.