Skip to main content
Glama
ttpears

GitLab MCP Server

by ttpears

Custom REST Write

execute_rest_write
Destructive

Perform arbitrary write operations (POST/PUT/PATCH/DELETE) on GitLab REST API. Caution: DELETE is destructive and irreversible.

Instructions

Execute an arbitrary POST/PUT/PATCH/DELETE request against the GitLab REST API at /api/v4. Open-ended escape hatch for write endpoints not covered by a dedicated tool. Destructive — DELETE is permitted, so check the path before invoking. For reads, use execute_rest_read.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodYesHTTP method. DELETE is destructive and not reversible.
pathYesPath under /api/v4, beginning with "/" (e.g. "/projects/42/issues" or "/projects/foo%2Fbar/merge_requests/3/merge"). Must not include host, "/api/v4" prefix, or "?" query string.
bodyNoRequest body — JSON-serialized as application/json. Omit for endpoints that don't take a body (most DELETE / some PUT).
queryNoQuery string parameters. Most write endpoints take their args in the body, but a few mix.
userCredentialsNoYour GitLab credentials (optional — falls back to the configured env token if not provided)
Behavior5/5

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

Annotations already set destructiveHint=true, but the description adds valuable context beyond annotations: it labels the tool as an 'open-ended escape hatch', warns about DELETE being destructive, and advises checking the path. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at four sentences, front-loaded with the core purpose, and every sentence adds essential information without repetition or fluff.

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?

Given the high schema coverage and clear annotations, the description covers purpose, usage guidelines, parameter semantics, and behavioral traits completely for an escape hatch tool. No missing context that would confuse an agent.

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?

Although schema coverage is 100%, the description adds significant meaning beyond the schema: it explains the method enum (destructive hint for DELETE), specifies path format (no host, no /api/v4 prefix, no query string), describes when to omit body, and clarifies query string usage and userCredentials fallback behavior.

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?

The description clearly states the tool executes arbitrary POST/PUT/PATCH/DELETE requests to the GitLab REST API, and distinguishes it from the sibling tool 'execute_rest_read' by explicitly directing reads to that alternative.

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?

The description provides explicit guidance: use this tool for write endpoints not covered by dedicated tools, and for reads use 'execute_rest_read'. It also warns about destructive actions (DELETE) and advises checking the path before invoking.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ttpears/gitlab-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server