run_control_test
Records a control test result as an indicator result on a control's manual indicator, creating the indicator when none exists. Use it to log test outcomes and evidence against ServiceNow controls.
Instructions
Record a control test result: an indicator result (sn_grc_indicator_result) on the control's manual indicator, which is created if the control has none. Requires WRITE_ENABLED=true
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": {
"control": "<control>"
},
"name": "run_control_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| async | No | Run as a background job and return a job_id at once. Poll it with get_job. Calls that take longer than about 20 seconds switch to a job on their own. | |
| notes | No | Test notes/evidence | |
| fields | No | Additional field values | |
| result | No | Test result (e.g. "pass", "fail") | |
| control | Yes | sys_id of the control (sn_compliance_control) | |
| indicator | No | Optional indicator (sn_grc_indicator) sys_id to record against |