Skip to main content
Glama

GitCore Sovereign Git & Swarm Merge MCP Server

Push Stacked Pull Request

push_stacked_pr
Idempotent

Atomically commit file additions/edits/deletions onto a stacked feature branch on bare Git storage (or use an already-pushed branch), create/update the Pull Request, link parentPrNumber into the Virtual Stacked PR DAG, and optionally attach cryptographic agent attestation.

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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "head": "<head>",
      "title": "<title>"
    },
    "name": "push_stacked_pr"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoTarget base branch. Optional when `parentPrNumber` is provided (automatically targets parent PR head branch).
bodyNoPull request Markdown description.
headYesFeature/stacked branch name (e.g. "stack/01-schema"). Created automatically from `base` or `parentPrNumber` if `files` are supplied.
repoYesRepository name.
draftNo
filesNoOptional list of file changes to commit atomically onto `head` without requiring a local git clone.
ownerYesRepository owner username or organization.
titleYesPull request title.
attestationNoOptional cryptographic agent provenance metadata to sign and attach immediately.
commitMessageNoCommit message when `files` are provided (defaults to `title`).
parentPrNumberNoOptional parent Pull Request number in the Virtual Stacked PR DAG.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and readOnlyHint=false; the description adds real context beyond them — atomicity of the commit, operation on bare Git storage with no local clone required, the create-or-update (upsert) PR semantics that explains the idempotency hint, and optional signing of attestation metadata. It stops short of describing failure modes, permissions required, or what happens if `head` already exists with divergent content.

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?

A single front-loaded sentence that leads with the core action ('Atomically commit...') and avoids filler. It is dense with four coordinated clauses, which slightly taxes readability, but each clause carries distinct information.

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 an 11-parameter mutation tool with no output schema, the description covers the workflow well but never indicates what a caller gets back (PR number, URL, commit SHA, stack node) or how partial failures are reported. Those gaps matter given the compound commit-plus-PR-plus-attestation behavior.

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 91%, so the schema already explains `base`, `head`, `files`, `attestation` and `parentPrNumber` behavior. The description mostly restates those relationships (parentPrNumber drives base selection and DAG linkage) rather than adding new meaning, so the baseline of 3 applies.

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?

Uses specific verbs and resources: commit file changes onto a stacked branch, create/update the Pull Request, and link `parentPrNumber` into a Virtual Stacked PR DAG. The multi-step action is distinguishable from the read-only sibling `get_pull_request_stack`, but the tool bundles several operations into one call without stating which are conditional.

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 parenthetical '(or use an already-pushed branch)' and 'optionally attach...' hint at modes of use, so an agent can infer that this covers both push-and-create and PR-only paths. However there is no explicit when-to-use vs when-not guidance, no mention of prerequisites such as existing branch state, and no routing away from alternatives.

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