Take an action
take_actionSends an action discover_actions lists to its source's official API, such as the Simpro API or the Xero Accounting API; discover_actions names each action's source. Send a new idempotency_key for each write: the same key sent again never writes twice, and answers what the first call did, looking for the record at the source where that was unknown. A key sent again with a different action, source or arguments is refused. Refused unless this credential's person holds the action's level on its area of the source: "write", or "delete" for a destructive action. A destructive action needs the confirmation preview_action answered for the same arguments. A missing or wrong argument answers with the action's arguments.
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>",
"idempotency_key": "<idempotency_key>"
},
"name": "take_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The action's name, as discover_actions lists it. | |
| arguments | No | The action's own arguments, as discover_actions with action named answers them. | |
| confirmation | No | For a destructive action: the confirmation preview_action answered for these arguments. | |
| connection_id | No | The source it writes to. Omit when the company holds one. | |
| idempotency_key | Yes | A new value for each write, such as a UUID. Send the same value to retry it. |