guardentry_evaluate_action
Evaluate proposed agent actions against policy to decide if allowed, blocked, or needs approval, returning a reasoned decision for pre-execution gating.
Instructions
Evaluate whether a proposed agent action is allowed, blocked, or requires approval based on the agent's policy. Returns a decision with reasoning. Use before any agent executes a sensitive task, tool call, or prompt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Evaluation depth: fast (rules only), balanced (rules + LLM), strict (LLM with reasoning model) | |
| policy | No | Inline policy object — when provided, skips store lookup entirely. Useful for testing policies without saving them. | |
| agent_id | No | UUID of the agent proposing the action (optional) | |
| policy_id | No | Load a specific policy by ID from the store instead of the default cascade lookup | |
| agent_name | No | Human-readable agent name (used for policy inference if no policy exists) | |
| agent_type | No | Agent type for policy lookup (e.g. 'compliance', 'vulnerability') | |
| agent_tools | No | Tools available to the agent (used for policy inference) | |
| subject_type | Yes | Type of subject being evaluated | |
| subject_content | Yes | The action text to evaluate (task description, tool argument, prompt, etc.) |