get_column_distribution
Analyze column value distribution in SQL Server. Get top N values, frequency counts, and optional histogram. Specify table and column names.
Instructions
Get detailed distribution statistics for a specific column
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": {
"tableName": "<tableName>",
"columnName": "<columnName>"
},
"name": "get_column_distribution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Number of top values to return (default: 20) | |
| schema | No | Schema name (default: dbo) | |
| tableName | Yes | Name of the table | |
| columnName | Yes | Name of the column | |
| includeHistogram | No | Include histogram analysis (default: false) |