preflight_text
Scores inbound text for prompt injection and returns allow, review, or block with the guard rule that fired, enabling fast pre-agent filtering without an LLM call.
Instructions
Score inbound text for prompt injection with gamai-guard (lexical + optional embedding cascade). Returns allow/review/block plus the guard rule that fired, under 10 ms and with no LLM call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "preflight_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | the inbound prompt or tool output | |
| embed_url | No | guard worker URL to enable the semantic layer |