Skip to main content
Glama

Get a Workflow

get_workflow
Read-only

One Workflow with its current version and definition, and its connection as list_workflows reports it. currentVersion.number is the baseVersion set_workflow_languages and reconnect_workflow take. An inactive connection names its repair: installation_deleted, installation_missing and inactive — reconnect_workflow, once a live installation can see the repository (start_github_install when none can); installation_suspended — an owner unsuspends the installation on GitHub, which reactivates it; a GitLab Workflow’s connection_missing, connection_revoked and connection_expired — connect GitLab again in the web app (the same GitLab user reactivates it), or reconnect_workflow once another active GitLab connection can read the project. 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": "get_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowIdYesWorkflow id, from list_workflows or set_up_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
updatedAtYes
archivedAtYes
connectionYes`ok`, or why the Workflow is inactive: `installation_deleted`, `installation_missing`, `installation_suspended`, a GitLab Workflow’s `connection_missing`, `connection_revoked` or `connection_expired`, or `inactive`
descriptionYes
handsBackToYesThe Project Repositories on the repository the Workflow holds: archiving it hands the repository back to them. Empty while archived.
currentVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / connection / description
      Previous value: -"`ok`, or why the Workflow is inactive: `installation_deleted`, `installation_missing`, `installation_suspended` or `inactive`"New value: +"`ok`, or why the Workflow is inactive: `installation_deleted`, `installation_missing`, `installation_suspended`, a GitLab Workflow’s `connection_missing`, `connection_revoked` or `connection_expired`, or `inactive`"
  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. Changed1 schema field changed
    • 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 / connection
      Added value: +{
      +  "description": "`ok`, or why the Workflow is inactive: `installation_deleted`, `installation_missing`, `installation_suspended` or `inactive`",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "description",
      -  "active",
      -  "archived",
      -  "archivedAt",
      -  "createdAt",
      -  "updatedAt",
      -  "currentVersion",
      -  "handsBackTo"
      -]New value: +[
      +  "id",
      +  "name",
      +  "description",
      +  "active",
      +  "archived",
      +  "archivedAt",
      +  "createdAt",
      +  "updatedAt",
      +  "currentVersion",
      +  "handsBackTo",
      +  "connection"
      +]
  5. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare a safe read (readOnlyHint=true, destructiveHint=false), so the bar is lower, yet the description adds real operational knowledge beyond them: it enumerates inactive `connection` states (installation_deleted, installation_missing, installation_suspended, connection_missing, connection_revoked, connection_expired) and maps each to its repair path. It also discloses that currentVersion.number is the baseVersion consumed by set_workflow_languages and reconnect_workflow, which is non-obvious coupling. Missing: behavior on an invalid or unknown workflowId.

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?

Dense and front-loaded: what is returned comes first, then version semantics, then the status-to-repair table. The long semicolon-chained repair sentence is information-rich rather than padded, though the closing instruction about showing names/locales instead of UUIDs is generic output boilerplate rather than tool-specific guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With one fully documented parameter, annotations, and an output schema that already defines return shape, this description covers the remaining gaps — the meaning of inactive connection states and how currentVersion.number is consumed downstream. The only shortfall is error behavior for a bad workflowId, which is minor for a single-item getter.

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?

Only one parameter, and the schema already documents it at 100% coverage (UUID format plus 'from list_workflows or set_up_workflow'). The description adds no further meaning about workflowId — no id-format rules, no guidance on retrieving unknown ids beyond the schema's own line. Baseline 3 applies when the schema carries the parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact payload returned: one Workflow with its current version, definition, and `connection` status, and explicitly frames it as the single-item counterpart to list_workflows. It never states a verb like 'retrieves' — the opening is a noun fragment 'One Workflow with...' — but the resource and scope are unambiguous and distinguishable from the list sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the schema says workflowId comes 'from list_workflows or set_up_workflow', so the agent can infer this is the drill-down after listing. The description's routing to reconnect_workflow, start_github_install, and set_workflow_languages is about what to do with returned state, not about when to call this tool versus alternatives. No explicit 'use this when' or exclusion clause.

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.