Skip to main content
Glama

Preview Workflow setup

preview_workflow_setup
Read-only

Preview setting up a Workflow. For a Chatwoot Help Center, pass chatwoot — a connection (list_chatwoot_connections) and one of its portals — alone: it proposes what the web builder starts from (the whole portal; its default locale as the source; every other locale it allows as a target, with discovery on; Translate, then QA; written back into the portal), named after the portal; ready: false with alreadySetUp when a Workflow holds the portal. Otherwise it translates a GitHub repository, from the App installation id (list_github_installations) and "owner/repo" alone; or, with provider: "gitlab", a GitLab repository from a GitLab connection (list_gitlab_connections) and the project’s id or path (list_gitlab_repositories). Detects the locale files on the first branch and proposes a definition: Translate, then QA, delivered by pull or merge request; the detected source and target languages; named after the repository. Writes nothing and starts no run. Answers ready: true with the definition, the file groups left out as unlikely (excludedGroups) and a previewHash for set_up_workflow; or ready: false with needs (each names what was found and the argument to pass — a language is never guessed), or with alreadySetUp naming the Workflow that holds the repository, whatever any Project on it does. Only when no Workflow holds it is it refused with REPOSITORY_HELD_BY_PROJECT, when a Project has work on it: continue on that Project. Pass the optional arguments to apply what the user asks for. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preview_workflow_setup"
  }
}

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.
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
nameNo
needsNoOne per field setup can’t fill
readyYestrue: confirm with set_up_workflow and `previewHash`. false: `alreadySetUp` names the Workflow holding the repository, or `needs` lists what to pass
warningsNo
takeoversNoIdle Projects’ Repository rows on the repository, which the Workflow takes over
definitionNoThe definition confirm publishes as version 1. While `newTranslationMemory`, its translate Action names the stand-in `00000000-0000-4000-8000-000000000000`, which confirm replaces with the memory it creates.
previewHashNoSend it with `POST /api/workflows/setup`: refused with 409 `WORKFLOW_PREVIEW_STALE` when the definition, excluded groups, claims or warnings changed since
alreadySetUpNoThe Workflow holding the repository: nothing to set up, whatever any Project on it does, and confirm is refused with 409 `WORKFLOW_REPOSITORY_CLAIMED`
excludedGroupsNo
namespaceClashesNoThe 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)
newTranslationMemoryNoWhether confirm creates a translation memory, named after the Workflow

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / warnings / items / properties / code / enum
      Previous value: -[
      -  "environment_unreported",
      -  "existing_translations_replaced",
      -  "target_locale_missing",
      -  "terminology_check_without_glossary"
      -]New value: +[
      +  "cdn_output_removed",
      +  "cdn_slug_renamed",
      +  "environment_unreported",
      +  "existing_translations_replaced",
      +  "target_locale_missing",
      +  "terminology_check_without_glossary"
      +]
    • addedOutput schema / properties / warnings / items / properties / slug
      Added value: +{
      +  "description": "`cdn_output_removed`, `cdn_slug_renamed`: the slug whose URLs stop answering",
      +  "type": "string"
      +}
  2. 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"
  3. 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"
  4. Changed4 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."
    • removedInput schema / required
      Removed value: -[
      -  "installationId",
      -  "repository"
      -]
  5. Changed1 schema field changed
    • changedOutput schema / properties / warnings / items / properties / code / enum
      Previous value: -[
      -  "environment_unreported",
      -  "existing_translations_replaced",
      -  "target_locale_missing"
      -]New value: +[
      +  "environment_unreported",
      +  "existing_translations_replaced",
      +  "target_locale_missing",
      +  "terminology_check_without_glossary"
      +]
  6. Changed1 schema field 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"
      +}
  7. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces rather than contradicts them: 'Writes nothing and starts no run.' It adds genuine behavioral context beyond the annotations — the ready/needs/alreadySetUp outcomes, excludedGroups, previewHash, the two error codes with retryAfterSeconds, and the advisory-only nature of namespaceClashes. The only shortfall is that the portal-mode and repo-mode behaviors are interleaved rather than separated, which slightly muddies the disclosure.

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?

Purpose is front-loaded, but the body is a single dense run of em-dash-clause fragments with semicolons and nested parentheticals that is hard to parse on first read. Much of it earns its place for a 12-parameter dual-mode tool, yet the two modes are woven together instead of being ordered sequentially, adding avoidable reading cost.

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 12-parameter, nested-schema, open-world tool, the description covers inputs, dry-run guarantees, both outcome branches, error paths, and user-facing conventions (show names and locales, never UUIDs). An output schema exists, yet the return discussion is still useful rather than redundant, and nothing an agent needs in order 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%, so the schema already documents all 12 parameters in detail; per calibration that sets a baseline of 3. The description does add some meaning — that custom `patterns` remove the `patterns` need and permit setups on branches with no locale files, and that suggestedPattern must be offered and never applied silently — but most of its parameter talk (name, sourceLanguage, targetLanguages, translationMemoryId defaults) restates the schema.

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 names a specific action (preview) on a specific resource (Workflow setup), and the rest enumerates the two distinct input modes (Chatwoot portal vs GitHub/GitLab repository) so an agent can tell exactly which shape it is invoking. It also implicitly separates itself from set_up_workflow by naming the previewHash that feeds that sibling.

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 gives explicit routing rules: pass `chatwoot` alone for a Help Center, otherwise an installationId plus owner/repo, or `provider: "gitlab"` with a connection and project id/path, plus the lookup tools for each id. It also states the branch conditions that change the outcome (ready:false with `needs`, `alreadySetUp`, REPOSITORY_HELD_BY_PROJECT → continue on that Project) and the retry procedure for GITHUB_RATE_LIMITED.

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.