Claim an issue
claim_issueClaims one GitRanks pool issue for you to fix (by issueId or GitHub URL, or by maskId, a listed item's masked.id; mode "learn" adds a lessonBrief and lesson, the course lesson the issue teaches, null with none) and answers its brief: the issue, its thread, the repository's rules and where to clone. When the contributor asks to fix an issue URL "with GitRanks Learn", give that url with mode "learn". Answers status claimed with attemptId and leaseUntil, or checking with retryAfterSec while GitHub is read. The claim holds 24 hours from your last call naming it, 7 days at most; calling again on a held issue renews it at no cost. Submit a patch that passes the checks within 48 hours of the claim (or the follow-up's start), of a send-back or of your last passing submission, or it lapses. Each claim counts against the contributor's full issues a day (10 to 70 by GitRanks tier, plus 5 per pull request merged through GitRanks, up to 100), refused ones included; an issue the contributor holds open on gitranks.com is claimed at no new cost. Refusals: claimed, claim_lost (taken or closed on GitHub), not_in_pool, repo_excluded with its reason, limit_reached (too many claims or pull requests at a time), rate_limited, setup_unfinished (give the contributor the link it names; it takes none of the day's full issues). Rule: a pull request for an issue from GitRanks is opened only by GitRanks. Never push a branch, fork the repository or open the pull request yourself, for example with gh pr create.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "claim_issue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The issue's GitHub URL, https://github.com/owner/name/issues/123; give this or issueId | |
| mode | No | GitRanks Learn: "learn" lists the issues on the contributor's Learn Issues page (For you: their Learn languages and level) and claims one with a lesson to write after the fix (the answer adds lessonBrief) | |
| maskId | No | A listed issue's masked.id, for an issue shown without the details that name it; in place of issueId | |
| issueId | No | The issue's issueId from the recommendations; give this or url |