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.

Publish Version

lexq_deploy_publish
Destructive

Publish a DRAFT version (DRAFT → ACTIVE). Locks the version from further edits. Must have at least one rule. Undefined facts that rules only read do not block publishing; call lexq_facts_unregistered first to review them. Publishing fails if an action's targetVar is not a registered fact (ACT-032), if a MUTATE_FACT uses a registered fact that is not a NUMBER fact (ACT-035), if a SET_FACT value does not match the data type of its targetVar (ACT-036), if a value in a rule is over a value limit (P-064), or if the version's rules exceed 128 KB (P-053). Publishing also fails if the version's effective end has already passed (P-058); move the end into the future with lexq_versions_update first.

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": {
      "groupId": "<groupId>",
      "versionId": "<versionId>",
      "memo": "<memo>"
    },
    "name": "lexq_deploy_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoYesPublish memo (required)
groupIdYesPolicy group ID
versionIdYesVersion ID to publish

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 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
    • addedInput schema / properties / groupId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • addedInput schema / properties / versionId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. Changed1 schema field changed
    • changedInput schema / properties / memo / description
      Previous value: -"Publish Deployment memo (required)"New value: +"Publish memo (required)"
  3. Changed4 schema fields changed
    • removedInput schema / properties / memo / default
      Removed value: -""
    • changedInput schema / properties / memo / description
      Previous value: -"Deployment memo"New value: +"Publish Deployment memo (required)"
    • addedInput schema / properties / memo / minLength
      Added value: +1
    • changedInput schema / required
      Previous value: -[
      -  "groupId",
      -  "versionId"
      -]New value: +[
      +  "groupId",
      +  "versionId",
      +  "memo"
      +]
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructive=false... actually destructiveHint=true and readOnlyHint=false, so the mutation profile is known, but the description goes far beyond that: it discloses the irreversible edit lock, the rule-count requirement, and a precise catalogue of failure codes (ACT-032, ACT-035, ACT-036, P-064, P-053, P-058) with their causes. This is the kind of behavioral detail an agent cannot get from structured fields.

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 core action and its irreversible effect are front-loaded in the first two sentences, followed by prerequisites and then failure modes in a logical order. The long single-sentence enumeration of error codes is dense and would read better as a list, which keeps it from a 5.

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 destructive, multi-precondition mutation with no annotations covering preconditions and no output schema, the description is nearly complete: transition, lock, prerequisites, remediation paths, and failure causes are all covered. The only gap is the absence of any statement about what a successful publish returns or its after-effects on live traffic, which the missing output schema leaves unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with three required, self-explanatory parameters (groupId, versionId, memo), so the schema already does the work and the baseline applies. The description adds no meaning about the memo's purpose or formatting, nor about how groupId and versionId interact.

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 plus the exact state transition it performs: "Publish a DRAFT version (DRAFT → ACTIVE)". That transition, combined with the note that the version is locked from further edits, clearly separates it from siblings like lexq_deploy_undeploy or lexq_deploy_rollback.

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?

It states the precondition (must have at least one rule), clarifies a non-blocking case (undefined facts that are only read), and routes the agent to specific alternatives before calling: lexq_facts_unregistered to review unregistered facts and lexq_versions_update to move a passed end date. That is explicit when-to-use, when-not, and alternative guidance.

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