Discover actions
discover_actionsThe actions this credential may take: each one a named write to one source through that source's official API, deletes included. With no action named it answers each action's name and one line, grouped by source with the sources it may write to; filter by source, resource or a word. Past 150 it answers resources with counts instead: name one to narrow. Name one action for what it does, the OAuth scope it needs and its arguments as a JSON schema. Each action names its level: "write", or "delete" for a destructive one (a delete, void, approval, email or post, or a change that approves, completes, archives or voids), and only actions within the person's level on a source are listed. A destructive action needs preview_action first: take_action takes the confirmation it answers. An action that becomes destructive only with some arguments, such as a status of VOIDED, needs "delete" for them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "discover_actions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| word | No | Only actions whose name or title holds this word, e.g. void or note. | |
| action | No | One action's name: answers its description, scope and arguments. | |
| source | No | Only this source's actions, e.g. Xero or Simpro. | |
| resource | No | Only actions on this resource, or on resources that start with it, e.g. invoices, job or setup_account. |