Skip to main content
Glama

Set up a Workflow

set_up_workflow

Set up the Workflow preview_workflow_setup proposed: pass the same arguments plus its previewHash. Publishes the definition as version 1 and creates a translation memory unless one was named. Refused when anything changed since the preview (WORKFLOW_PREVIEW_STALE, with the fresh preview), and when a Workflow already holds the repository (WORKFLOW_REPOSITORY_CLAIMED) or the Chatwoot portal (WORKFLOW_PORTAL_CLAIMED), so a retry never creates a second one. A GitLab Workflow registers a project hook through its connection, which takes a Maintainer: refused WORKFLOW_DEFINITION_INVALID (gitlab_hook_registration_failed) when GitLab refuses it — connect GitLab as a Maintainer of the repository, then try again. Starts no run: start_workflow_run does, once the user agrees to spend credits. With custom patterns, namespaceClashes lists each pattern whose wildcard gives several source folders the same namespace name; it is advisory and never makes a setup unready. Offer the user suggestedPattern where there is one, and change the patterns only if they accept: never apply it silently. Refused with GITHUB_RATE_LIMITED (503) when GitHub throttled the installation: wait details.retryAfterSeconds, then retry. 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": {
      "previewHash": "<previewHash>"
    },
    "name": "set_up_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDefault: the repository’s `owner/repo`, or its GitLab `pathWithNamespace`.
