Create a schedule
schedule.createRun SQL or a function on a timer. schedule is five cron fields in UTC ("0 3 * * *") or "N seconds" (1 to 59). Give exactly one of sql or function; payload goes with function. Jobs run while the project sleeps and every run is logged. Scope: database:write.
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>",
"schedule": "<schedule>"
},
"name": "schedule.create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | A SQL statement to run | |
| name | Yes | Job name: 1 to 64 lower-case letters, digits, _ or - | |
| branch | No | Branch (environment) id. Optional: defaults to `production`. | |
| payload | No | JSON body for the function (with `function`) | |
| function | No | A function name to call | |
| schedule | Yes | Five cron fields in UTC, or "N seconds" | |
| project_id | No | Project id. Optional: defaults to the project created or used last in this session, or the only one. | |
| organization_id | No | Organization id. Optional: defaults to the token's organization, or the only one you belong to. |