Skip to main content
Glama

check_pr_readiness

Idempotent

Run a pre-PR checklist on the current local branch to verify commits, tests, sign-off, changelog, template, issue-first, and security rules before opening a pull request; returns pass/fail results.

Instructions

Run the pre-PR checklist on the current branch of the local clone: not on the default branch, commits exist, tests added/changed, DCO sign-off on every branch commit (if required), changelog fragment (if required), PR template sections present in pr_body (required when the repo has a template), issue-first satisfied (finding.issue_url) when required, finding not a security bug (those go private), AI policy not banned. Re-run after any code change. Returns passed, checks[{name, ok, detail}] and next. Lite does not record the result.

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>",
      "finding_id": "<finding_id>"
    },
    "name": "check_pr_readiness"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYes
pr_bodyNo
finding_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, it discloses the full check list, that requirements are conditional ('if required'), the return shape (passed, checks[], next), and the notable side effect that the Lite variant does not record the result. It doesn't explain why the tool is not read-only or what environment access it needs, leaving readOnlyHint=false only partially accounted for.

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?

Front-loaded with the action and target, then a compact enumeration of checks and return values with no filler sentences. The parenthetical conditionals make the middle sentence dense but every clause carries information.

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 checklist tool with no output schema, the description supplies the checks, conditional requirements, and return fields an agent needs. The remaining gap is the undefined 'repo' parameter and how to obtain a finding_id, which an agent must guess.

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 0%, so the description must carry parameter meaning. It explains pr_body (used for PR template section checks) and ties finding_id to finding.issue_url for issue-first and security checks, but the 'repo' parameter and the expected formats for repo/finding_id are never described.

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 definition states a specific verb plus target ('Run the pre-PR checklist on the current branch of the local clone') and enumerates the individual checks, so an agent knows exactly what it validates. This is clearly distinct from siblings like check_ai_policy, get_contribution_steps, or record_finding.

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 clear context for use ('Re-run after any code change') and an exclusion: security bugs 'go private' rather than through this tool. It stops short of naming an alternative tool for that case, so guidance is strong but not fully explicit about where to route those findings.

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