abbreviate_names
Proposes shorter names for overlong Power BI measures and columns, flags names that need manual shortening, and returns a rename map for safe batch changes.
Instructions
Propose shorter names for the measures and columns that need them.
Use this tool when the user asks to:
Shorten, abbreviate or tidy up measure and column names.
Find the names that have grown too long to read.
Prepare a batch of renames before applying them.
Args: pbip_path: Path to the root .pbip directory. kind: "measures", "columns" or "both". max_length: Above this length, a name is a candidate. abbreviate_words: Shorten the words that have a standard abbreviation ("Amount" to "Amt", "Quantity" to "Qty"). drop_filler_words: Drop the words that carry no meaning ("of", "the", "in").
Returns: Dict with the proposals and a rename map ready for plan_change(intent="safe_rename").
It does not rename anything. A name that cannot be shortened
without changing what it says is reported as needing a name by
hand, and a proposal that would collide with an existing name
is adjusted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | both | |
| pbip_path | Yes | ||
| max_length | No | ||
| abbreviate_words | No | ||
| drop_filler_words | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||