Skip to main content
Glama

check_issue

Determine whether a GitHub issue is already taken before volunteering by scanning linked PRs, assignees, claimant comments, AI policies, and repo health for GO, TAKEN, or CAUTION verdicts.

Instructions

Check whether a GitHub issue is already taken.

Verdicts: GO (free to volunteer), TAKEN (spoken for: closed, open PR, or assignee), CAUTION (soft signal: someone expressed interest, the repo bans AI contributions, or the repo looks stale).

The payload also carries friendly_labels (first-time-contributor labels on the issue) and welcoming (repo-level signs contributions are welcome), the same markers scan_repo returns.

Every payload, success or error, carries effective_parameters (the options the call ran with), plus target when the call names one repository or issue. Error payloads carry error plus error_code: RateLimitError -> rate_limited, NotFoundError -> not_found, HTTP 401/CLI authentication failures -> auth_failed, subprocess timeouts -> timeout, other TakenError failures -> unknown.

Args: owner: repository owner login repo: repository name issue_number: issue number to check me: your GitHub login; your own comments are ignored in the claimant scan graphql: force the GraphQL fetch path instead of the automatic choice persistent_session: force the persistent-session GraphQL path instead of the automatic one pr_idle_days: stale-claim decay threshold for idle linked PRs (default 90) claim_silence_days: stale-claim decay threshold for simple issues (default 7) claim_silence_complex_days: stale-claim decay threshold for complex issues (default 14)

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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "issue_number": "<issue_number>"
    },
    "name": "check_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
meNo
repoYes
ownerYes
graphqlNoForce the GraphQL path. Default: automatic from auth state.
issue_numberYes
pr_idle_daysNoStale-claim decay: days of linked-PR inactivity before TAKEN weakens to CAUTION. Default: 90.
claim_silence_daysNoStale-claim decay: days one claim blocks as CAUTION on a simple issue; the clock resets on claimant activity. Default: 7.
persistent_sessionNoForce the persistent-session GraphQL path; token from `gh auth token` held in memory only. Default: automatic from auth state.
claim_silence_complex_daysNoStale-claim decay: days one claim blocks as CAUTION on a complex issue. Default: 14.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.9.2
    • addedInput schema / properties / claim_silence_complex_days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Stale-claim decay: days one claim blocks as CAUTION on a complex issue. Default: 14.",
      +  "title": "Claim Silence Complex Days"
      +}
    • addedInput schema / properties / claim_silence_days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Stale-claim decay: days one claim blocks as CAUTION on a simple issue; the clock resets on claimant activity. Default: 7.",
      +  "title": "Claim Silence Days"
      +}
    • addedInput schema / properties / pr_idle_days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Stale-claim decay: days of linked-PR inactivity before TAKEN weakens to CAUTION. Default: 90.",
      +  "title": "Pr Idle Days"
      +}
  2. Changed2 schema fields changedv0.7.3
    • changedInput schema / properties / graphql / description
      Previous value: -"Fetch via one GraphQL query (gh api graphql) instead of REST. Opt-in."New value: +"Force the GraphQL path. Default: automatic from auth state."
    • changedInput schema / properties / persistent_session / description
      Previous value: -"GraphQL over one persistent HTTPS connection; token from `gh auth token` held in memory only. Opt-in."New value: +"Force the persistent-session GraphQL path; token from `gh auth token` held in memory only. Default: automatic from auth state."
  3. Changed2 schema fields changedv0.7.2
    • addedInput schema / properties / graphql
      Added value: +{
      +  "default": false,
      +  "description": "Fetch via one GraphQL query (gh api graphql) instead of REST. Opt-in.",
      +  "title": "Graphql",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / persistent_session
      Added value: +{
      +  "default": false,
      +  "description": "GraphQL over one persistent HTTPS connection; token from `gh auth token` held in memory only. Opt-in.",
      +  "title": "Persistent Session",
      +  "type": "boolean"
      +}
  4. First observedv0.5.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses payload fields (friendly_labels, welcoming, effective_parameters, target), a complete error taxonomy mapping exception types and HTTP/CLI failures to error_code values, and the semantics of stale-claim decay. This is behavioral context an agent cannot get from the schema.

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 and verdict definitions are front-loaded and earn their place, as does the error-code mapping. However, the trailing 'Args:' block largely duplicates the input schema's titles and defaults, adding bulk rather than value, and the payload paragraph packs several distinct concerns into one run-on sentence.

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?

For a 9-parameter tool with no output schema and no annotations, the description covers verdict semantics, auxiliary payload fields, and error behavior thoroughly. It stops short of describing the full success payload shape beyond the named fields, but an agent has enough to call and interpret the result correctly.

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 only 56% (only graphql, persistent_session and the three decay thresholds have descriptions), so the description meaningfully compensates by explaining each argument, most notably that `me` causes your own comments to be ignored in the claimant scan and that the decay arguments are staleness thresholds. It adds little beyond the schema for graphql/persistent_session, where it mostly restates 'force ... instead of the automatic choice.'

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 first sentence states a specific verb and resource: check whether a single GitHub issue is already taken. It then enumerates the exact output vocabulary (GO/TAKEN/CAUTION) with a definition for each verdict, so an agent knows precisely what the call produces and how it differs from a repo-wide scan.

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?

Usage is clearly implied as a per-issue availability check, and the reference to scan_repo returning 'the same markers' signals the relationship between the two tools. What is missing is an explicit routing statement such as 'use scan_repo to survey many issues, use this for one' and any stated exclusions or prerequisites.

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

Deploy Server

Other Tools