importNoWhat the first run does with translations already in the target files: `ignore` (default) translates every string afresh and writes over them; `reviewed` or `translated` imports them at that status.
branchesNoWatched branches, in order; detection reads the first. Default: the repository’s default branch.
chatwootNoSet up a Chatwoot Workflow instead: a connection (list_chatwoot_connections) and one of its portals. With it, pass no repository argument; `name`, `targetLanguages` and `translationMemoryId` apply as for a repository.
patternsNoPatterns in place of detection’s. With them, no `patterns` need is answered: a setup may sit on a branch with no locale files yet.
providerNo`github` (the default) or `gitlab`. A GitLab repository takes `connectionId` (list_gitlab_connections) and `repository` (list_gitlab_repositories) in place of `installationId`.
repositoryNoGitHub: `owner/repo`, any case. GitLab: the project’s numeric id or its `pathWithNamespace` (list_gitlab_repositories). Required for either.
previewHashYesThe previewHash preview_workflow_setup answered
connectionIdNoA GitLab connection of the organisation (`id` of `GET /api/gitlab/connections`); it must be `active`, from list_gitlab_connections. Required for a GitLab repository.
installationIdNoGitHub’s numeric App installation id (`installationId` of `GET /api/github/installations`); it must be this organisation’s. Required for a GitHub repository.
sourceLanguageNoIn place of the detected source; respelled to the language catalog’s spelling.
targetLanguagesNoDeclared targets in place of the detected ones, taken as given.
translationMemoryIdNoAn existing translation memory of the organisation (404 `TRANSLATION_MEMORY_NOT_FOUND` otherwise). Absent, confirm creates one named after the Workflow.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
activeYesWhether 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.
archivedYes
createdAtYes
takeoversYes
updatedAtYes
archivedAtYes
descriptionYes
currentVersionYes
namespaceClashesYesThe custom `patterns` whose wildcard matches several source folders that all get the same namespace name, over the files of the branch detection read; empty without custom `patterns`. Advisory: setup is unaffected and each folder is still its own namespace. Offer the user suggestedPattern (it changes the Workflow, so never apply it silently)
createdTranslationMemoryYesThe translation memory setup created; `null` when the body named one

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / chatwoot / description
      Previous value: -"Set up a Chatwoot Workflow instead: a connection (list_chatwoot_connections) and one of its portals. With it, pass no GitHub argument; `name`, `targetLanguages` and `translationMemoryId` apply as for GitHub."New value: +"Set up a Chatwoot Workflow instead: a connection (list_chatwoot_connections) and one of its portals. With it, pass no repository argument; `name`, `targetLanguages` and `translationMemoryId` apply as for a repository."
    • changedInput schema / properties / chatwoot / properties / connectionId / description
      Previous value: -"A Chatwoot connection of the organisation (uid=501(arturs) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae) of list_chatwoot_connections)"New value: +"A Chatwoot connection of the organisation (`id` of list_chatwoot_connections)"
    • addedInput schema / properties / connectionId
      Added value: +{
      +  "description": "A GitLab connection of the organisation (`id` of `GET /api/gitlab/connections`); it must be `active`, from list_gitlab_connections. Required for a GitLab repository.",
      +  "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 / properties / name / description
      Previous value: -"Default: the repository’s `owner/repo`."New value: +"Default: the repository’s `owner/repo`, or its GitLab `pathWithNamespace`."
    • addedInput schema / properties / provider
      Added value: +{
      +  "description": "`github` (the default) or `gitlab`. A GitLab repository takes `connectionId` (list_gitlab_connections) and `repository` (list_gitlab_repositories) in place of `installationId`.",
      +  "enum": [
      +    "github",
      +    "gitlab"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / repository / anyOf
      Added value: +[
      +  {
      +    "maxLength": 255,
      +    "type": "string"
      +  },
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  }
      +]
    • changedInput schema / properties / repository / description
      Previous value: -"`owner/repo`, any case. Its numeric id is resolved through the installation. Required for a GitHub repository."New value: +"GitHub: `owner/repo`, any case. GitLab: the project’s numeric id or its `pathWithNamespace` (list_gitlab_repositories). Required for either."
    • removedInput schema / properties / repository / maxLength
      Removed value: -200
    • removedInput schema / properties / repository / pattern
      Removed value: -"^[^/\\s]+\\/[^/\\s]+$"
    • removedInput schema / properties / repository / type
      Removed value: -"string"
  2. 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"
  3. Changed5 schema fields changed
    • addedInput schema / properties / chatwoot
      Added value: +{
      +  "description": "Set up a Chatwoot Workflow instead: a connection (list_chatwoot_connections) and one of its portals. With it, pass no GitHub argument; `name`, `targetLanguages` and `translationMemoryId` apply as for GitHub.",
      +  "properties": {
      +    "connectionId": {
      +      "description": "A Chatwoot connection of the organisation (uid=501(arturs) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae) of list_chatwoot_connections)",
      +      "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"
      +    },
      +    "localeCodes": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "description": "The portal’s locale code of each language that isn’t spelled as its locale (`pt-BR` → `pt_BR`)",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "portalId": {
      +      "description": "One of the connection account’s Help Center portals, by its Chatwoot id",
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "connectionId",
      +    "portalId"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / installationId / description
      Previous value: -"GitHub’s numeric App installation id (`installationId` of `GET /api/github/installations`); it must be this organisation’s"New value: +"GitHub’s numeric App installation id (`installationId` of `GET /api/github/installations`); it must be this organisation’s. Required for a GitHub repository."
    • changedInput schema / properties / repository / description
      Previous value: -"`owner/repo`, any case. Its numeric id is resolved through the installation."New value: +"`owner/repo`, any case. Its numeric id is resolved through the installation. Required for a GitHub repository."
    • changedInput schema / required
      Previous value: -[
      -  "installationId",
      -  "repository",
      -  "previewHash"
      -]New value: +[
      +  "previewHash"
      +]
    • changedOutput schema / 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."
  4. Changed2 schema fields changed
    • addedOutput schema / properties / namespaceClashes
      Added value: +{
      +  "description": "The custom `patterns` whose wildcard matches several source folders that all get the same namespace name, over the files of the branch detection read; empty without custom `patterns`. Advisory: setup is unaffected and each folder is still its own namespace. Offer the user suggestedPattern (it changes the Workflow, so never apply it silently)",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "folders": {
      +        "description": "The folders it gives one namespace name",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "pattern": {
      +        "description": "The GitHub Input file pattern",
      +        "type": "string"
      +      },
      +      "suggestedPattern": {
      +        "description": "The pattern with {namespace} in place of the varying wildcard: matches the same files, so accepting it only renames namespaces. null when there is none",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "pattern",
      +      "folders",
      +      "suggestedPattern"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "description",
      -  "active",
      -  "archived",
      -  "archivedAt",
      -  "createdAt",
      -  "updatedAt",
      -  "currentVersion",
      -  "takeovers",
      -  "createdTranslationMemory"
      -]New value: +[
      +  "id",
      +  "name",
      +  "description",
      +  "active",
      +  "archived",
      +  "archivedAt",
      +  "createdAt",
      +  "updatedAt",
      +  "currentVersion",
      +  "takeovers",
      +  "createdTranslationMemory",
      +  "namespaceClashes"
      +]
  5. Added

TDQS

A4.5/5.0
Behavior4/5

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

Far beyond what readOnlyHint=false / destructiveHint=false / openWorldHint=true convey: it discloses that version 1 is published, a translation memory is created unless named, that retries cannot double-create (WORKFLOW_REPOSITORY_CLAIMED / WORKFLOW_PORTAL_CLAIMED), and that stale previews are refused with a fresh preview returned. Named error codes, HTTP 503 rate limiting with details.retryAfterSeconds, and the GitLab Maintainer hook requirement are all genuine behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action and its precondition are correctly front-loaded, but the text is a single dense block mixing error taxonomy, GitLab setup advice, pattern policy, and a general reply-formatting rule about locales and UUIDs. Each clause is informative yet the lack of grouping and the trailing style instruction (which is not specific to this tool) make it heavier than needed for an agent to scan.

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 13-parameter, nested-object mutation with an output schema, the description covers the sequencing, idempotency, refusal modes, side effects, and the fact that no run is started. Nothing an agent needs in order to invoke it safely 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 the baseline is 3; the description still adds meaning the schema cannot, notably that previewHash ties this call to a prior preview and that namespaceClashes from custom patterns is advisory only and never blocks a setup. It leaves the many override parameters (import, branches, sourceLanguage, translationMemoryId) to the schema, which is reasonable.

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 and immediately situates it as the confirming half of a two-step flow ('Set up the Workflow preview_workflow_setup proposed: pass the same arguments plus its previewHash'). An agent can distinguish it from preview_workflow_setup and from start_workflow_run without opening any schema.

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 routes the agent: call this only after a preview, echoing its arguments plus previewHash; use start_workflow_run for execution once the user agrees to spend credits. It also gives conditional instructions for suggestedPattern ('change the patterns only if they accept: never apply it silently') and for the GitLab Maintainer failure path.

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.