Skip to main content
Glama

Patch pull requests

yof_patch_status
Read-onlyIdempotent

List Patch's open fix pull requests, with the state of each one's CI checks. Use it to see whether a fix Patch proposed is waiting, passing or failing; use yof_lessons for fixes already merged, and yof_findings for problems with no pull request yet. Reads what yof last stored about each pull request (up to 50, newest first) without asking GitHub again. Returns open (repository, number, url, draft, rule, title, checks, failed_checks, opened) and a note; an empty list means Patch has no open pull request.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "yof_patch_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idNoOne app's id, from yof_apps. Default: every app.

Output Schema

NameRequiredDescriptionDefault
noteNoReminder that this tool changes nothing.
openNoOpen fix pull requests.
errorNoOnly on a failed call (isError true): what went wrong.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / app_id / description
      Previous value: -"One app's id (from yof_apps)."New value: +"One app's id, from yof_apps. Default: every app."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "description": "Only on a failed call (isError true): what went wrong.",
      +      "type": "string"
      +    },
      +    "note": {
      +      "description": "Reminder that this tool changes nothing.",
      +      "type": "string"
      +    },
      +    "open": {
      +      "description": "Open fix pull requests.",
      +      "items": {
      +        "properties": {
      +          "checks": {
      +            "description": "CI state as yof last stored it.",
      +            "type": "string"
      +          },
      +          "draft": {
      +            "type": "boolean"
      +          },
      +          "failed_checks": {
      +            "description": "Names of failed checks, at most 20.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "number": {
      +            "description": "Pull request number.",
      +            "type": "integer"
      +          },
      +          "opened": {
      +            "description": "ISO time.",
      +            "type": "string"
      +          },
      +          "repository": {
      +            "description": "owner/name on GitHub.",
      +            "type": "string"
      +          },
      +          "rule": {
      +            "description": "The rule the fix is for.",
      +            "type": "string"
      +          },
      +          "title": {
      +            "description": "Readable rule name.",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "Pull request URL.",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (read-only, idempotent, non-destructive, closed-world), so credit goes for added context: it reads cached state from yof rather than re-querying GitHub, caps at 50 results newest-first, and defines the empty-list meaning. However, the description spends its second half enumerating return fields that the output schema already provides, diluting the behavioral value.

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?

Purpose and sibling routing are front-loaded in the first sentence, which is good structure. The trailing field enumeration (repository, number, url, draft, rule, title, checks, failed_checks, opened) is largely redundant given the tool has an output schema and could be trimmed without losing agent-relevant information.

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?

For a single-param read tool with full schema coverage, output schema, and rich annotations, the description covers the remaining gaps an agent needs: data freshness (cached, no GitHub call), result ordering and cap, and the empty-result interpretation.

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% with a single optional app_id that already documents its source and default ("Default: every app"). The description adds no additional meaning about the filter, which is acceptable when the schema does the work, but it means no extra credit is earned.

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?

States a specific verb and resource ("List Patch's open fix pull requests") plus the payload dimension (CI check state). It also distinguishes itself from siblings by naming yof_lessons for merged fixes and yof_findings for problems without a PR, so the agent can route correctly without opening either schema.

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?

Gives explicit when-to-use (check whether a proposed fix is waiting, passing, or failing) and explicit alternatives with their selecting conditions (yof_lessons for merged fixes, yof_findings for reported problems with no PR). Nothing is left to inference about which tool to pick.

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.