Skip to main content
Glama

Claim an issue

claim_issue

Claims one issue of the GitRanks pool (by issueId or its GitHub URL) after checking it is still free on GitHub, and answers its brief: the issue, its thread, the repository's rules and where to clone. The claim lasts 24 hours from your last call naming it, 7 days at most; calling again on a held issue renews it and answers the brief again. 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. New claims count against 10 a day per account, including those refused for the issue or its repository. A repository's rules can refuse a claim (an account age or tier, good first issues kept for people, a maintainer's go first, a cap on open pull requests): the refusal, repo_excluded with its reason, says what it asks.

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 (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)
issueIdNoThe issue's issueId from the recommendations; give this or url

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior3/5

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

Annotations declare this is a write-ish, non-idempotent, open-world, non-destructive operation, and the description substantially extends that with claim lifetime (24h rolling, 7 days max), renewal semantics, the 48h submission deadline, quota consumption, and refusal modes including the 'repo_excluded' outcome. That is unusually rich context; the main gap is that it never says what a successful brief payload looks like structurally or what happens to a claim on partial failure, so it does not fully clear the bar for a 5.

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 purpose is front-loaded well, but later sentences are long and clause-stacked (semicolon-separated lifetimes, parenthetical refusal causes), which slows parsing for an agent extracting rules. All content is relevant, but the density costs readability.

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

Completeness4/5

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

With no output schema, the description carries the return-value burden itself and does so ('the issue, its thread, the repository's rules and where to clone'). Deadlines, renewal, quota, and refusal outcomes are all covered; the uncovered piece is mode='learn' behavior, which appears only in the schema.

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 coverage is 100%, so the schema already documents url, issueId, and the 'learn' mode in detail. The description restates the url/issueId choice ('by issueId or its GitHub URL') without adding format or constraint detail, and it does not mention the 'learn' mode or its lessonBrief effect at all — that behavior lives only in the schema.

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?

The description opens with a specific verb and resource ('Claims one issue of the GitRanks pool') and then states exactly what the call yields ('answers its brief: the issue, its thread, the repository's rules and where to clone'). That verb-plus-output framing makes it distinguishable from discovery (find_issues) and relinquishment (release_issue) siblings even though neither is named.

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?

It gives strong operative context: renewal by calling again on a held issue, a 7-day ceiling, a 48-hour patch deadline, and a 10-per-day account cap that also counts refused claims. What is absent is explicit routing advice (e.g., that an issueId normally comes from a prior recommendation/discovery call), so the agent must infer the entry path.

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.