get_model_details.md•949 B
<instructions>
Retrieves information about a specific dbt model, including compiled SQL, description, database, schema, alias, and column details.
IMPORTANT: Use uniqueId when available.
- Using uniqueId guarantees the correct model is retrieved
- Using only model_name may return incorrect results or fail entirely
- If you obtained models via get_all_models(), you should always use the uniqueId from those results
</instructions>
<parameters>
uniqueId: The unique identifier of the model (format: "model.project_name.model_name"). STRONGLY RECOMMENDED when available.
model_name: The name of the dbt model. Only use this when uniqueId is unavailable.
</parameters>
<examples>
1. PREFERRED METHOD - Using uniqueId (always use this when available):
get_model_details(uniqueId="model.my_project.customer_orders")
2. FALLBACK METHOD - Using only model_name (only when uniqueId is unknown):
get_model_details(model_name="customer_orders")