Call the ChurchTools API
ct_api_requestCall any ChurchTools REST API operation: GET runs immediately; POST, PUT, PATCH, and DELETE return a preview plan with a token for ct_execute_plan before committing.
Instructions
Calls any operation of the ChurchTools REST API. GET runs at once. POST, PUT, PATCH and DELETE write nothing: they return a plan with a preview and a token for ct_execute_plan. The path must match an operation of the spec, with every value filled in.
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": {
"method": "<method>",
"path": "<path>"
},
"name": "ct_api_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The JSON body of a write | |
| path | Yes | Concrete path relative to /api without a query string, e.g. /persons/12 | |
| query | No | Query parameters; an array repeats the key | |
| method | Yes | The HTTP method |