dbt-get-macro
Retrieve a dbt macro's signature and raw SQL, and find which nodes call it.
Instructions
Get a dbt macro: signature, raw SQL, and reverse-lookup of nodes that call it
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dbt-get-macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Macro name (resolved if uniqueId not provided) | |
| uniqueId | No | dbt unique_id (e.g. 'macro.proj.my_macro') | |
| 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. |