Programmability Create Function
programmability_create_functionCreates a Snowflake function with specified arguments, return type, language, and body; supports confirmed replacement of an existing function.
Instructions
Create a function. Requires confirmation, since or_replace replaces an existing function. https://docs.snowflake.com/en/sql-reference/sql/create-function
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": {
"function_name": "<function_name>",
"arguments": "<arguments>",
"returns": "<returns>",
"body": "<body>"
},
"name": "programmability_create_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| confirm | No | ||
| handler | No | ||
| returns | Yes | ||
| database | No | Quote names that aren't all uppercase, exactly as list tools return them. | |
| language | No | SQL | |
| arguments | Yes | ||
| or_replace | No | ||
| schema_name | No | Quote names that aren't all uppercase, exactly as list tools return them. | |
| function_name | Yes | Quote names that aren't all uppercase, exactly as list tools return them. | |
| runtime_version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||