uc_function_create
Creates a user-defined function in Databricks Unity Catalog by specifying name, catalog, schema, and optional parameters.
Instructions
Create a function (POST /api/2.1/unity-catalog/functions).
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": {
"name": "<name>",
"catalog_name": "<catalog_name>",
"schema_name": "<schema_name>"
},
"name": "uc_function_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name | |
| catalog_name | Yes | Parent catalog name | |
| schema_name | Yes | Parent schema name | |
| input_params | No | Function input parameters (parameters array) | |
| return_params | No | Function return parameters | |
| routine_body | No | SQL | EXTERNAL — body type | |
| data_type | No | Return data type, e.g. 'INT', 'STRING' | |
| full_data_type | No | ||
| parameter_style | No | S | INDEXED | |
| is_deterministic | No | ||
| parameter_default | No | ||
| comment | No | ||
| tags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |