Skip to main content
Glama

Explain a rule

explain_rule
Read-onlyIdempotent

One rule in plain terms: what it requires (TwinEthos's summary and the duty), who it applies to (with every threshold, exclusion and exception), its dates, the exact citations with their official links, where the rule differs by place each place's own threshold, dates and citation, and the guard to add (a guard is the change to make in the application's code or settings, such as a notice, a check or a human review step, that addresses the rule's duty), with the rule's own specifics and how to verify the guard.

When to use: after search_laws, coming_into_force, recently_in_force or plan_guards, with a rule_id one of them returned, or when someone names a rule id. An unknown id returns an error naming search_laws. It never returns the official text itself. Limits: informational data, not legal advice.

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": {
      "rule_id": "<rule_id>"
    },
    "name": "explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idYesA rule id as the other tools return it (`rule_id`), such as eu-ai-act.art50.chatbot-disclosure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / rule_id / description
      Added value: +"A rule id as the other tools return it (`rule_id`), such as eu-ai-act.art50.chatbot-disclosure."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already establish read-only/idempotent/closed-world, but the description adds non-annotation behavior: the unknown-id error path and which tool the error redirects to, the explicit content ceiling (no official text), and a scope disclaimer ('informational data, not legal advice'). It even defines the domain-specific term 'guard' inline so the agent knows an output includes a remediation step.

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

Conciseness3/5

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

Reasonably front-loaded, but the lead sentence is an overloaded run-on carrying a nested parenthetical definition of 'guard' plus an unpunctuated sub-clause ('where the rule differs by place each place's own threshold'). The content all earns its place; the structure around it could be tightened into a list without losing information.

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

Completeness5/5

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

There is no output schema, so the description must carry the return-value burden itself, and it does — enumerating every returned component down to per-place thresholds and guard verification. Combined with single-parameter simplicity and read-only annotations, nothing an agent needs to call this correctly is missing.

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 100% and the schema already gives an example rule_id, so the baseline is 3. The description adds genuine meaning by specifying provenance — the id must be one returned by the named sibling tools or a user-supplied id — which tells the agent where valid values come from rather than just their type.

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?

Opens with a specific verb+resource ('One rule in plain terms') and enumerates the exact contents of the explanation: requirements, applicability thresholds/exclusions/exceptions, dates, citations with links, per-place variation, and a guard with verification steps. This is unmistakably distinct from search_laws or plan_guards.

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

Usage Guidelines5/5

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

Explicitly names the four upstream tools that produce a usable rule_id, covers the 'someone names a rule id' path, and states the failure behavior for unknown ids (an error naming search_laws). It also sets a negative boundary: it never returns the official text itself.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources