Skip to main content
Glama

Push Files

gitlab_push_files

Create a GitLab commit with multiple file actions—create, update, move, delete, or chmod—on a specified branch in one operation.

Instructions

Create a commit with multiple file actions.

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": {
      "branch": "<branch>",
      "commit_message": "<commit_message>"
    },
    "name": "gitlab_push_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
forceNo
branchYes
actionsNo
project_idNo
author_nameNo
author_emailNo
start_branchNo
commit_messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed18 schema fields changedv1.7.0
    • removedInput schema / properties / actions / items / properties / content / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / actions / items / properties / content / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / actions / items / properties / encoding / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / actions / items / properties / encoding / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / actions / items / properties / execute_filemode / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / actions / items / properties / execute_filemode / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / actions / items / properties / last_commit_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / actions / items / properties / last_commit_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / actions / items / properties / previous_path / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / actions / items / properties / previous_path / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / author_email / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / author_email / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / author_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / author_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / force / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / force / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedInput schema / properties / start_branch / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / start_branch / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

C2.6/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 mutation profile is covered. The description adds nothing beyond that: it does not explain that a 'delete' action removes files, that 'force' rewrites history, that start_branch creates a new branch, or that repeated calls are not idempotent.

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 filler, so nothing is wasted. However, one sentence is badly undersized for a 9-parameter, five-action commit operation, making this under-specification rather than disciplined conciseness.

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?

With no output schema, 0% schema description coverage, nine parameters and a destructive-capable file action enum, the definition should explain the write semantics and branch behavior. It does not, leaving an agent to infer how the commit is assembled and what happens on failure or with force.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, so the description carries the full burden and fails to. The phrase 'multiple file actions' loosely gestures at the files/actions arrays but gives no meaning for force, start_branch, author_name/author_email, encoding, previous_path, or execute_filemode.

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 uses a specific verb ('Create') and resource ('a commit with multiple file actions'), so an agent knows this writes a multi-file commit rather than a single-file edit. It stops short of naming any sibling or distinguishing itself from related branch/commit tools, which keeps it at 4.

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 when-to-use guidance, no prerequisite (e.g. project_id, branch existing or not), and no mention of alternatives among the many gitlab_create_* siblings. The only implied context is that multiple file actions are being committed together.

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