Skip to main content
Glama

policy_language

The authoritative grammar of Alter's runtime-policy language, live from the deployed backend: every authorable rule type with its JSON body schema, caps, authorable levels, worked examples, and fail-closed semantics. Call with no arguments for the overview; pass rule_type (e.g. "content_match") for one type's full grammar. Use it before authoring rules with alter policy rules create — never guess a body shape. Vocabulary: the dashboard's "Runtime policies" surface, the docs' "policy", and alter policy are one feature, and the dashboard's "Require human approval" type is the require_approval rule type (its grant-editor block is the grant-level baseline of the same gate). The same grammar is what policy files carry: alter policy validate|test|plan|apply review rules in Git and CI, and a rule with a code_owner is changed through its file, never with rules update. Workflow prose: the set-policy modify flow (get_started with phase=modify), fetch_doc("guides/set-policies"), fetch_doc("guides/add-human-in-the-loop-approvals"), fetch_doc("guides/policy-as-code"), and fetch_doc("reference/cli/commands/policy").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rule_typeNoOne rule type's full grammar, e.g. "content_match" or "quota".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that content is live from the deployed backend, that no-arg returns an overview vs. rule_type returning one grammar, and that fail-closed semantics apply. It does not describe return size, pagination, or error behavior, which keeps 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?

Front-loaded with purpose and use, and most sentences earn their place by routing the agent. However it is a single dense paragraph that folds in a vocabulary-mapping clause and a long workflow-prose list, which slightly bloats it beyond the core message.

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

Completeness5/5

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

Given a single optional param, no output schema, and no annotations, the description covers everything an agent needs: what it returns, the two call modes, when to use it, the disambiguation from docs/CLI terminology, and where to find workflow prose. Nothing essential is missing.

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?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining the two calling modes (no arguments = overview; rule_type = full grammar for one type) and giving an example value. It does not enumerate valid rule_type values, which would earn a 5.

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?

States a specific resource (the authoritative grammar of Alter's runtime-policy language) with its scope (every authorable rule type with JSON body schema, caps, levels, examples, fail-closed semantics). An agent can distinguish it from siblings like fetch_doc or get_operation_schema purely from this text, since it names the exact artifact it returns.

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

Usage Guidelines5/5

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

Explicitly says to call it before authoring rules with `alter policy rules create` and to never guess a body shape, and it names alternatives (fetch_doc guides, get_started phase=modify) plus an exclusion (code_owner rules are changed through their file, never with rules update). This is when/when-not/alternatives coverage.

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.

Resources