Skip to main content
Glama

GitCore Sovereign Git & Swarm Merge MCP Server

Enqueue Speculative Parallel Merge

enqueue_speculative_merge

Add a Pull Request to GitCore Speculative Parallel Merge Queue. Chains in-memory git merge-tree --write-tree batches, validates branch protection rules in parallel, and surgically ejects conflicting PRs without stalling healthy downstream PRs.

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>",
      "prNumber": "<prNumber>"
    },
    "name": "enqueue_speculative_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name.
ownerYesRepository owner.
prNumberYesPull Request number to enqueue.
autoProcessNoImmediately trigger speculative batch evaluation.
commitTitleNoOptional custom merge commit title.
mergeStrategyNoGit merge strategy when speculative checks succeed.merge

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already establish that this mutates state (readOnlyHint=false), is non-idempotent, and is not destructive in the repo-safety sense. The description adds real value beyond that: it discloses that the queue batches in-memory merge-tree operations, validates branch protection in parallel, and ejects conflicting PRs without blocking downstream ones. However, it never says whether the call returns immediately or blocks until evaluation completes, nor what a caller observes when a PR is ejected. Ejection of queued PRs is also not flagged as a potential side effect, which an agent should know about.

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 action and resource, with the mechanics following as supporting detail. Dense but not padded. The phrasing 'surgically ejects' is slightly promotional, though it does convey that ejection is targeted rather than wholesale.

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?

All six parameters are documented in the schema and there is no output schema, so the description need not explain return values. But for a mutation tool with non-idempotent semantics, the description should say something about whether enqueueing is repeatable and what happens to a PR already in the queue. That gap, plus the missing blocking/async distinction, leaves it adequate rather than complete.

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 every parameter including mergeStrategy's enum and autoProcess's default is already documented in the schema. The description adds no parameter-level meaning such as how commitTitle interacts with mergeStrategy or what autoProcess=false leaves behind. Baseline 3 is appropriate when the schema carries the full parameter burden.

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?

The description opens with a specific verb and target: 'Add a Pull Request to GitCore Speculative Parallel Merge Queue.' That is far more specific than a generic 'enqueue' and the queue name distinguishes it from siblings like push_stacked_pr or create_repo. It stops short of explicitly contrasting itself with an alternative path (e.g. merging directly), so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, no prerequisites (branch protection must be configured, write access required), and no named alternative such as push_stacked_pr for stacked work. The agent must infer the appropriate situation from the tool name and the queue concept alone.

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