Skip to main content
Glama

policy_info

Reports the exact policy ruleset enforced—committed policy ID and root hash, protected branches, and opt-in presets—so relying parties can verify a signed receipt matches the gate’s policy.

Instructions

Report the exact ruleset being enforced: the committed policy id and root (content hash), the protected branches, and any opt-in presets/extra patterns. A relying party can hold the same spec and confirm the receipt's policy root matches, so 'the gate enforces this policy' is checkable, not a promise.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "policy_info"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden, and it does convey a pure read/report operation with no stated side effects, plus exactly what information is surfaced (policy id, root hash, branches, presets). It omits auth requirements or whether the result reflects a committed vs. working state, keeping it short of a 5.

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 sentences: the first front-loads the concrete contents, the second justifies the purpose. The closing 'checkable, not a promise' is slightly rhetorical but does add rationale rather than waste.

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?

An output schema exists, so return-format detail is not required, and the description still summarizes the key fields. For a zero-parameter read tool this covers what an agent needs, with only the freshness/scope of the reported policy left implicit.

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 tool takes zero parameters, so there is nothing for the description to disambiguate; the empty schema is self-explanatory. Baseline of 4 applies.

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?

States a specific verb ('Report') and a specific resource (the exact ruleset being enforced), then enumerates the content: policy id, root content hash, protected branches, and opt-in presets. An agent can distinguish this from session_receipt or audit_log, though it never names an alternative explicitly.

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 through the 'relying party can... confirm the receipt's policy root matches' framing, which suggests when the tool is useful for verification. There is no explicit when-to-use/when-not statement or pointer to a sibling tool for adjacent needs.

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