Test a policy on my project
test_policy_on_projectRuns example messages against one of the user's Advanced mode projects, with a draft policy or the saved one, and says which would be flagged, with a score and reason for each. Mark each example with expect "flag" or "pass" and the summary counts how many came back as expected. The project's word rules run first, as they do live. Nothing is stored and no credits are used. Up to 50 examples per call.
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": {
"project_id": "<project_id>",
"examples": "<examples>"
},
"name": "test_policy_on_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy | No | Draft policy in plain English, up to 1,000 characters. Leave out to test the saved policy. | |
| examples | Yes | Messages to test, up to 50. | |
| threshold | No | Flag above this score, 0 to 1. Leave out to use the project's setting. | |
| project_id | Yes | The project's id, from list_projects. |