check-action
Check Action Rest
REST mirror of the check_action MCP tool (mcp_server/server.py), for callers that can't speak MCP directly. The gnt-installed Claude Code PreToolUse hook is the first of these: a hook is a plain subprocess, not an MCP client, and needs one HTTP call it can make with the same API key already configured for MCP.
Same evaluate_action() the MCP tool calls, same per-key rate-limit bucket (mcp_serving_rate_limit:{key_id} — a caller can't double their budget by mixing transports), same audit logging and gap tracking as the MCP tool. This does not change that tool's own contract or behavior at all — it's a second transport onto the identical function and the identical side effects.
API-key auth only, not a live session: check_action is for agent/service callers, and a session has no per-key rate-limit bucket or audit-log caller identity to attribute a call to.
Check Action Rest › Responses
Successful Response