prepare_view_change
Prepare and preview reversible CREATE VIEW or ALTER VIEW changes to evaluate impact before applying them to Azure SQL.
Instructions
Prepare and preview a reversible CREATE VIEW or ALTER VIEW change. Optimizer preparations are process-local previews; sandbox preparations become restart-safe only with explicit raw-SQL state opt-in.
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": {
"schema_name": "<schema_name>",
"view_name": "<view_name>",
"definition": "<definition>"
},
"name": "prepare_view_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | No | auto, create, or alter | auto |
| view_name | Yes | Target view. | |
| definition | Yes | Complete SELECT-shaped view body, without CREATE/ALTER VIEW. | |
| schema_name | Yes | Target schema. | |
| indexed_view | No | ||
| schema_bound | No | ||
| database_name | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||