Skip to main content
Glama
Captapi MCP Server

Captapi MCP Server

Official

GitHub Pull Requests

github_pull_requests

List pull requests for a GitHub repository by state, labels, author, and head/base, with cursor pagination and an optional 24h cache to avoid charges.

Instructions

List repo PRs — draft, labels, author{}, head/base, opaque Link cursor (state echoed). Costs ~12 credits (0.4/result). Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).

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": {
      "repo": "<repo>"
    },
    "name": "github_pull_requests"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository URL or owner/name, e.g. vercel/next.js.
cacheNoSet true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.
limitNoMax items to return (default 30, max 100). Billed per result.
stateNoopen (API default), closed, or all. Echoed as data.state. Docs example uses closed so mergedAt is visible.
cursorNoOpaque cursor from a previous nextCursor (GitHub Link page=). Not a bare page number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/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 substantial work: it discloses the credit cost (~12 credits, 0.4/result), that empty results and failures are never charged, that the default is always fresh unless cache=true, and that state is echoed back in the response. It omits auth/permission requirements and any ordering or rate-limit behavior, so it falls short of 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.

Conciseness4/5

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

It is a single dense, front-loaded line that covers scope, fields, pagination, and cost with no filler. The compressed shorthand ("author{}", "head/base") is efficient but slightly cryptic on first read.

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 paginated list tool with no output schema, the description covers the essentials an agent needs: cost model, billing on empty/failure, caching, cursor continuation, and the shape of returned items. Missing pieces are secondary — auth requirements and default ordering/sort behavior — so it is close to complete.

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 description coverage is 100%, so every one of the five parameters is already documented, including the cache default, limit bounds, state values, and cursor semantics. The description largely restates those facts (state echoed, cursor is a Link page, cache default fresh) rather than adding new meaning, so the baseline 3 applies.

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?

"List repo PRs" gives a specific verb and resource, and the following field list (draft, labels, author, head/base) signals what each item carries. It is clearly distinguishable from github_repository or github_user, though the telegraphic style makes the scope slightly harder to parse than a plain sentence would.

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

Usage Guidelines3/5

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

It gives operational guidance for specific parameters — use cache=true for a free 24h hit, use the opaque cursor rather than a page number, and the docs example uses closed so mergedAt is visible — but it never states when to choose this tool over a related one or what preconditions exist. Usage is implied by the parameter hints rather than declared.

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