Skip to main content
Glama
This connector has been deprecated

This listing duplicates LexQ (io.lexq/lexq), which follows the official MCP Registry entry. Use that listing instead.

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
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?

Beyond the non-destructive, non-open-world annotations, it discloses non-obvious behavior: priority is auto-assigned and appended last tenant-wide, groups sharing an activationGroup form a constrained cluster, and a hard limit of 20 non-ARCHIVED groups applies. What is missing is whether cluster-field mismatches fail the call or what the response returns.

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?

The creation statement and required field are front-loaded, followed by ordering, cluster constraints, and the quota. It is dense but nearly every clause carries operational consequence; the cluster/quota material could be tightened into one sentence without losing content.

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, the description covers prerequisites, ordering side effects, cluster invariants, and quota pressure, which is most of what an agent needs. The remaining gap is failure behavior and any returned identifier, which the description never mentions.

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, but the description adds real meaning beyond the schema by explaining that executionLimit counts groups rather than rules and that a shared activationGroup imposes shared activationMode/activationStrategy/executionLimit. It does not clarify defaults for activationMode or when activationStrategy is required.

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?

The description opens with a specific verb and resource ('Create a new policy group') and immediately names the required field, so it is unambiguous against siblings such as lexq_groups_update, lexq_groups_delete, and lexq_groups_list. An agent can route to it without opening the 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?

It explicitly redirects ordering work to lexq_groups_reorder and tells the agent to archive unused groups when hitting the 20-group cap, which is actionable guidance. It stops short of stating when to prefer this over lexq_groups_update or what the cluster consequences are for choosing activationGroup values.

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