compile_regulation
Convert raw regulation text into validated ODGS rule JSON for enforcement. Use it to turn statutes, clauses, or free-text regulations into ready-to-enforce rules.
Instructions
Convert regulation text into ODGS rule JSON.
Paste any statute, regulatory article, or SLA clause and get back validated ODGS rule objects ready for enforcement.
Supports: EU AI Act, DORA, GDPR, CSRD, NIS2, Basel III, and any free-text regulation.
Args: regulation_text: Raw regulation text to compile. regulation_name: Optional regulation identifier. provider: LLM provider — "ollama" (local), "google-genai", or "openai-compat".
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": {
"regulation_text": "<regulation_text>"
},
"name": "compile_regulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | ||
| regulation_name | No | ||
| regulation_text | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |