globus_compute_register_python_function
Register a Python function with Globus Compute to enable remote execution. Then submit tasks to run the function on compute endpoints.
Instructions
Register a Python function with Globus Compute.
Use globus_compute_submit_task to run the registered Python function on an endpoint.
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_code": "<function_code>",
"function_name": "<function_name>",
"description": "<description>",
"public": "<public>"
},
"name": "globus_compute_register_python_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| public | Yes | Indicates whether the Python function can be used by others | |
| description | Yes | An optional description of the Python function | |
| function_code | Yes | The text of the Python function source code | |
| function_name | Yes | The name of the Python function |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| function_id | Yes | ID of the registered function |