Skip to main content
Glama

Gitlab Graphql Ops Create Pipeline

gitlab_graphql_ops_create_pipeline

Creates a GitLab CI/CD pipeline via GraphQL for a project and ref, with optional pipeline variables.

Instructions

Create a pipeline through GraphQL.

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": {
      "project_id": "<project_id>",
      "ref": "<ref>"
    },
    "name": "gitlab_graphql_ops_create_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesBranch, tag or SHA to run the pipeline on.
variablesNoPipeline variables.
project_idYesProject id or full path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv27.3.20
    • removedInput schema / properties / params_json
      Removed value: -{
      -  "default": "{}",
      -  "description": "JSON string of parameters to pass to the action.",
      -  "type": "string"
      -}
    • addedInput schema / properties / project_id
      Added value: +{
      +  "description": "Project id or full path.",
      +  "type": "string"
      +}
    • addedInput schema / properties / ref
      Added value: +{
      +  "description": "Branch, tag or SHA to run the pipeline on.",
      +  "type": "string"
      +}
    • addedInput schema / properties / variables
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Pipeline variables."
      +}
    • addedInput schema / required
      Added value: +[
      +  "project_id",
      +  "ref"
      +]
  2. First observedv27.3.13

TDQS

C2.5/5.0
Behavior2/5

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

Annotations only confirm readOnlyHint=false and destructiveHint=false, which is the minimum. The description adds nothing about what happens on creation (jobs start running, variables are injected into the CI environment), nor about required token scopes or error behavior on an invalid ref — all important for a mutating tool.

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?

A single short sentence with no wasted clauses, but it is under-specified rather than genuinely concise. 'Through GraphQL' is redundant given the gitlab_graphql_ops tool namespace and could be replaced with operationally useful content.

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

Completeness2/5

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

For a fire-and-forget mutation with no output schema and no annotations beyond write-safety, the description should say something about the result (pipeline id/URL) and side effects. An agent cannot tell from this text what state change to expect or how to verify success.

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 ref, variables, and project_id are already fully documented in the schema. The description contributes no additional meaning (e.g. variable value types, whether variables override project defaults), so the baseline 3 applies.

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

Purpose3/5

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

States a verb and resource ('Create a pipeline') which is specific enough to identify the operation, but 'through GraphQL' describes transport rather than purpose and does nothing to distinguish it from the sibling gitlab_run_pipeline, which appears to do the same thing.

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

Usage Guidelines2/5

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

No guidance on when to use this instead of gitlab_run_pipeline, gitlab_create_pipeline_schedule, or the generic gitlab_graphql. No prerequisites, no mention of permissions or that this will actually start CI jobs immediately after creation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools