Skip to main content
Glama

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

NameRequiredDescriptionDefault
providerNo
regulation_nameNo
regulation_textYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It usefully discloses that the tool performs LLM-backed inference by naming provider choices ('ollama' local, 'google-genai', 'openai-compat') and that output is validated, which implies latency and possible external credentials. It does not state failure modes, whether credentials/network access are required, cost, determinism, or whether anything is persisted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core verb-and-output sentence, followed by a short scope line and a compact args list; nothing is padded. The regulation_text arg line slightly restates the schema title, which is minor redundancy in an otherwise efficient structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the description need not spell out return values, and all three parameters are covered. For a transformation tool calling an external LLM, the remaining shortfall is operational context — input size limits, provider availability/credentials, and error behaviour — but what an agent needs in order to invoke it correctly is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, and it largely does: it explains that regulation_text is raw text, regulation_name is an optional identifier, and — most valuably — enumerates accepted provider values that the schema leaves as an unconstrained string/null. The only gap is that it never states the default provider used when the argument is null.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Convert regulation text into ODGS rule JSON') and immediately clarifies the output contract ('validated ODGS rule objects ready for enforcement'). The supported-regime list (EU AI Act, DORA, GDPR, CSRD, NIS2, Basel III, plus free text) makes the tool's scope unambiguous, so an agent can distinguish it from validate_payload or conformance_check without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Paste any statute, regulatory article, or SLA clause' gives implied usage by describing acceptable inputs. However, there is no explicit when-to-use versus when-not guidance, no mention of when to prefer conformance_check or validate_payload after compiling, and no stated prerequisites (e.g. that an LLM provider must be reachable).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.