invoke_action
Invoke Dataverse Web API actions (POST), bound or unbound, for non-CRUD operations such as PublishDuplicateRule or QualifyLead. Pass entity set and record ID for bound actions; omit both for unbound.
Instructions
Invoke a Dataverse Web API action (POST) — bound or unbound. Use for operations that are not plain CRUD, e.g. PublishDuplicateRule (bound to a duplicaterule) or QualifyLead (bound to a lead), or UnpublishDuplicateRule (unbound, takes DuplicateRuleId). Whether an action is bound is defined in the Web API $metadata. Pass entity_set+id for bound actions, neither for unbound. parameters becomes the JSON request body.
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>"
},
"name": "invoke_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Record GUID the bound action targets. Required iff entity_set is set. | |
| name | Yes | Action name, e.g. 'PublishDuplicateRule', 'QualifyLead'. The Microsoft.Dynamics.CRM. namespace is added for bound calls and may be omitted. | |
| entity_set | No | Entity set (plural, e.g. 'leads') for a bound action. Omit for unbound actions. | |
| parameters | No | Action parameters sent as the JSON request body (e.g. { DuplicateRuleId } for PublishDuplicateRule, { CreateAccount, CreateContact, Status } for QualifyLead). |