Skip to main content
Glama

Explain a compliance rule

comply_explain_rule
Read-onlyIdempotent
Look up a specific compliance rule by its ID.

Returns the rule description, the law section it comes from, and how to fix it.
Call comply_list_rules() first to see all valid rule IDs.

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": "comply_explain_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine context beyond them by describing the return payload (rule description, originating law section, and remediation guidance), though it says nothing about error behavior for an invalid ID.

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

Conciseness5/5

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

Three short lines, front-loaded with the action, followed by the return contents and the prerequisite. Every sentence adds information and there is no filler.

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?

For a one-parameter read-only lookup with no output schema, the description covers the action, the return shape, and how to source the ID. Only the failure mode for an unknown ID is unaddressed, which is a minor omission at this complexity level.

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?

The single rule_id parameter has zero schema description coverage, so the description must carry the meaning — and it does, establishing that the ID uniquely identifies a rule and that valid values come from comply_list_rules(). It falls short of specifying the ID format (e.g., textual slug vs numeric), which is the remaining gap.

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?

"Look up a specific compliance rule by its ID" gives a concrete verb (look up), a concrete resource (compliance rule), and the lookup key (ID), which separates it cleanly from the sibling list tool mentioned in the next line.

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

Usage Guidelines4/5

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

The description states a clear prerequisite: call comply_list_rules() first to obtain valid rule IDs. That tells the agent the correct entry path, though it does not say when to prefer this over the other explain-style siblings or what to do if the ID is unknown.

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.