Skip to main content
Glama

jules_consolidate_sessions

Merge multiple Jules sessions on the same repo into one clean branch or unified PR. Resolves cloud branch drift via 3-way unidiff, runs tests, and creates a single PR without conflicts.

Instructions

Reconcile and merge multiple concurrent Jules sessions on the SAME repository into a single clean local branch or unified PR. Uses 3-way unidiff application to resolve cloud branch drift automatically, runs tests, and creates 1 clean PR without merge conflicts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pr_titleNoCustom PR title for the consolidated Pull Request.
repo_pathYesAbsolute local repository path (e.g. '/root/projects/agent-brain').
base_branchNoBase branch to branch off of (defaults to 'main').
session_idsNoList of completed session IDs to consolidate. If omitted, automatically discovers all completed sessions for this repo.
test_commandNoVerification command to run (e.g. 'npm test' or 'pytest').
target_branchNoBranch name to create and commit to (defaults to 'jules/consolidated-<timestamp>').
auto_create_prNoIf true and tests pass, automatically pushes the branch and creates a unified GitHub PR via 'gh' (defaults to true).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.5.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It does disclose meaningful behavior: uses 3-way unidiff application, runs tests, and creates a single PR. However, it does not mention side effects like pushing branches, modifying local repo state, GitHub auth requirements, or failure behavior.

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?

The description is compact and front-loaded with the core purpose, followed by a brief mechanism explanation. It avoids major fluff, though terms like 'clean' and 'without merge conflicts' are somewhat redundant.

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 a 7-parameter tool with no annotations and no output schema, the description gives a solid operational overview but leaves gaps around prerequisites, side effects, return/result shape, and when to avoid using the tool. The schema fills parameter details, but the agent still has to infer important operational constraints.

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?

All 7 parameters have schema descriptions, so the baseline is 3 and the schema carries the parameter documentation load. The description adds high-level context about consolidation, drift resolution, and tests, but it does not add meaningfully to any specific parameter beyond what the schema provides.

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 clearly states what the tool does: reconcile and merge multiple concurrent Jules sessions on the same repository into a single local branch or unified PR. It uses a specific verb and resource and is clearly distinct from sibling tools like list/get/rebase/merge, though it does not name them explicitly.

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?

The description gives a clear usage context: use it when there are multiple concurrent Jules sessions on the same repository that need consolidation. It implies this is for merging/session-reconciliation workflows, though it does not explicitly state when not to use it or name alternative tools.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yasserbousrih/jules-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server