set_column_nullok
Set whether a column accepts NULL values. Use nullok true to allow missing data or false to make the column required, enforcing data completeness.
Instructions
Set whether a column allows NULL values.
Args: table_name: Name of the table containing the column. column_name: Name of the column to update. nullok: True to allow NULL values, False to require values.
Returns: JSON with status, table_name, column_name, nullok.
Note: Setting nullok=False will fail if the column contains NULL values.
Example: set_column_nullok("Subject", "Name", False) # Make Name required
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": {
"table_name": "<table_name>",
"column_name": "<column_name>",
"nullok": "<nullok>"
},
"name": "set_column_nullok"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nullok | Yes | ||
| table_name | Yes | ||
| column_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |