Skip to main content
Glama

Regulatory checks: get policy

compliance_policy
Read-onlyIdempotent

Use this when you need one approved regulatory policy's rules, provenance and coverage.

Rego only when the source was retained; else rego_unavailable: source_not_retained, the engine cannot load it, and enforcement says whether structured rules run. Never reconstruct Rego. Requires compliance:read.

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": {
      "id": "<id>"
    },
    "name": "compliance_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / properties / id / description
      Removed value: -"Policy id from compliance_policies"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/closed-world annotations, it discloses a required scope (compliance:read) and the partial-result shape: rego is only present when the source was retained, otherwise rego_unavailable: source_not_retained, with an enforcement field indicating whether structured rules run. That is real behavioral context the annotations cannot carry. It stops short of covering not-found or non-approved outcomes.

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?

Two short paragraphs: usage trigger first, then failure/edge semantics and the auth requirement. No filler, though the second paragraph is telegraphic enough ('the engine cannot load it') that it takes a reread.

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?

With no output schema, the description still sketches the returned fields (rules, provenance, coverage, rego, enforcement) and one degraded case. Missing pieces are error behavior for an unknown or unapproved id, which matters for a single-object read.

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

Parameters2/5

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

The single 'id' parameter has 0% schema description coverage; the schema only supplies required + uuid format. The description never mentions how to obtain or interpret the id, only that you are fetching 'one' policy, so it does not compensate for the coverage gap.

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

Purpose4/5

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

The first sentence names a specific verb-and-resource pair: fetch one approved regulatory policy and its rules, provenance and coverage. 'One' implicitly contrasts with the list-style siblings (compliance_policies, compliance_policy_register), but no sibling is named explicitly, so the differentiation is left to inference.

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?

Opens with an explicit trigger condition ('Use this when you need one approved regulatory policy's rules, provenance and coverage') and adds a hard constraint ('Never reconstruct Rego'). It does not say when NOT to use it or name an alternative for listing/multiple policies, which keeps it short of a 5.

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.