dbt-get-model
Retrieve a single dbt model's refs, sources, columns, attached tests, and raw/compiled SQL by name or unique ID.
Instructions
Get a single dbt model: refs, sources, columns (with catalog types if available), attached tests, raw/compiled SQL
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Model name (resolved if uniqueId not provided) | |
| uniqueId | No | dbt unique_id (e.g. 'model.us_dbt.users_dim') | |
| extractFields | No | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response tokens dramatically on large entities. | |
| includeCompiledSql | No | Include compiled_code in response |