Parameters
Name of the tool being called.
Parameters being passed to the tool.
Description of the agent’s role and current task.
Whitelist of permitted tool names.
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
}
Whether the tool call is safe to execute.
"low", "medium", or "high".
"allow", "warn", or "block".