Skip to main content
Glama

Create Commit Status

gitlab_create_commit_status

Create or update a GitLab commit status to report build or pipeline results with state, context, and target URL.

Instructions

Create or update the status of a commit.

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": {
      "sha": "<sha>",
      "state": "<state>"
    },
    "name": "gitlab_create_commit_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
shaYes
nameNo
stateYes
contextNo
coverageNo
project_idNo
target_urlNo
descriptionNo
pipeline_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv1.7.0
    • removedInput schema / properties / context / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / context / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / coverage / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / coverage / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / description / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / description / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / pipeline_id / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / pipeline_id / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / target_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / target_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true, so the safety profile is covered. The description adds no behavioral context beyond a generic 'create or update' — it does not say that statuses are identified by commit sha plus context (so re-posting with the same context replaces the prior status), nor what the returned status object looks like.

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?

The single sentence is front-loaded and free of padding, which is good, but the terseness here is under-specification rather than economy. For a 10-parameter mutation tool the description is far shorter than the task warrants.

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?

Given 10 parameters, two of them required, no output schema, and zero parameter documentation, the description leaves an agent unable to construct a correct call beyond sha and state. The annotations cover the safety profile, but everything about inputs and return values is missing.

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

Parameters1/5

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

Schema description coverage is 0% across 10 parameters, so the description must carry the burden and it names none of them. Fields like context, target_url, coverage, and pipeline_id — the ones an agent is most likely to misuse — are left entirely unexplained, with only a vague hint that a commit and a status are involved.

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 gives a clear verb-plus-resource pair: 'Create or update the status of a commit.' An agent can tell this is an upsert-style write on commit statuses rather than a read like gitlab_list_commit_statuses. It stops short of naming any sibling or describing the status object it writes.

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?

There is no guidance on when to use this versus gitlab_list_commit_statuses or gitlab_get_commit, no mention of required permissions or the CI/CD token scope typically needed to post statuses, and no note about when an existing status is overwritten versus created. The phrase 'Create or update' implies idempotency-by-context but never says so.

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