Skip to main content
Glama

Approve or Reject Deployment

gitlab_approve_deployment

Approve or reject a blocked deployment to a protected environment so a production release can proceed or be halted.

Instructions

Approve or reject a blocked deployment to a protected environment. Approving can let a production deploy proceed. Premium/Ultimate.

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": {
      "deployment_id": "<deployment_id>",
      "status": "<status>"
    },
    "name": "gitlab_approve_deployment"
  }
}

Input Schema

NameRequiredDescriptionDefault
statusYes
commentNo
project_idNo
deployment_idYes
represented_asNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower, and the description adds genuinely useful context beyond them: the consequence of approving (a production deploy proceeds) and the Premium/Ultimate tier requirement, which affects whether the call will work at all. It still omits permission requirements, whether a rejected approval can be re-submitted, and whether the deployment must currently be in a blocked/awaiting state.

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?

Three short sentences, purpose front-loaded, each contributing something (action, consequence, availability tier). No filler, though the fragment 'Premium/Ultimate.' is terse to the point of being slightly cryptic about what it constrains.

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?

This is a mutation with real production consequences, 5 parameters at 0% schema coverage, and no output schema. Given that complexity, the description is too thin: it explains neither the parameters, the prerequisites, nor the result of the call, leaving the agent under-equipped to invoke it safely.

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 5 parameters, so the description carries the full burden and supplies nothing — no explanation of comment, project_id, or the opaque represented_as field, nor of what 'approved' vs 'rejected' means operationally. Only the schema's enum partially self-documents status, leaving most parameter meaning undocumented.

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?

States a specific verb pair (approve/reject) applied to a precisely scoped resource: a blocked deployment to a protected environment. That scope qualifier distinguishes it from sibling mutation tools such as gitlab_create_deployment and gitlab_update_deployment without needing to name them.

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?

Use is implied by the situation ('blocked deployment'), and 'Approving can let a production deploy proceed' hints at when to choose approved vs rejected. But there is no explicit when-not guidance, no mention of required approval permissions, and no routing to alternatives like gitlab_get_deployment to inspect the deployment first.

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