Skip to main content
Glama

Claim an issue

claim_issue

Claims 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

NameRequiredDescriptionDefault
urlNoThe issue's GitHub URL, https://github.com/owner/name/issues/123; give this or issueId
modeNoGitRanks 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)
maskIdNoA listed issue's masked.id, for an issue shown without the details that name it; in place of issueId
issueIdNoThe issue's issueId from the recommendations; give this or url

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"GitRanks Learn: \"learn\" lists the issues that fit the contributor's Learn goal and claims one with a lesson to write after the fix (the answer adds lessonBrief)"New value: +"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)"
  2. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"GitRanks Learn (invite-only): \"learn\" lists the issues that fit the contributor's Learn goal and claims one with a lesson to write after the fix (the answer adds lessonBrief)"New value: +"GitRanks Learn: \"learn\" lists the issues that fit the contributor's Learn goal and claims one with a lesson to write after the fix (the answer adds lessonBrief)"
  3. Changed1 schema field changed
    • addedInput schema / properties / maskId
      Added value: +{
      +  "description": "A listed issue's masked.id, for an issue shown without the details that name it; in place of issueId",
      +  "pattern": "^[0-9a-z]{6,24}$",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Far exceeds what the annotations convey (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false). It discloses the 24-hour rolling lease with a 7-day cap, the 48-hour submission deadline and when that clock restarts, daily quota accounting including refused claims, the full refusal enum with meanings, and the hard constraint that the agent must never push, fork, or open the PR itself.

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

Conciseness3/5

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

The action is front-loaded, and most clauses carry load-bearing policy (lease, deadline, quota, refusals). However, the opening sentence is a single run-on containing a nested parenthetical definition of maskId and mode, and the quota sentence is dense enough that an agent may need to re-read it; the content could be split into clearly separated policy lines without loss.

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

Completeness5/5

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

This is a high-complexity, quota-metered, lease-based mutation with no output schema and thin annotations, and the description still covers outcomes (status claimed with attemptId and leaseUntil, or checking with retryAfterSec), every failure mode, cost accounting, and the post-claim obligation. Nothing an agent needs to call it correctly or interpret the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning on top: mode "learn" is tied to a behavioral consequence (the answer gains lessonBrief and lesson, null when the issue teaches none) and maskId is explained as a listed item's masked.id used in place of issueId. It does not clarify the interaction when multiple identifiers are supplied simultaneously.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Claims one GitRanks pool issue for you to fix') plus the three identifiers that select it (issueId, GitHub URL, maskId). An agent can distinguish it from find_issues (discovery) and release_issue (giving a claim back) without opening any schema.

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?

Gives a concrete trigger for the non-obvious branch: when the contributor asks to fix an issue URL 'with GitRanks Learn', pass that url with mode "learn". It also explains renewal semantics and the standing rule that GitRanks opens the PR. It never names an alternative tool to use instead (e.g. find_issues to obtain an issueId, release_issue to drop a claim), so the exclusions half of the guidance is missing.

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.