Skip to main content
Glama

Merge requests

merge_requests
Destructive

Absorb one request (ticketId, the child) into another (parentTicketId, the parent) in the same project. For duplicates or narrow asks a bigger request subsumes. The child goes DECLINED with a merged_into link + a MERGED journey event (nothing is lost: body, comments, and the reality read stay on it, and the parent's detail lists its absorbed children). When the parent SHIPS, every merged child ships with it automatically and each original requester is notified. Guards: both must be live (not CLOSED/DECLINED), the parent must not itself be merged (no chains), and a request can't merge into itself. For MANAGER+, refused when the parent's title or description repeats what someone wrote in feedback linked to the child.

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": {
      "workspace": "<workspace>",
      "project": "<project>",
      "ticketId": "<ticketId>",
      "parentTicketId": "<parentTicketId>"
    },
    "name": "merge_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYesProject slug or id
ticketIdYesThe request being absorbed (the child)
workspaceYesWorkspace slug or id
parentTicketIdYesThe request that subsumes it (the parent)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only flag destructiveHint=true and openWorldHint=true; the description goes far beyond them by disclosing exact state transitions (child becomes DECLINED with a merged_into link and MERGED journey event), data preservation guarantees, downstream effects on ship plus requester notifications, and the MANAGER+ permission and refusal rule. This is exactly the behavioral context a destructive mutation needs.

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?

Effects are front-loaded in the first two sentences and the guards trail as a labeled 'Guards:' clause, which reads well. The long parenthetical about the MERGED journey event is dense but carries real information rather than padding.

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

Completeness4/5

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

For a destructive, permission-gated mutation with no output schema, the description covers state changes, side effects, preconditions, and authorization. The only gap is what the call returns (the merged child/parent representation), which is minor given no output schema is declared.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all four parameters; the baseline would be 3. The description still adds meaning by clarifying the child/parent relationship and adding the 'same project' constraint and UUID-role mapping, which the schema fields alone do not state as an invariant.

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 opening sentence gives a specific verb and named roles: 'Absorb one request (ticketId, the child) into another (parentTicketId, the parent) in the same project.' The word 'absorb' plus the explicit child/parent mapping makes the operation unambiguous and clearly distinct from sibling linking tools such as link_error_group.

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?

It states the intended scenario ('For duplicates or narrow asks a bigger request subsumes') and enumerates preconditions (both live, parent not already merged, no self-merge). It does not name an alternative tool for the cases where merging is refused, so it stops short of full when-not guidance.

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.

Resources