policy_evaluate
Evaluate a candidate MCP tool name against the loaded JamJet policy. Returns the matched rule, decision (allow, block, require_approval, audit), and glob pattern. Use to dry-run a tool call before issuing it or to explain a previous block.
Instructions
Evaluate the currently loaded JamJet policy against a candidate MCP tool name. Returns the matched rule, the decision (allow / block / require_approval / audit), and the matched glob pattern. Use this to dry-run a tool call before issuing it, or to explain why a previous call was blocked. Read-only and side-effect free — does not write to the audit log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_name | Yes | Fully-qualified MCP tool name, e.g. "filesystem.delete_file" or "github.merge_pull_request". Pattern matching follows the same glob rules as the policy file (`*` matches any chars except `.`, `**` matches across `.`). | |
| arguments | No | Optional tool-call arguments. Recorded for audit-trail symmetry but not used for matching in policy v1 (only the tool name is matched against rule patterns). |