Skip to main content
Glama

Create Policy Group

lexq_groups_create

Create a new policy group. Requires name. Priority is auto-assigned (appended last, tenant-wide); use lexq_groups_reorder to change order. Optionally set conflict resolution, activation group, and description. Policy groups that share an activationGroup form a cluster and must share the same activationMode / activationStrategy / executionLimit; executionLimit is how many of those groups run, not how many rules. A tenant can have at most 20 groups that are not ARCHIVED; archive groups you no longer use to free a slot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesGroup name (unique among non-ARCHIVED)
descriptionNoGroup description
activationModeNoConflict resolution mode
executionLimitNoHow many policy groups sharing this activationGroup may run (required when mode is MAX_N). Counts groups, not rules: every rule of a winning group runs.
activationGroupNoActivation group (Execution Group) cluster key. Policy groups sharing this key compete, and group priority picks the winners.
activationStrategyNoRanking used to pick the winning groups when mode is EXCLUSIVE or MAX_N

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / activationGroup / description
      Previous value: -"Activation group name"New value: +"Activation group (Execution Group) cluster key. Policy groups sharing this key compete, and group priority picks the winners."
    • changedInput schema / properties / activationStrategy / description
      Previous value: -"Strategy when mode is EXCLUSIVE or MAX_N"New value: +"Ranking used to pick the winning groups when mode is EXCLUSIVE or MAX_N"
    • changedInput schema / properties / activationStrategy / enum
      Previous value: -[
      -  "FIRST_MATCH",
      -  "HIGHEST_PRIORITY",
      -  "MAX_BENEFIT"
      -]New value: +[
      +  "HIGHEST_PRIORITY"
      +]
    • changedInput schema / properties / executionLimit / description
      Previous value: -"Max rule executions (required when mode is MAX_N)"New value: +"How many policy groups sharing this activationGroup may run (required when mode is MAX_N). Counts groups, not rules: every rule of a winning group runs."
    • addedInput schema / properties / executionLimit / maximum
      Added value: +9007199254740991
  2. Changed2 schema fields changed
    • removedInput schema / properties / priority
      Removed value: -{
      -  "description": "Execution priority (lower = higher)",
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "priority"
      -]New value: +[
      +  "name"
      +]
  3. Changed8 schema fields changed
    • addedInput schema / properties / activationGroup
      Added value: +{
      +  "description": "Activation group name",
      +  "type": "string"
      +}
    • removedInput schema / properties / activationGroupId
      Removed value: -{
      -  "description": "Activation group ID",
      -  "format": "uuid",
      -  "type": "string"
      -}
    • addedInput schema / properties / activationMode
      Added value: +{
      +  "description": "Conflict resolution mode",
      +  "enum": [
      +    "NONE",
      +    "EXCLUSIVE",
      +    "MAX_N"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / activationStrategy
      Added value: +{
      +  "description": "Strategy when mode is EXCLUSIVE or MAX_N",
      +  "enum": [
      +    "FIRST_MATCH",
      +    "HIGHEST_PRIORITY",
      +    "MAX_BENEFIT"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / conflictResolutionMode
      Removed value: -{
      -  "description": "Conflict resolution mode",
      -  "enum": [
      -    "NONE",
      -    "EXCLUSIVE",
      -    "MAX_N"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / conflictResolutionStrategy
      Removed value: -{
      -  "description": "Strategy when mode is EXCLUSIVE or MAX_N",
      -  "enum": [
      -    "FIRST_MATCH",
      -    "HIGHEST_PRIORITY",
      -    "MAX_BENEFIT"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / executionLimit
      Added value: +{
      +  "description": "Max rule executions (required when mode is MAX_N)",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedInput schema / properties / maxSelections
      Removed value: -{
      -  "description": "Max selections (required when mode is MAX_N)",
      -  "minimum": 1,
      -  "type": "integer"
      -}
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false. The description adds real behavioral context the annotations cannot: priority is auto-assigned and appended last, the tenant-wide cap of 20 non-ARCHIVED groups, and the cluster constraint that groups sharing an activationGroup must share mode/strategy/executionLimit. It does not describe error responses or what happens on cap violation, so 4 rather than 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?

Four sentences, front-loaded with the core action and the required field, then escalating to optional fields and constraints. Dense but every sentence carries information; the trailing cap/cluster sentence is long though warranted.

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 mutation tool with no output schema and 100% schema coverage, the description supplies the missing operational context: auto-assigned priority, the quota, and the inter-parameter cluster constraint. Only error/failure behavior remains unstated, which is a minor gap.

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 coverage is 100%, so the baseline is 3. The description goes beyond the schema by disclosing a cross-parameter constraint (groups sharing an activationGroup must share activationMode/activationStrategy/executionLimit) and by clarifying that executionLimit counts groups rather than rules. That added semantic layer justifies 4.

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 verb and resource ('Create a new policy group') and immediately differentiates itself from siblings by naming lexq_groups_reorder as the tool for changing order. An agent can distinguish it from lexq_groups_update, lexq_groups_delete and lexq_groups_get without opening any schema.

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?

Gives clear usage context: priority is auto-assigned and reorder is the alternative tool, optional fields are enumerated, and the 20-group cap with an archive-to-free-a-slot hint tells the agent when this call will fail. It lacks an explicit when-not-to-use statement (e.g., prefer update for existing groups), which keeps it at 4 rather than 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.

Resources