Skip to main content
Glama

Get merge train

get_merge_train
Read-only

Read a repository's Ankra merge train: whether it is on, max_cars, auto-admit, the pull requests queued (entries, with position, status and the run testing each) and the ones that recently left it (recent, with the reason). pull_request_number narrows it to one pull request's history. Address the repository with exactly one of repository_id, application_id, or owner and repo. Read-only; needs pipelines.read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_merge_train"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNoRepository name, with owner.
ownerNoRepository owner (organisation or user), with repo, instead of repository_id.
providerNoNarrows owner and repo when the same repository is connected on two providers.
recent_limitNoHow many settled entries to list, 1 to 200.
repository_idNoThe connected repository's id, from list_pipeline_repositories.
application_idNoAn application whose linked repository to address, instead of repository_id.
pull_request_numberNoOnly this pull request's entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds the required scope 'pipelines.read', which an agent cannot get from structured fields and which matters for failure prediction. It also discloses the shape of the response (entries vs. recent, including the failure reason on settled entries), though it says nothing about pagination or limits beyond the schema's recent_limit.

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?

Front-loaded with purpose, then return contents, then parameter rules, then auth — a sensible order with no filler sentences. The middle enumeration is dense ('max_cars, auto-admit') and uses internal jargon without glossing it, which costs a little readability.

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?

There is no output schema, so the description carries the return-value burden and does so by naming the two collections and their fields. Combined with the read-only note, the auth scope, and the identifier rule, an agent has everything needed to call this correctly.

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 the schema already documents all seven parameters, which sets the baseline at 3. The description adds the mutual-exclusivity constraint across repository_id/application_id/owner+repo and clarifies that pull_request_number filters to a single PR's history, but leaves provider and recent_limit entirely to the schema.

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 and resource ('Read a repository's Ankra merge train') and then enumerates exactly what the read surfaces: on/off state, max_cars, auto-admit, queued entries with position/status/run, and recently settled entries with reasons. This clearly separates it from siblings like add_to_merge_train, remove_from_merge_train, or enable_merge_when_green.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete addressing rule ('exactly one of repository_id, application_id, or owner and repo') and names the narrowing parameter, which is real usage guidance. It stops short of explicitly pointing at the mutating siblings (add_to_merge_train/remove_from_merge_train) for write operations, so the when-not is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.