Skip to main content
Glama

Get Created Pull Requests Tool

get-created-pull-requests-tool
Read-onlyIdempotent

Count pull requests OPENED over a recent window (default 1 day), broken down per repository and per author, with a human-vs-bot/dependabot split. Use this whenever the question is how many pull requests were created, opened or raised — today, this week, on a repo, or across the team — and especially when someone asks to see it "per repo" or "by repository".

Prefer this over a per-person activity breakdown for any total. It counts from the team's repositories rather than its member list, so it includes authors who have no Coderbuds account (reported as authors_without_member and created_by_non_members) and excludes a member's work in repositories this team does not ship. A member-first count gets both of those wrong.

The result carries its own denominator: repositories is exactly the list the numbers came from, so you can answer "which repos is this based on" from the same call. Slugs that match no team repository come back in unmatched_repositories instead of quietly counting zero.

Opened is counted by the time the provider recorded the pull request being opened. That is a different set from merged in the window — use get-merged-pull-requests for merges, and never present the two as reconciling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoLook-back window in days, trailing from now. Defaults to 1 — note that is the last 24 hours, not today's calendar day.
include_botsNoWhether to include bot/dependabot PRs in the totals. Defaults to true; the result always reports the human-vs-bot split regardless.
repositoriesNoOptional list of "owner/name" repository slugs to scope to (e.g. ["patchstack/saas"]). A bare repo name like "saas" also matches. Omit to include every repository on the team.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYesLook-back window used, in days.
teamYesTeam name.
sinceYesISO-8601 start of the window.
untilYesISO-8601 end of the window.
authorsYesPer-author counts with is_bot and is_member flags.
counted_asYesWhat "created" means in this result, to quote when reporting it.
bot_createdYesPRs opened by bots (any "[bot]" login).
not_capturedYesLimits of this result, to repeat when reporting the numbers.
repositoriesYesRepository slugs the numbers came from — the denominator for the whole result.
human_createdYesPRs opened by humans.
total_createdYesTotal PRs opened in the window (respects include_bots).
dependabot_createdYesPRs opened by dependabot specifically.
authors_without_memberYesHuman authors with no Coderbuds membership on this team — people a per-person breakdown would have omitted entirely.
created_by_non_membersYesPRs those non-member humans opened.
repositories_breakdownYesPer-repository totals with human/bot split, highest first.
unmatched_repositoriesYesRequested slugs that did not match a team repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already signal read-only and idempotent behavior, and the description adds substantial context: it counts from team repositories rather than the member list, includes non-members, reports unmatched_repositories instead of silently counting zero, and counts opened by provider-recorded time. It also discloses that the human-vs-bot split is always reported even when include_bots is false.

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?

Although longer than typical, the description is well-structured and front-loaded: a one-sentence summary, then when-to-use guidance, then counting semantics, then the merged-PR caveat. Every paragraph earns its place and helps the agent avoid real mistakes.

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?

With all parameters documented in the schema and an output schema available, the description supplies the missing context: which authors are counted, how scoping works, what happens with unmatched repository slugs, and how opened differs from merged. An agent has everything needed to select and invoke this tool correctly.

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?

The input schema covers all three parameters with full descriptions, including defaults and repository slug matching, so the schema is doing the heavy lifting. The description reinforces that repositories is the exact source list and mentions unmatched_repositories, but it does not add substantial parameter-level meaning beyond 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 action: Count pull requests OPENED over a recent window, then adds the key breakdown dimensions: per repository, per author, and human-vs-bot/dependabot split. It also distinguishes itself from get-merged-pull-requests by explicitly saying opened is a different set from merged, and from per-person activity tools by explaining what each approach counts.

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

Usage Guidelines5/5

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

The description gives explicit trigger questions such as how many pull requests were created, opened or raised, and contexts like today, this week, on a repo, or across the team. It tells the agent when to prefer this over a per-person activity breakdown and names get-merged-pull-requests as the alternative for merges, adding that the two should never be presented as reconciling.

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.

Resources