Guardrails
Dry-run evaluate a guardrail
Runs the full evaluation pipeline — the class expression, the guard, the context tool per context_mode, live runtime.* resolution — against caller-supplied args and guardrail_context, and returns the exact guardrail_evaluation record a real call would produce. Nothing executes, no approval item is filed, and no activity entry is written. This is the adoption path: preview a document's decisions against production-shaped calls before attaching it — or before editing a widely-attached one. Pass an optional tool_id to resolve runtime.tools.*.
post/v1/projects/{project_id}/guardrails/{guardrail_id}/evaluate
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/guardrails/{guardrail_id}/evaluate
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
guardrail_idstring required
Request body
Response
The would-be evaluation record (nothing executed)
Example response
{
"guardrail_id": "guard_V1StGXR8Z5jdHi6B"
}Changes
No recorded changes to this operation across all 1 revision of this API.