Skip to main content
Glama

check_policy

Read-only

Determines if an action is allowed by policy and budget, then returns allow/ask/deny/modify/observe verdicts for AI coding agent tool calls and LLM requests.

Instructions

Check if an action is allowed by policy and budget.

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

Input Schema

NameRequiredDescriptionDefault
argsNo
actionYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.14.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is known; the description adds only that both policy and budget contribute to the verdict. It does not disclose how the decision is expressed beyond the output schema, whether denials include reasons, or how the free-form args influence the evaluation.

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?

A single short sentence with the key concept front-loaded and no filler. It is efficient, though the brevity edges toward under-specification rather than true conciseness.

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

Completeness2/5

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

An output schema exists, so return values need not be described. Still, for a two-parameter evaluation tool with an opaque arbitrary-property args object, the description leaves the core semantics (action format, args purpose, policy source) unexplained.

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?

Schema description coverage is 0%, so the description must carry the parameter burden and does not. It never explains what an 'action' string should look like (identifier, verb, command?) or what the optional 'args' object is for, despite args accepting arbitrary additional properties.

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

Purpose3/5

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

The description has a clear verb ('Check') and states the outcome domain ('allowed by policy and budget'), so the basic function is understandable. However, it never says what kind of 'action' is being checked (tool call? command? workflow step?) or whose policy/budget applies, and it gives no differentiation from adjacent siblings such as analyze_budget or run_guardian_check.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no preconditions, and no exclusions or alternatives named. An agent cannot infer from the text whether this is a pre-flight gate before executing an action or a general policy query, nor when to prefer analyze_budget instead.

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