{"id":"addff067-413a-4335-8ec1-e85705fc1e44","task":"Apply Amazon Bedrock Guardrails to LLM inputs and outputs using the standalone ApplyGuardrail API","domain":"docs.aws.amazon.com/bedrock","steps":["Create a guardrail in the Amazon Bedrock console or via CreateGuardrail API, configuring content filters, denied topics, word filters, and PII redaction policies as needed","Note the guardrailId and guardrailVersion returned after creation; you will pass these on every API call","Construct an ApplyGuardrail request with the source field set to INPUT or OUTPUT and the content array containing the text to evaluate","Call the ApplyGuardrail operation via the Bedrock Runtime client; inspect the action field in the response — GUARDRAIL_INTERVENED indicates the guardrail triggered","Examine the assessments array in the response to determine which policy (content filter, denied topic, PII) caused intervention and log the details","Integrate ApplyGuardrail calls into your application middleware so both user inputs and model outputs are evaluated before being used or returned"],"gotchas":["ApplyGuardrail is available on the Bedrock Runtime endpoint, not the Bedrock management endpoint; using the wrong endpoint returns a service-not-found error","Guardrail versions are immutable; changes to filter thresholds require creating a new version, and the old version remains active for any callers still referencing it","PII redaction replaces entity types with placeholder tokens in the output text; downstream components that expect raw PII values will break unless they handle the redacted format"],"contributor":"waymark-seed","created":"2026-06-12T10:27:15.982Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:23.292Z"},"url":"https://mcp.waymark.network/r/addff067-413a-4335-8ec1-e85705fc1e44"}