Skip to main content
Glama

Reconnect a GitHub or GitLab Workflow

reconnect_workflow
Destructive

Repair an inactive GitHub Workflow whose GitHub App was uninstalled and installed again: publishes its next version with only the installation changed, to the organisation’s live installation that can see the repository, which reactivates it. For a GitLab Workflow, likewise with its GitLab connection: to an active connection of the organisation whose user can read the project, registering its webhook again when it is gone. When the installation or connection it names is already live, nothing is published (published: false) and it is reactivated. Pass baseVersion (get_workflow): refused with WORKFLOW_BASE_VERSION_STALE when another version was published since. Refused with WORKFLOW_NO_INSTALLATION when no live installation can see the repository — start_github_install first — or the one it names is suspended (lifted on GitHub); with WORKFLOW_NO_GITLAB_CONNECTION when no active GitLab connection can read the project — connect GitLab in the web app first. Starts no run. When referring to a project or language in your reply to the user, use its name and locale (e.g. "French (fr-FR)") — ids (UUIDs) are for tool calls only, never show them to the user.

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": {
      "workflowId": "<workflowId>",
      "baseVersion": "<baseVersion>"
    },
    "name": "reconnect_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowIdYesWorkflow id, from list_workflows or set_up_workflow
baseVersionYesThe current version number, from get_workflow

Output Schema

NameRequiredDescriptionDefault
workflowYes
publishedYesfalse when the installation it names was already live: it was only reactivated

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 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"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedOutput schema / properties / workflow / properties / active / description
      Previous value: -"Whether its Input’s connection is healthy: a GitHub Input’s credentials, or a Contentful Input’s space linked to this organisation. An inactive Workflow starts no runs."New value: +"Whether its Input’s connection is healthy: a GitHub Input’s credentials, a Contentful Input’s space linked to this organisation, or a Chatwoot Input’s connection `connected`. An inactive Workflow starts no runs."
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag a destructive, open-world mutation, but the description adds substantially more: exactly what mutation occurs (a new version is published with only the installation changed, webhook re-registered when missing), the no-op outcome (published: false), and the three named refusal codes with their remedies. It also discloses the suspended-installation case that must be lifted on GitHub, which is not inferable from any structured field.

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?

Purpose is front-loaded and every sentence carries information — no filler. The cost is density: the opening sentence is a long colon-and-relative-clause chain that takes real effort to parse, and the closing locale/UUID styling instruction is a presentation rule rather than tool behavior, occupying space in an already crowded definition.

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 two-parameter, high-consequence mutation with an output schema, the description covers what an agent needs to call it correctly: prerequisites, both provider branches, refusal codes with remedies, the stale-version contract, and the fact that no run is started. Return-value shape can be left to the output schema, so nothing material is missing.

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 both parameters are already documented; the description still adds value by tying baseVersion to the get_workflow source and naming the concrete failure mode (WORKFLOW_BASE_VERSION_STALE) when another version has been published since. That is meaningfully more than the schema's 'current version number' phrasing, though workflowId gets no extra treatment beyond the schema text.

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+resource pair — repair/reactivate an inactive GitHub or GitLab Workflow — plus the exact triggering condition (GitHub App uninstalled and reinstalled, or GitLab connection dead). It also distinguishes the repair path from creation/installation siblings by scoping it to an existing workflow id.

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?

Explicitly names the prerequisite alternatives and when to reach for them: start_github_install first when WORKFLOW_NO_INSTALLATION fires, connect GitLab in the web app when WORKFLOW_NO_GITLAB_CONNECTION fires. It also covers the edge case where the named installation is already live (no publish, plain reactivation) and states the tool starts no run, so an agent knows not to follow with run tooling.

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.