Skip to main content
Glama

Execute GitLab Action

gitlab_execute_action

Execute any GitLab action with input validation and token-optimized responses, dispatching directly to the API while enforcing read-only safety.

Instructions

Execute any discovered GitLab platform action with input validation and token-optimized response projection. Dispatches directly to the corresponding API endpoint while enforcing read-only safety restrictions.

Input Schema

NameRequiredDescriptionDefault
actionYesThe exact GitLab action name to execute (e.g. 'create_merge_request', 'list_pipelines', 'trigger_push_mirror_sync')
formatYesOutput format: 'markdown' (default, token-optimized compact table/text for LLM) or 'json' (structured JSON)markdown
paramsNoAlias for parameters (for cross-client compatibility)
parametersNoKey-value parameters for the designated action (as discovered from gitlab_find_actions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.1.0

TDQS

B3/5.0
Behavior1/5

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

Annotations declare readOnlyHint=false (the tool can perform write actions, and the schema examples include create_merge_request and trigger_push_mirror_sync), yet the description claims it operates 'while enforcing read-only safety restrictions.' A tool that actually enforced read-only restrictions could not dispatch to a create endpoint, so the description directly contradicts the declared read/write profile.

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?

Two sentences, front-loaded with the dispatch purpose followed by the response/safety claim; there is no filler. Slightly jargon-heavy ('token-optimized response projection') but still tight and readable.

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

Completeness3/5

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

For a generic dispatcher taking a free-form action string plus a nested parameter object, the description omits how callers learn valid action names (the discovery dependency) and gives no return-shape context beyond 'projection.' The misleading read-only claim also leaves the safety contract unclear, so it is adequate but with clear gaps.

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 action, format, params, and parameters are already documented in the schema; the description adds nothing about parameter shape or the params/parameters aliasing. Per the rule, a fully covered schema yields a baseline of 3 even with no added param detail.

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?

States a specific verb and resource ('Execute any discovered GitLab platform action') and frames itself as a generic dispatcher, which distinguishes it from concrete siblings like get_file_contents and get_project. It does not explicitly name those siblings or clarify when to prefer them over this catch-all dispatcher, so it stops short of a 5.

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?

The word 'discovered' plus the schema note ('as discovered from gitlab_find_actions') implies a prerequisite step, so usage is implied but never stated as when/when-not. No explicit guidance about preferring dedicated get_* tools over this dispatcher, so it is only minimally viable.

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