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.

Rollback Deployment

lexq_deploy_rollback
Destructive

Roll the group back to the version that was live before the current one. Call lexq_groups_get first: currentVersionName is live now, previousVersionName is what a rollback restores, and a rollback is rejected while canRollback is false. A rollback needs a previous version that is still ACTIVE and whose effective end has not passed (P-058).

Pass the currentVersionId and currentDeploymentId from that call as expectedCurrentVersionId and expectedCurrentDeploymentId. If anyone deployed, rolled back or undeployed in between, the rollback is rejected with 409 and nothing changes: P-062 if another version or no version is live, P-063 if the same version is live but from a newer deployment. Read the group again and check with the user before retrying.

Input Schema

NameRequiredDescriptionDefault
memoYesRollback reason (required)
groupIdYesPolicy group ID
expectedCurrentVersionIdYescurrentVersionId from your last read of the group
expectedCurrentDeploymentIdYescurrentDeploymentId from your last read of the group

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expectedCurrentDeploymentId
      Added value: +{
      +  "description": "currentDeploymentId from your last read of the group",
      +  "format": "uuid",
      +  "pattern": "^([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)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / expectedCurrentVersionId
      Added value: +{
      +  "description": "currentVersionId from your last read of the group",
      +  "format": "uuid",
      +  "pattern": "^([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)$",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "groupId",
      -  "memo"
      -]New value: +[
      +  "groupId",
      +  "expectedCurrentVersionId",
      +  "expectedCurrentDeploymentId",
      +  "memo"
      +]
  2. Changed3 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)$"
  3. Changed4 schema fields changed
    • removedInput schema / properties / memo / default
      Removed value: -""
    • changedInput schema / properties / memo / description
      Previous value: -"Rollback reason"New value: +"Rollback reason (required)"
    • addedInput schema / properties / memo / minLength
      Added value: +1
    • changedInput schema / required
      Previous value: -[
      -  "groupId"
      -]New value: +[
      +  "groupId",
      +  "memo"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The destructiveHint=true / readOnlyHint=false annotations flag this as a mutation, and the description adds what actually changes ('nothing changes' on conflict), how the optimistic-concurrency guard works (mismatched IDs yield a 409 with P-062 vs P-063 depending on whether anything is live), and the read-before-write protocol. It also gives a concrete external constraint (P-058) that would otherwise be invisible.

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 two paragraphs are front-loaded: the mutation and the pre-read requirement come first, and the error-code detail follows. Every sentence carries operational content, though the P-058/P-062/P-063 parentheticals read densely and could be trimmed slightly without losing meaning.

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 4-parameter destructive tool with no output schema, the description covers everything an agent needs: how to derive the concurrency tokens, what makes the operation legal, what the failure modes mean, and how to recover. The annotations plus the description together leave no significant behavioral 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 already 100%, but the description still adds real meaning: it says which fields of a prior lexq_groups_get call map to expectedCurrentVersionId and expectedCurrentDeploymentId and why they exist (staleness detection). The required memo parameter is never explained in the description, so the schema carries that one alone.

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 first sentence states a specific verb and resource ('roll the group back to the version that was live before the current one') and pins the target scope, so an agent can tell it apart from lexq_deploy_undeploy, lexq_deploy_publish, or lexq_versions_* siblings that also change what is live. That scope statement by itself resolves which sibling to use.

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?

The description states an explicit prerequisite workflow ('call lexq_groups_get first'), which fields gate the call (canRollback), when it must not be attempted (previous version must be ACTIVE and not past its effective end), and what to do on failure ('read the group again and check with the user before retrying'). That is when-to-use, when-not-to-use, and the alternative path all in one.

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