prepare_merge_request
Gathers diffs, commit logs, changed files, and templates to compile all data needed for composing a pull or merge request title and body.
Instructions
Gather all the data needed to create a Pull Request or Merge Request:
Git diff between the current branch and the default branch
Commit log
List of changed files
PR/MR template (if one exists in the repo)
Repository metadata (platform, owner, repo)
The returned data is intended for the LLM to use when composing the PR/MR title and body. If a template is found, the LLM should fill it in. Otherwise, the LLM should generate appropriate content based on the diff and commit log.
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": {
"cwd": "<cwd>"
},
"name": "prepare_merge_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Working directory — must be inside a git repository | |
| base | No | Base branch to compare against. Defaults to the repository's default branch (e.g. main). |