Skip to main content
Glama

jules_sync_local_codebase

Apply AI-generated code changes from Jules to your local git repository to synchronize the codebase with approved modifications.

Instructions

Applies the latest Jules diff to a local git working tree (syncs the codebase).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdYesSession ID
repoPathNoLocal repo path (default: current working directory)
activityIdNoOptional activity ID to pull diff from
fileNoOptional file path to sync
dryRunNoIf true, only check that the patch applies
allowDirtyNoAllow applying on a dirty working tree
threeWayNoAttempt a 3-way apply (git apply --3way)
Behavior2/5

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

With no annotations, the description carries full burden but provides minimal behavioral insight. It mentions applying a diff, implying a write/mutation operation, but doesn't disclose critical traits like whether it modifies files permanently, requires git setup, handles conflicts, or has side effects (e.g., committing changes). The lack of output schema further limits transparency on what the tool returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core action ('Applies the latest Jules diff') and target ('to a local git working tree'), with a clarifying parenthetical. Every word contributes to understanding the tool's purpose without redundancy or fluff.

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

Completeness2/5

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

Given the tool's complexity (applying diffs to a git repository with 7 parameters), no annotations, and no output schema, the description is insufficient. It lacks details on behavioral outcomes (e.g., success/failure states, error handling), integration with sibling tools (e.g., following 'jules_approve_plan'), or operational constraints, leaving significant gaps for an AI agent to use it 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 fully documents all 7 parameters. The description adds no parameter-specific semantics beyond implying 'syncs the codebase' relates to parameters like 'repoPath' or 'file'. It doesn't explain interactions between parameters (e.g., 'dryRun' with 'allowDirty') or provide usage examples, meeting the baseline for high schema coverage.

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 the action ('applies the latest Jules diff') and target ('to a local git working tree'), with the parenthetical 'syncs the codebase' reinforcing the purpose. It distinguishes from siblings like 'show_code_diff' (which displays differences) or 'jules_get_latest_activity' (which retrieves information), though it doesn't explicitly name alternatives.

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?

No guidance is provided on when to use this tool versus alternatives. The description implies it's for applying diffs, but it doesn't specify prerequisites (e.g., after a plan is approved), exclusions (e.g., not for viewing diffs), or direct comparisons to siblings like 'jules_approve_plan' or 'jules_reject_plan' in a workflow context.

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

Install Server

Other Tools

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/streetquant/jules-mcp'

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