Skip to main content
Glama

check_prs

Monitor open pull requests to identify revenue opportunities like bounties or grants by tracking their status across repositories.

Instructions

Check status of all open PRs across repos — track which ones might earn money

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for "check_prs" tool which fetches PRs via checkAllPRs and formats the output.
    case "check_prs": {
      const prs = checkAllPRs();
      const byRepo: Record<string, any[]> = {};
      for (const pr of prs) {
        const repo = pr.repository?.nameWithOwner || "unknown";
        if (!byRepo[repo]) byRepo[repo] = [];
        byRepo[repo].push(pr);
      }
      const lines = Object.entries(byRepo).map(([repo, prs]) =>
        `${repo} (${prs.length} PRs):\n${prs.map((p: any) => `  - ${p.title.slice(0, 60)}\n    ${p.url}`).join("\n")}`
      );
      return {
        content: [{ type: "text", text: `OPEN PRs: ${prs.length} total\n\n${lines.join("\n\n")}` }],
      };
    }
  • Helper function that executes the shell command to fetch PRs using the GitHub CLI.
    function checkAllPRs(): any[] {
      try {
        const result = execSync(
          `gh search prs --author ElromEvedElElyon --state open --limit 40 --json title,url,repository,createdAt 2>/dev/null`,
          { encoding: "utf-8", timeout: 30000 }
        );
        return JSON.parse(result);
      } catch {
        return [];
      }
    }
  • src/index.ts:328-331 (registration)
    Registration of the "check_prs" tool in the listTools handler.
      name: "check_prs",
      description: "Check status of all open PRs across repos — track which ones might earn money",
      inputSchema: { type: "object" as const, properties: {} },
    },
Behavior2/5

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

No annotations provided, so description carries full disclosure burden. It mentions the revenue-tracking purpose but fails to disclose side effects, return format/pagination, authentication requirements, or what criteria determine 'might earn money'.

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

Conciseness5/5

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

Extremely tight single sentence structure. Front-loaded with action ('Check status'), followed by scope and purpose ('track which ones might earn money'). No redundant words or repetition of structured metadata.

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

Completeness3/5

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

Adequate for a zero-parameter tool but gaps remain. Given no output schema, the description should hint at return structure (list? count?). The 'across repos' scope mechanism is unexplained, though the revenue connection to sibling tools is appropriately noted.

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?

Zero parameters with 100% schema coverage (vacuously true). With no parameters to describe, this meets the baseline score of 4 as defined in the evaluation rules.

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

Purpose4/5

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

Clear verb ('Check') + resource ('open PRs') + scope ('across repos') and distinguishes from bounty-focused siblings by mentioning the PR context. However, 'across repos' is ambiguous given zero parameters (which repos?), and 'Check status' is slightly generic.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use versus alternatives like 'find_bounties' or 'scan_bounty'. The phrase 'track which ones might earn money' implies revenue-tracking use case but doesn't state prerequisites or when to prefer this over other revenue tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ElromEvedElElyon/revenue-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server