Skip to main content
Glama

Set a Workflow’s target languages

set_workflow_languages
Destructive

Replace the target languages a Workflow declares, publishing its next version with nothing else changed. Pass baseVersion, the version number the change starts from (get_workflow): refused with WORKFLOW_BASE_VERSION_STALE when another version was published since, so a concurrent edit is never overwritten. The same languages publish nothing (published: false). A Workflow that doesn’t translate (list_workflows translates: false) only checks its source strings and has no target language: setting any is refused with WORKFLOW_DEFINITION_INVALID. 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>",
      "targetLanguages": "<targetLanguages>",
      "baseVersion": "<baseVersion>"
    },
    "name": "set_workflow_languages"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowIdYesWorkflow id, from list_workflows or set_up_workflow
baseVersionYesThe current version number the change starts from
targetLanguagesYesEvery target locale the Workflow should declare, e.g. ["fr", "de"]

Output Schema

NameRequiredDescriptionDefault
workflowYes
publishedYesfalse when the languages were already these: no version was published
takeoversYes

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.9/5.0
Behavior5/5

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

Beyond the destructiveHint/readOnly annotations, it discloses that the operation publishes a new immutable version rather than mutating in place, that the same language set publishes nothing (published: false), and that concurrency is guarded by baseVersion with a named error code so a concurrent edit is never silently overwritten. This is materially more than the annotations 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 action and scope, then the precondition, then the edge cases, with no filler. The final sentence about showing names/locales rather than UUIDs in replies is useful presentation guidance but is general rather than specific to this call, adding a little length.

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 three-parameter versioned mutation with an output schema, the definition covers prerequisites, error codes, no-op behavior, and the ineligible-workflow case — everything needed to invoke it correctly without guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameter details are already present, but the description adds meaningful semantics: targetLanguages is a full replacement set ('Every target locale the Workflow should declare'), and baseVersion is the starting version number sourced from get_workflow, plus the stale-version consequence of getting it wrong.

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?

Opens with a specific verb+resource+scope: 'Replace the target languages a Workflow declares, publishing its next version with nothing else changed.' The 'nothing else changed' clause distinguishes it from broader edit tools like apply_edit_set without needing to open another 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 states the precondition (pass baseVersion from get_workflow) and the exact refusal path when it is stale, and names the exclusion case: a Workflow with list_workflows `translates: false` has no target language and setting one is rejected with WORKFLOW_DEFINITION_INVALID. It also covers the no-op case where the same languages are set.

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.