Skip to main content
Glama

check_policy

Retrieve active security policies for tool security, MCP security, or memory governance to verify which controls apply before allowing AI interactions.

Instructions

List or check security policies. Returns all active policies for tool security, MCP security, or memory governance.

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": {
      "policy_type": "<policy_type>"
    },
    "name": "check_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policy_typeYesType of policies to retrieve

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose one meaningful trait: only active policies are returned, not the full history. It does not state that this is a read-only operation, whether results are paginated, or what a single policy entry looks like, leaving notable gaps.

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 sentences with no filler, and the resource is front-loaded before the scoping detail. Minor redundancy in echoing the enum values, but nothing that wastes the reader's time.

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 tool with no output schema, the description covers the resource, the categories, and the active-only filter, which is enough to call it correctly. The remaining gap is what a returned policy contains, which is modest given the tool's simplicity.

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

Parameters3/5

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

Schema description coverage is 100% and the single parameter is an enum with its own description, so the schema already explains policy_type. The description merely restates the three enum values in prose ("tool security, MCP security, or memory governance") without adding format or behavior detail.

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?

"List or check security policies" gives a concrete verb+resource, and the second sentence narrows the domain to the three policy categories. It is distinguishable from the sibling scan_* tools, though the hedged "List or check" leaves the exact operation slightly ambiguous.

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?

Usage is only implied: an agent can infer it should call this when it needs the rules governing tool, MCP, or memory behavior. There is no explicit when-to-use, when-not-to-use, or pointer to a related tool such as the scan_* family for enforcement checks.

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