Skip to main content
Lakera Guard logo
  • Category: ai safety compliance detection
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 10
  • Triggers: 0
  • Slug: LAKERA_GUARD
  • Version: 20261101_00

Tools

Slug: LAKERA_GUARD_CREATE_POLICYCreate an Enterprise Lakera policy with built-in detectors and/or custom guardrails. Lakera may omit the new policy ID; if omitted, later retrieval, replacement, and deletion require external policy lookup.

Input Parameters

string
required
Policy name, unique within the organization.
array
Built-in detector configurations. Provide at least one detector or custom_guardrail_id.
string ("l1_confident" | "l2_very_likely" | "l3_likely" | "l4_less_likely")
required
Default confidence threshold at or above which configured detectors trigger.
array
Existing custom guardrail IDs to include. Provide at least one ID or detector.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_CREATE_PROJECTCreate an Enterprise Lakera project, optionally assigning a policy, metadata, and detect-or-flag action. Omit policy_id to use the default policy. Lakera does not return the generated project ID, so later retrieval, updates, and deletion require external project lookup.

Input Parameters

string
required
Name for the new project.
string ("detect" | "flag")
Project response action: detect reports detections, while flag applies flagging behavior.
string
Existing policy ID to assign; omit to use the default policy.
object
String-valued project metadata stored by Lakera.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_DELETE_POLICYPermanently delete an Enterprise Lakera policy by ID. The provider rejects deletion while any project is assigned to the policy.

Input Parameters

string
required
ID of the unassigned policy to permanently delete.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_DELETE_PROJECTPermanently and irreversibly delete an Enterprise Lakera project by ID. Historical requests lose their association with the project’s metadata and assigned policy.

Input Parameters

string
required
ID of the project to permanently and irreversibly delete.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_EVALUATE_DETECTORSEvaluate content and return one confidence result per configured detector without producing an aggregate flagging decision or Guard screening log. Use for analysis and tuning, not runtime allow/block decisions.

Input Parameters

boolean
Whether to request Guard build and model version information.
array
required
OpenAI-style conversation in chronological order; each message requires a role, while assistant tool-call messages may omit content.
object
Optional arbitrary request metadata passed to Lakera Guard.
string
Lakera project whose policy should be evaluated; omit to use the default policy.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_GET_POLICYRetrieve an Enterprise Lakera policy by ID, including its detector configuration, custom guardrails, version, and assigned projects.

Input Parameters

string
required
Policy ID returned by Create Policy.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_GET_PROJECTRetrieve an Enterprise Lakera project by ID, including its assigned policy, metadata, and detect-or-flag action.

Input Parameters

string
required
Lakera project ID to retrieve.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_SCREEN_CONTENTScreen the latest LLM or agent interaction with Lakera Guard to inform runtime allow/block decisions. Earlier messages provide context but are not re-screened. The result follows the project policy and mode: Detect mode forces the top-level flagged result to false even when detectors find threats.

Input Parameters

boolean
Whether to include matched text locations for supported detectors such as PII, profanity, and custom regex.
boolean
Whether to include Guard build and model version information.
array
required
OpenAI-style conversation in chronological order. Earlier messages provide context, but Guard screens only the latest interaction.
object
Optional request tags, commonly user_id, session_id, ip_address, and internal_request_id.
boolean
Whether to include detector-by-detector decisions and confidence levels.
string
Lakera project whose policy should screen the interaction; omit to use the default policy.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_UPDATE_POLICYReplace an Enterprise Lakera policy’s complete configuration and create a new policy version. Omitted detectors or custom guardrails are removed, so retrieve the policy first when preserving existing settings.

Input Parameters

string
required
Complete replacement policy name.
array
Complete replacement built-in detector list. Omission removes existing detectors; provide at least one detector or custom guardrail ID.
string
required
ID of the policy to replace.
string ("l1_confident" | "l2_very_likely" | "l3_likely" | "l4_less_likely")
required
Complete replacement default detector threshold.
array
Complete replacement custom guardrail ID list. Omission removes existing custom guardrails.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: LAKERA_GUARD_UPDATE_PROJECTUpdate an Enterprise Lakera project by ID. Name is required by the official request schema; retrieve the project first when preserving its current name or other optional settings.

Input Parameters

string
required
Project name; required by the official Platform request schema.
string ("detect" | "flag")
Project action. Omission keeps the existing action.
string
Policy ID to assign to the project.
string
required
ID of the project to update.
object
String-valued project metadata to send in the update.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not