Series Context: Part 8 of 10 in GitLab Core Engineering: Architecture, MCP & CI/CD Deep Dives .
Featured MRs: !264858 ( Merged ), !264863 ( Reviewed & Ready for Maintainer )
Resisting Tool Sprawl in the CI Toolset
When an MCP tool suite grows, every duplicate tool name ( run_pipeline vs create_merge_request_pipeline vs save_pipeline ) increases prompt bloat and splits LLM tool-selection accuracy. Rather than introducing a brand-new tool to run merge request pipelines, !264858 consolidated MR pipeline creation directly into Mcp::Tools::Pipelines::SavePipelineService via an optional merge_request_iid parameter.
Meanwhile, !264863 upgraded its sibling read tool, get_pipeline , so agents monitoring live builds know when—and when not —to poll again.
Upfront Permission Gates vs Fragile Error-String Matching ( !264858 )
Compare two ways to authorize creating a pipeline for a merge request:
Fragile approach: Call MergeRequests::CreatePipelineService#execute(merge_request) , inspect response.message , and run…