Parameters
Tool का नाम जो call हो रहा है।
Tool को pass हो रहे parameters।
Agent की role और current task की description।
Permitted tool names की whitelist।
Request
curl -X POST https://api.responsibleailabs.ai/railscore/v1/agent/evaluate-tool-call \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_RAIL_API_KEY" \
-d '{"tool_name": "send_email", "tool_input": {"to": "admin@company.com", "body": "Click: http://suspicious.com"}, "agent_context": "Customer support chatbot."}'
Response
{
"result": {
"safe": false,
"risk_level": "high",
"risk_score": 0.89,
"explanation": "Suspicious URL detected in email body.",
"flags": [{"type": "suspicious_url", "detail": "Domain mismatch"}],
"recommendation": "block"
},
"credits_consumed": 1.0
}
Tool call execute करना safe है या नहीं।
"low", "medium", या "high"।
"allow", "warn", या "block"।