create_procedure
Create a stored procedure in a Fabric Data Warehouse or SQL Analytics Endpoint by specifying workspace, item, qualified name, and the procedure body (DDL).
Instructions
Create a new stored procedure.
Stored procedures are supported on both Fabric Data Warehouses and SQL Analytics Endpoints.
CAUTION: body is executed verbatim as DDL. Ensure the body
matches the user's intent before calling this tool.
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
qualified_name: Dot-separated qualified procedure name, e.g. dbo.usp_load.
body: The procedure body (the AS … section).
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": {
"workspace": "<workspace>",
"item": "<item>",
"qualified_name": "<qualified_name>",
"body": "<body>"
},
"name": "create_procedure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| item | Yes | ||
| workspace | Yes | ||
| qualified_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||