Skip to main content
Glama

Start a Workflow run

start_workflow_run
Destructive

Start a run of a Workflow’s current version, which spends credits: start one only when the user agrees. A GitHub Workflow translates its primary branch unless given a watched branch, and delivers by pull request unless delivery: "push". A Workflow reading a Contentful space runs over its whole selection and takes neither argument (refused with VALIDATION_ERROR). Refused with INSUFFICIENT_CREDITS (402) when the organisation is out of credits, and with WORKFLOW_AWAITING_CONVERSION_MERGE (409) while the pull request of the Conversion that created the Workflow is open (only it starts runs until it is merged; the error names it). Returns the run at once; poll get_workflow_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>"
    },
    "name": "start_workflow_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNoGitHub only: a watched branch; the primary (first) one when absent
deliveryNoGitHub only: "pr" (default) or "push" to the branch
workflowIdYesWorkflow id, from list_workflows or set_up_workflow

Output Schema

NameRequiredDescriptionDefault
idYesPass to get_workflow_run
numberYes`run #n`, numbered per Workflow from 1
statusYespending, processing, held (at an approval Gate), completed, failed or superseded. completed means translated, not delivered: read `outputs`
failureYesWhy a failed run failed; null otherwise
outputsYesEach Output of the pinned version and its delivery outcome
triggerYes
findingsYesWhat the run’s Source checks found, as its Findings report shows it
qaIssuesYesWhat the run’s QA found, across its languages: list_run_qa_failures reads one language’s QA failures. null until the run is finalised, and for a Workflow version without QA
createdAtYes
languagesYesOne per target language, once the run has split into languages; empty before, and always for a run that doesn’t translate
updatedAtYes
runPageUrlYesThe run’s page in the Globalize app
translatesYesfalse for a run of a Workflow that doesn’t translate: it has no languages, and `sourceSteps` is all its progress
workflowIdYes
sourceStepsYesThe Steps before translation — every Step of a Workflow that doesn’t translate — run once on the source strings: their Gates and Checks rolled up
versionNumberYesThe Workflow version the run pinned
pullRequestUrlYesThe pull request a GitHub Output opened or updated; null when none
reconciliationYesThe status of the latest Reconciliation — what applying the Edit set (apply_edit_set) started: processing while the edited strings are carried through the run; completed once they were (its Outputs then deliver again: read `outputs`); held while an approval Gate it reopened holds it; failed (its edits went back to the Edit set, to be applied again); superseded. null when the Edit set was never applied
namespaceClashesYesFile patterns whose wildcard matched several source folders that all got the same namespace name. Advisory: the run is unaffected and each folder is still its own namespace. Offer the user suggestedPattern (it changes the Workflow, so never apply it silently). Empty when none

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / outputs / items / properties / outcome / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "properties": {
      -      "status": {
      -        "description": "delivered, failed or skipped",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "properties": {
      +      "status": {
      +        "description": "delivered, failed or skipped; a GitHub Output’s failed or skipped one says why in `reason`",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / outputs / items / properties / type / description
      Previous value: -"'github' or 'contentful'"New value: +"'github', 'gitlab' or 'contentful'"
    • changedOutput schema / properties / trigger / properties / kind / description
      Previous value: -"manual, push, pull_request, contentful_change, sidebar_request or portal_poll"New value: +"manual, push, pull_request, merge_request, contentful_change, sidebar_request or portal_poll"
    • addedOutput schema / properties / trigger / properties / mergeRequest
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "The GitLab merge request a merge_request run was triggered by",
      +  "properties": {
      +    "headBranch": {
      +      "type": "string"
      +    },
      +    "iid": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "iid",
      +    "headBranch"
      +  ],
      +  "type": "object"
      +}
  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. Changed3 schema fields changed
    • addedOutput schema / properties / qaIssues
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "autoFixCount": {
      +          "description": "Strings QA fixed itself",
      +          "type": "number"
      +        },
      +        "criticalCount": {
      +          "description": "Of those, the strings with a critical one",
      +          "type": "number"
      +        },
      +        "failCount": {
      +          "description": "Strings, per language, with a QA failure no one dismissed",
      +          "type": "number"
      +        },
      +        "totalKeys": {
      +          "description": "Strings QA checked, across every language",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "failCount",
      +        "criticalCount",
      +        "autoFixCount",
      +        "totalKeys"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "What the run’s QA found, across its languages: list_run_qa_failures reads one language’s QA failures. null until the run is finalised, and for a Workflow version without QA"
      +}
    • changedOutput schema / properties / trigger / properties / kind / description
      Previous value: -"manual, push, pull_request, contentful_change or sidebar_request"New value: +"manual, push, pull_request, contentful_change, sidebar_request or portal_poll"
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "workflowId",
      -  "number",
      -  "status",
      -  "versionNumber",
      -  "trigger",
      -  "failure",
      -  "findings",
      -  "reconciliation",
      -  "translates",
      -  "sourceSteps",
      -  "languages",
      -  "outputs",
      -  "pullRequestUrl",
      -  "namespaceClashes",
      -  "runPageUrl",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "workflowId",
      +  "number",
      +  "status",
      +  "versionNumber",
      +  "trigger",
      +  "failure",
      +  "findings",
      +  "qaIssues",
      +  "reconciliation",
      +  "translates",
      +  "sourceSteps",
      +  "languages",
      +  "outputs",
      +  "pullRequestUrl",
      +  "namespaceClashes",
      +  "runPageUrl",
      +  "createdAt",
      +  "updatedAt"
      +]
  4. Changed4 schema fields changed
    • changedOutput schema / properties / languages / description
      Previous value: -"One per target language, once the run has split into languages; empty before"New value: +"One per target language, once the run has split into languages; empty before, and always for a run that doesn’t translate"
    • addedOutput schema / properties / sourceSteps
      Added value: +{
      +  "description": "The Steps before translation — every Step of a Workflow that doesn’t translate — run once on the source strings: their Gates and Checks rolled up",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "index": {
      +        "description": "The Step’s position in the pinned version, from 0",
      +        "type": "number"
      +      },
      +      "name": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "pending, processing, held, completed or failed; halted when the run failed or was superseded before the Step finished",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "index",
      +      "name",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / translates
      Added value: +{
      +  "description": "false for a run of a Workflow that doesn’t translate: it has no languages, and `sourceSteps` is all its progress",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "workflowId",
      -  "number",
      -  "status",
      -  "versionNumber",
      -  "trigger",
      -  "failure",
      -  "findings",
      -  "reconciliation",
      -  "languages",
      -  "outputs",
      -  "pullRequestUrl",
      -  "namespaceClashes",
      -  "runPageUrl",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "workflowId",
      +  "number",
      +  "status",
      +  "versionNumber",
      +  "trigger",
      +  "failure",
      +  "findings",
      +  "reconciliation",
      +  "translates",
      +  "sourceSteps",
      +  "languages",
      +  "outputs",
      +  "pullRequestUrl",
      +  "namespaceClashes",
      +  "runPageUrl",
      +  "createdAt",
      +  "updatedAt"
      +]
  5. Changed2 schema fields changed
    • addedOutput schema / properties / namespaceClashes
      Added value: +{
      +  "description": "File patterns whose wildcard matched several source folders that all got the same namespace name. Advisory: the run is unaffected and each folder is still its own namespace. Offer the user suggestedPattern (it changes the Workflow, so never apply it silently). Empty when none",
      +  "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",
      -  "workflowId",
      -  "number",
      -  "status",
      -  "versionNumber",
      -  "trigger",
      -  "failure",
      -  "findings",
      -  "reconciliation",
      -  "languages",
      -  "outputs",
      -  "pullRequestUrl",
      -  "runPageUrl",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "workflowId",
      +  "number",
      +  "status",
      +  "versionNumber",
      +  "trigger",
      +  "failure",
      +  "findings",
      +  "reconciliation",
      +  "languages",
      +  "outputs",
      +  "pullRequestUrl",
      +  "namespaceClashes",
      +  "runPageUrl",
      +  "createdAt",
      +  "updatedAt"
      +]
  6. Changed5 schema fields changed
    • addedOutput schema / properties / findings
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "What the run’s Source checks found, as its Findings report shows it",
      +  "properties": {
      +    "openBlocking": {
      +      "description": "Open Findings of blocking Checks: what holds the run",
      +      "type": "number"
      +    },
      +    "state": {
      +      "description": "held: a blocking Source check holds the run — its open Findings must be resolved, or a Check that could not run retried or skipped; polling alone will not move it on. findings: Findings are open, none holding. passed: nothing open. superseded: a newer run replaced it",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "state",
      +    "openBlocking"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / reconciliation
      Added value: +{
      +  "description": "The status of the latest Reconciliation — what applying the Edit set (apply_edit_set) started: processing while the edited strings are carried through the run; completed once they were (its Outputs then deliver again: read `outputs`); held while an approval Gate it reopened holds it; failed (its edits went back to the Edit set, to be applied again); superseded. null when the Edit set was never applied",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / trigger / properties / branch / description
      Added value: +"The watched branch the Trigger matched: a pull-request run’s base branch"
    • addedOutput schema / properties / trigger / properties / pullRequest
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "The pull request a pull_request run was triggered by; absent on any other run",
      +  "properties": {
      +    "headBranch": {
      +      "type": "string"
      +    },
      +    "number": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "number",
      +    "headBranch"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "workflowId",
      -  "number",
      -  "status",
      -  "versionNumber",
      -  "trigger",
      -  "failure",
      -  "languages",
      -  "outputs",
      -  "pullRequestUrl",
      -  "runPageUrl",
      -  "createdAt",
      -  "updatedAt"
      -]New value: +[
      +  "id",
      +  "workflowId",
      +  "number",
      +  "status",
      +  "versionNumber",
      +  "trigger",
      +  "failure",
      +  "findings",
      +  "reconciliation",
      +  "languages",
      +  "outputs",
      +  "pullRequestUrl",
      +  "runPageUrl",
      +  "createdAt",
      +  "updatedAt"
      +]
  7. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the core cost behavior ('spends credits'), the consent requirement, and three named failure modes with codes (VALIDATION_ERROR, INSUFFICIENT_CREDITS 402, WORKFLOW_AWAITING_CONVERSION_MERGE 409), including that the 409 resolves only once the Conversion pull request is merged. It also states the call is asynchronous ('returns the run at once; poll get_workflow_run'), which is exactly the kind of trait annotations cannot convey.

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-loads the cost/consent constraint, which is the highest-stakes fact, then layers conditional behavior and error codes without filler. The closing sentence about using names and locales instead of UUIDs in user replies is useful but is a general output-style rule grafted onto a start-operation description, slightly diluting focus.

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 credit-spending, destructive, open-world mutation with an output schema, the description covers consent, cost, per-workflow-type argument behavior, error paths, and the polling follow-up. Return-value details are correctly omitted since an output schema exists, so nothing an agent needs to invoke this 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% and the schema already labels both optional params as GitHub-only with defaults, so baseline would be 3. The description adds cross-parameter meaning the schema cannot: these arguments are not merely optional but are rejected outright for Contentful-space Workflows, and the branch argument must be a watched branch. That is real added semantics, though it stops short of format examples beyond the watched-branch constraint.

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 ('Start a run of a Workflow's current version') and immediately pins it against the sibling used afterwards ('Returns the run at once; poll get_workflow_run'). An agent can tell this apart from get_workflow_run or list_workflow_runs 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?

Gives an explicit gate ('start one only when the user agrees'), preconditions for GitHub-type Workflows (primary branch unless `branch`, pull request unless `delivery: "push"`), and a when-not case (Contentful-space Workflows take neither argument and are refused). It also routes follow-up polling to get_workflow_run, so nothing about sequencing is left to inference.

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.