set_column_flags
Update a column's modelling flags in a Power BI model: mark as key, nullable, unique, set alignment, or adjust encoding hint.
Instructions
Set a column's modelling flags (any subset; omitted flags are left unchanged): isKey (the table's key column), isNullable, isUnique, alignment (Left | Center | Right | Default), encodingHint (Hash | Value | Default - the VertiPaq encoding preference).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"table": "<table>",
"column": "<column>"
},
"name": "set_column_flags"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isKey | No | mark/unmark as the table key | |
| table | Yes | ||
| column | Yes | ||
| isUnique | No | values are unique | |
| alignment | No | Left | Center | Right | Default | |
| sessionId | Yes | ||
| isNullable | No | allow nulls | |
| encodingHint | No | Hash | Value | Default (VertiPaq encoding hint) |