cURL
curl --request POST \ --url https://api.promptguard.dev/api/v1/agent/validate-tool \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "agent_id": "<string>", "tool_name": "<string>", "arguments": {}, "session_id": "<string>" } '
{ "allowed": true, "risk_score": 123, "risk_level": "<string>", "reason": "<string>", "warnings": [], "blocked_reasons": [] }
Validate a tool call before execution.
This endpoint should be called before allowing an AI agent to execute any tool/function call. It validates:
API Key authentication for developer endpoints (/api/v1/*). Use format: 'Bearer pg_api_your_key_here'
Request to validate a tool call
Successful Response
Response from tool call validation