Get DB Identity Headroom
mssql_db_identity_headroomCheck SQL Server identity column headroom to find columns nearing their type range limit. Warns at 50% used and flags risk at 80%, helping prevent failed inserts.
Instructions
Identity headroom: identity columns with the % of their type range already used (tinyint to bigint, decimal), most used first. WARN at 50%, RISK at 80%: when an identity runs out, every insert fails.
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": "mssql_db_identity_headroom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Maximum number of columns to return. Defaults to 50. | |
| databaseName | No | Target database. Defaults to connected database. | |
| minPercentUsed | No | Only return columns that used at least this percent of their range. Defaults to 0 (all). |