CiviCRM APIv4 passthrough
civicrm_api4Call any CiviCRM APIv4 entity and action with custom parameters. Review field names with civicrm_describe_entity to avoid errors.
Instructions
Generic APIv4 call. Accepts entity + action + params. Disabled unless CIVICRM_ALLOW_GENERIC_API=true; writes additionally need CIVICRM_ALLOW_WRITES and deletes need CIVICRM_ALLOW_DELETES. Use civicrm_describe_entity first if unsure of field names.
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": {
"entity": "<entity>",
"action": "<action>"
},
"name": "civicrm_api4"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | APIv4 action name, e.g. get, create, update, save, delete, getFields, getActions. | |
| entity | Yes | APIv4 entity name, e.g. Contact, Contribution, Activity, Group. | |
| params | No | APIv4 params object (select, where, values, limit, chain, etc.). Pass {} for default. |