execute_action
Trigger actions on assessment runs, control runs, or evidence levels to automate compliance remediation, requiring explicit user confirmation before modifying system state.
Instructions
Use this tool when the user asks about actions such as create, update or other action-related queries.
IMPORTANT: This tool MUST ONLY be executed after explicit user confirmation. Always prompt for REQUIRED-FROM-USER field from user and get inputs from user. Always confirm the inputs below execute action. Always describe the intended action and its effects to the user, then wait for their explicit approval before proceeding. Do not execute this tool without clear user consent, as it performs actual operations that modify system state.
Execute or trigger a specific action on an assessment run. use assessment id, assessment run id and action binding id. Execute or trigger a specific action on an control run. use assessment id, assessment run id, action binding id and assessment run control id . Execute or trigger a specific action on an evidence level. use assessment id, assessment run id, action binding id, assessment run control evidence id and evidence record ids. Use fetch assessment available actions to get action binding id. Only once action can be triggered at a time, assessment level or control level or evidence level based on user preference. Use this to trigger action for assessment level or control level or evidence level. Please also provide the intended effect when executing actions. For inputs use default value as sample, based on that generate the inputs for the action. Format key - inputName value - inputValue. If inputs are provided, Always ensure to show all inputs to the user before executing the action, and also user to make changes to the inputs and also confirm modified inputs before executing the action.
WORKFLOW:
First fetch the available actions based on user preference assessment level or control level or evidence level
Present the available actions to the user
Ask user to confirm which specific action they want to execute
Explain what the action will do and its expected effects
Wait for explicit user confirmation before calling this tool
Only then execute the action with this tool
Args: - assessmentId - assessmentRunId - actionBindingId - assessmentRunControlId - needed for control level action - assessmentRunControlEvidenceId - needed for evidence level action - evidenceRecordIds - needed for evidence level action - inputs (Optional[dict[str, Any]]): Additional inputs for the action, if required by the action's rules.
Returns: - id (str): id of triggered action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assessmentId | Yes | ||
| assessmentRunId | Yes | ||
| actionBindingId | Yes | ||
| assessmentRunControlId | No | ||
| assessmentRunControlEvidenceId | No | ||
| evidenceRecordIds | No | ||
| inputs | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| error | No |