verify_control_in_assessment
Verify control existence and leaf status in an assessment to determine rule attachment eligibility, and return control details and attachment status.
Instructions
Verify the existence of a specific control by alias within an assessment and confirm it is a leaf control.
CONTROL VERIFICATION AND VALIDATION:
Confirms the control with the specified alias exists in the given assessment.
Validates that the control is a leaf control (eligible for rule attachment).
Checks if a rule is already attached to the control.
Returns control details and attachment status.
LEAF CONTROL IDENTIFICATION:
A control is considered a leaf control if:
leafControl = true, OR
has no planControls array, OR
planControls array is empty.
Only leaf controls can have rules attached.
If the control is not a leaf control, an error will be returned.
Args: assessment_name: Name of the assessment. control_alias: Alias of the control to verify.
Returns: Dict containing control details, leaf status, and rule attachment info.
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": {
"assessment_name": "<assessment_name>",
"control_alias": "<control_alias>"
},
"name": "verify_control_in_assessment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assessment_name | Yes | ||
| control_alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||