Skip to main content
Glama

Publish Version

lexq_deploy_publish

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 the version's compiled rules exceed 128 KB, or if its effective end has already passed (P-058); move the end into the future with lexq_versions_update first.

Input Schema

TableJSON 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.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the irreversible lock on the version, the minimum-one-rule constraint, the fact that unread undefined facts do not block publishing, and three distinct failure conditions (ACT-032 targetVar not registered, 128 KB compiled-rule cap, P-058 expired effective end). That is exactly the operational detail an agent needs before invoking a mutation.

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 action and its side effect, then prerequisites, then failure modes. Highly dense with no filler, though the final sentence packs three failure conditions and a remedy into one long clause, slightly straining readability.

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?

For a no-output-schema mutation tool, the description covers the transition, the lock, preconditions, and every known failure mode plus the remedy for each. Nothing an agent needs to call it correctly is missing.

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% and all three parameters (groupId, versionId, memo) are documented in the schema itself. The description adds no additional parameter semantics such as memo formatting expectations or id provenance, so the baseline 3 applies.

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 with the state transition spelled out ("Publish a DRAFT version (DRAFT → ACTIVE)"), and immediately names the consequence ("Locks the version from further edits"). This is clearly distinguishable from siblings like lexq_deploy_deployable, lexq_versions_update, or lexq_versions_clone.

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 concrete prerequisites and routes the agent to sibling tools: call lexq_facts_unregistered first to review undefined facts, or lexq_versions_update to move the end into the future before retrying. It does not, however, contrast this with lexq_deploy_deployable or explain when publishing is the wrong path, so it stops short of full when/when-not 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