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.

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

Input Schema

NameRequiredDescriptionDefault
nameYesGroup name (unique among non-ARCHIVED)
descriptionNoGroup description
activationModeNoConflict resolution mode. Defaults to EXCLUSIVE with an activationGroup, and is always NONE without one. A group with an activationGroup and mode NONE is rejected (P-066).
executionLimitNoHow many policy groups sharing this activationGroup may run when mode is MAX_N; 2 when omitted. 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. Changed2 schema fields changed
    • changedInput schema / properties / activationMode / description
      Previous value: -"Conflict resolution mode"New value: +"Conflict resolution mode. Defaults to EXCLUSIVE with an activationGroup, and is always NONE without one. A group with an activationGroup and mode NONE is rejected (P-066)."
    • changedInput schema / properties / executionLimit / description
      Previous 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."New value: +"How many policy groups sharing this activationGroup may run when mode is MAX_N; 2 when omitted. Counts groups, not rules: every rule of a winning group runs."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the write/safety profile, and the description adds substantial behavior beyond them: priority is auto-assigned last and tenant-wide, groups sharing an activationGroup form a cluster with coupled settings, an invalid activationGroup+NONE combination is rejected (P-066), and the 20-non-ARCHIVED-group cap. It does not say what a successful call returns or whether creation is idempotent on duplicate names, so it falls 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 the core action, then constraints and quota in descending importance; each sentence carries new information. 'Requires name' restates the schema's required field and the multi-clause sentences are dense, but there is no filler.

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 6-parameter mutation with full schema coverage and no output schema, the description covers validation rules, quota limits, ordering side effects and cluster coupling well. The main gap is the return value (e.g. the new group's identifier) and uniqueness-failure behavior, which an agent would want before calling.

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 mechanical meaning of each parameter is already documented and baseline is 3. The description adds cross-parameter semantics the schema states only piecewise: that all groups in one activationGroup must agree on activationMode/activationStrategy/executionLimit, and it clarifies executionLimit counts groups rather than rules.

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?

Opens with a specific verb+resource ('Create a new policy group'), which is unambiguous against siblings like lexq_groups_get, lexq_groups_update and lexq_groups_delete. It names lexq_groups_reorder for ordering, but does not explicitly say how it differs from lexq_groups_update, keeping it short of a 5.

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 a concrete routing rule ('use lexq_groups_reorder to change order') and a quota-management workflow ('archive groups you no longer use to free a slot'). The create-vs-update boundary is left to inference, and there are no stated prerequisites such as required permissions.

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.