Skip to main content
Glama

Accept every changed story in a build

accept_build
Destructive

Accept ALL changed stories in one build at once (resolved by commitSha/prNumber/buildId), advancing each story's per-branch baseline so the next build is clean. This is the bulk form of review_diff='accept' — use it when you've decided the whole build's changes are intended. It accepts every changed story, including stories that already have a prior denied review; failed stories are unaffected. Returns the build triage after accepting (first page of changed stories, each now showing decision='accepted'; page the rest with list_build_stories if changedNextCursor is set). Refused, with nothing accepted, while any changed story has an unresolved review comment, including one a person left on an earlier build of the branch: the error names those stories; read them with list_comments, address each note, resolve_comment its thread, then accept again. Also refused, with nothing accepted, on a build a newer build has superseded (with prNumber, a newer build of that PR; otherwise a newer build on its branch), on a build that PR doesn't show, on a build that has to be rebuilt against its PR's base, when prNumber names a PR from another branch, and when the build's branch has several open PRs and no prNumber says which one the accept is for; each error says which and what to do.

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": "accept_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
buildIdNoResolve this exact build id.
prNumberNoResolve the latest build for this PR number.
commitShaNoResolve the build for this git commit SHA.
projectIdNoThe project to look in (a projectId from list_projects). Needed only when you can access several projects; a buildId already names its project.

Output Schema

NameRequiredDescriptionDefault
branchYes
countsYes
statusYes
blockedYesWhy a blocked build was paused and what to do next; null for any other build.
buildIdYes
aiReviewYes
commentsNoAbsent on UI Verify's demo project, whose review comments only its team sees.
prNumberYes
warningsNoWhy this build's baselines weren't picked by its branch's commits, and what fixes it.
commitShaYes
createdAtYes
gateTitleNoThe verdict's headline, e.g. 'Needs a build of this PR against develop', when the build has one.
gateStatusYes
failedStoriesYes
changedStoriesYes
failedNextCursorYes
autoAcceptChangesYes
changedNextCursorYes
openReviewCommentsNoPresent when open review comments are waiting on some branch of this project; read yours with list_comments.
pendingWithoutDiffNoKeys the gate counts as pending that have no diff to review: why='change' is accepted by accept_build, why='needs-build' clears only with a new build.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / failedStories / items / properties / kind / enum
      Previous value: -[
      -  "render",
      -  "interaction"
      -]New value: +[
      +  "render",
      +  "interaction",
      +  "test"
      +]
  2. Changed4 schema fields changed
    • addedOutput schema / properties / changedStories / items / properties / neverReviewed
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Accepted by CI with no person or agent ever reviewing this look; prs are the PRs it came in with unreviewed.",
      +  "properties": {
      +    "prs": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "prs"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / gateTitle
      Added value: +{
      +  "description": "The verdict's headline, e.g. 'Needs a build of this PR against develop', when the build has one.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pendingWithoutDiff
      Added value: +{
      +  "description": "Keys the gate counts as pending that have no diff to review: why='change' is accepted by accept_build, why='needs-build' clears only with a new build.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "browser": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "storyId": {
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "uncertainLevel": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "viewport": {
      +        "type": "string"
      +      },
      +      "why": {
      +        "enum": [
      +          "change",
      +          "needs-build"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "storyId",
      +      "title",
      +      "name",
      +      "viewport",
      +      "browser",
      +      "why",
      +      "uncertainLevel"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / warnings
      Added value: +{
      +  "description": "Why this build's baselines weren't picked by its branch's commits, and what fixes it.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / openReviewComments
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Present when open review comments are waiting on some branch of this project; read yours with list_comments.",
      +  "properties": {
      +    "branches": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "branch": {
      +            "type": "string"
      +          },
      +          "lastActivityAt": {
      +            "type": "string"
      +          },
      +          "open": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "branch",
      +          "open",
      +          "lastActivityAt"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "branchesTotal": {
      +      "type": "number"
      +    },
      +    "hint": {
      +      "type": "string"
      +    },
      +    "projectId": {
      +      "type": "string"
      +    },
      +    "total": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "branches",
      +    "branchesTotal",
      +    "projectId",
      +    "hint"
      +  ],
      +  "type": "object"
      +}
  4. Changed2 schema fields changed
    • addedOutput schema / properties / blocked
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "headline": {
      +              "type": "string"
      +            },
      +            "hints": {
      +              "items": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "branch": {
      +                        "type": "string"
      +                      },
      +                      "kind": {
      +                        "const": "no-default-branch-baseline",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind",
      +                      "branch"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "kind": {
      +                        "const": "build-exceeds-allowance",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ]
      +              },
      +              "type": "array"
      +            },
      +            "limit": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "message": {
      +              "type": "string"
      +            },
      +            "nextSteps": {
      +              "items": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "branch": {
      +                        "type": "string"
      +                      },
      +                      "kind": {
      +                        "const": "run-default-branch",
      +                        "type": "string"
      +                      },
      +                      "text": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind",
      +                      "branch",
      +                      "text"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "callUrl": {
      +                        "type": "string"
      +                      },
      +                      "email": {
      +                        "type": "string"
      +                      },
      +                      "kind": {
      +                        "const": "contact",
      +                        "type": "string"
      +                      },
      +                      "text": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind",
      +                      "text",
      +                      "email",
      +                      "callUrl"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ]
      +              },
      +              "type": "array"
      +            },
      +            "reason": {
      +              "enum": [
      +                "allowance",
      +                "billing",
      +                "unknown"
      +              ],
      +              "type": "string"
      +            },
      +            "requested": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "resetsAt": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "resetsOn": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "statusLine": {
      +              "type": "string"
      +            },
      +            "used": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "reason",
      +            "headline",
      +            "hints",
      +            "nextSteps",
      +            "statusLine",
      +            "used",
      +            "limit",
      +            "requested",
      +            "resetsAt",
      +            "resetsOn",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "headline": {
      +              "type": "string"
      +            },
      +            "hints": {
      +              "items": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "branch": {
      +                        "type": "string"
      +                      },
      +                      "kind": {
      +                        "const": "no-default-branch-baseline",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind",
      +                      "branch"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "kind": {
      +                        "const": "build-exceeds-allowance",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ]
      +              },
      +              "type": "array"
      +            },
      +            "nextSteps": {
      +              "items": {
      +                "anyOf": [
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "branch": {
      +                        "type": "string"
      +                      },
      +                      "kind": {
      +                        "const": "run-default-branch",
      +                        "type": "string"
      +                      },
      +                      "text": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind",
      +                      "branch",
      +                      "text"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  {
      +                    "additionalProperties": false,
      +                    "properties": {
      +                      "callUrl": {
      +                        "type": "string"
      +                      },
      +                      "email": {
      +                        "type": "string"
      +                      },
      +                      "kind": {
      +                        "const": "contact",
      +                        "type": "string"
      +                      },
      +                      "text": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "kind",
      +                      "text",
      +                      "email",
      +                      "callUrl"
      +                    ],
      +                    "type": "object"
      +                  }
      +                ]
      +              },
      +              "type": "array"
      +            },
      +            "reason": {
      +              "enum": [
      +                "allowance",
      +                "billing",
      +                "unknown"
      +              ],
      +              "type": "string"
      +            },
      +            "statusLine": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "reason",
      +            "headline",
      +            "hints",
      +            "nextSteps",
      +            "statusLine"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Why a blocked build was paused and what to do next; null for any other build."
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "buildId",
      -  "commitSha",
      -  "branch",
      -  "prNumber",
      -  "status",
      -  "gateStatus",
      -  "autoAcceptChanges",
      -  "createdAt",
      -  "counts",
      -  "aiReview",
      -  "changedStories",
      -  "changedNextCursor",
      -  "failedStories",
      -  "failedNextCursor"
      -]New value: +[
      +  "buildId",
      +  "commitSha",
      +  "branch",
      +  "prNumber",
      +  "status",
      +  "gateStatus",
      +  "autoAcceptChanges",
      +  "createdAt",
      +  "blocked",
      +  "counts",
      +  "aiReview",
      +  "changedStories",
      +  "changedNextCursor",
      +  "failedStories",
      +  "failedNextCursor"
      +]
  5. Changed4 schema fields changed
    • addedOutput schema / properties / changedStories / items / properties / comments / description
      Added value: +"Absent on UI Verify's demo project, whose review comments only its team sees."
    • changedOutput schema / properties / changedStories / items / required
      Previous value: -[
      -  "diffResultId",
      -  "storyId",
      -  "title",
      -  "name",
      -  "viewport",
      -  "browser",
      -  "changedPct",
      -  "decision",
      -  "isNew",
      -  "unstable",
      -  "aiVerdict",
      -  "aiClassification",
      -  "aiIntroducedBy",
      -  "aiConfidence",
      -  "aiSummary",
      -  "aiFlagReason",
      -  "comments"
      -]New value: +[
      +  "diffResultId",
      +  "storyId",
      +  "title",
      +  "name",
      +  "viewport",
      +  "browser",
      +  "changedPct",
      +  "decision",
      +  "isNew",
      +  "unstable",
      +  "aiVerdict",
      +  "aiClassification",
      +  "aiIntroducedBy",
      +  "aiConfidence",
      +  "aiSummary",
      +  "aiFlagReason"
      +]
    • addedOutput schema / properties / comments / description
      Added value: +"Absent on UI Verify's demo project, whose review comments only its team sees."
    • changedOutput schema / required
      Previous value: -[
      -  "buildId",
      -  "commitSha",
      -  "branch",
      -  "prNumber",
      -  "status",
      -  "gateStatus",
      -  "autoAcceptChanges",
      -  "createdAt",
      -  "counts",
      -  "comments",
      -  "aiReview",
      -  "changedStories",
      -  "changedNextCursor",
      -  "failedStories",
      -  "failedNextCursor"
      -]New value: +[
      +  "buildId",
      +  "commitSha",
      +  "branch",
      +  "prNumber",
      +  "status",
      +  "gateStatus",
      +  "autoAcceptChanges",
      +  "createdAt",
      +  "counts",
      +  "aiReview",
      +  "changedStories",
      +  "changedNextCursor",
      +  "failedStories",
      +  "failedNextCursor"
      +]
  6. Changed4 schema fields changed
    • removedOutput schema / properties / changedStories / items / properties / comments / properties / total / $ref
      Removed value: -"#/properties/comments/properties/total"
    • addedOutput schema / properties / changedStories / items / properties / comments / properties / total / type
      Added value: +"number"
    • removedOutput schema / properties / changedStories / items / properties / comments / properties / unresolved / $ref
      Removed value: -"#/properties/comments/properties/unresolved"
    • addedOutput schema / properties / changedStories / items / properties / comments / properties / unresolved / type
      Added value: +"number"
  7. Changed1 schema field changed
    • addedInput schema / properties / projectId
      Added value: +{
      +  "description": "The project to look in (a projectId from list_projects). Needed only when you can access several projects; a buildId already names its project.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  8. Changed2 schema fields changed
    • addedOutput schema / properties / changedStories / items / properties / comments
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "total": {
      +      "$ref": "#/properties/comments/properties/total"
      +    },
      +    "unresolved": {
      +      "$ref": "#/properties/comments/properties/unresolved"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "unresolved"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / changedStories / items / required
      Previous value: -[
      -  "diffResultId",
      -  "storyId",
      -  "title",
      -  "name",
      -  "viewport",
      -  "browser",
      -  "changedPct",
      -  "decision",
      -  "isNew",
      -  "unstable",
      -  "aiVerdict",
      -  "aiClassification",
      -  "aiIntroducedBy",
      -  "aiConfidence",
      -  "aiSummary",
      -  "aiFlagReason"
      -]New value: +[
      +  "diffResultId",
      +  "storyId",
      +  "title",
      +  "name",
      +  "viewport",
      +  "browser",
      +  "changedPct",
      +  "decision",
      +  "isNew",
      +  "unstable",
      +  "aiVerdict",
      +  "aiClassification",
      +  "aiIntroducedBy",
      +  "aiConfidence",
      +  "aiSummary",
      +  "aiFlagReason",
      +  "comments"
      +]
  9. Changed2 schema fields changed
    • addedOutput schema / properties / comments
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "total": {
      +      "type": "number"
      +    },
      +    "unresolved": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "unresolved"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "buildId",
      -  "commitSha",
      -  "branch",
      -  "prNumber",
      -  "status",
      -  "gateStatus",
      -  "autoAcceptChanges",
      -  "createdAt",
      -  "counts",
      -  "aiReview",
      -  "changedStories",
      -  "changedNextCursor",
      -  "failedStories",
      -  "failedNextCursor"
      -]New value: +[
      +  "buildId",
      +  "commitSha",
      +  "branch",
      +  "prNumber",
      +  "status",
      +  "gateStatus",
      +  "autoAcceptChanges",
      +  "createdAt",
      +  "counts",
      +  "comments",
      +  "aiReview",
      +  "changedStories",
      +  "changedNextCursor",
      +  "failedStories",
      +  "failedNextCursor"
      +]
  10. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "aiReview": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "intended": {
      +              "type": "number"
      +            },
      +            "regressions": {
      +              "type": "number"
      +            },
      +            "reviewed": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "regressions",
      +            "intended",
      +            "reviewed"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "autoAcceptChanges": {
      +      "type": "boolean"
      +    },
      +    "branch": {
      +      "type": "string"
      +    },
      +    "buildId": {
      +      "format": "uuid",
      +      "type": "string"
      +    },
      +    "changedNextCursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "changedStories": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "aiClassification": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "aiConfidence": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "aiFlagReason": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "aiIntroducedBy": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "aiSummary": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "aiVerdict": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "browser": {
      +            "type": "string"
      +          },
      +          "changedPct": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "decision": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "diffResultId": {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          "isNew": {
      +            "type": "boolean"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "storyId": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "unstable": {
      +            "type": "boolean"
      +          },
      +          "viewport": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "diffResultId",
      +          "storyId",
      +          "title",
      +          "name",
      +          "viewport",
      +          "browser",
      +          "changedPct",
      +          "decision",
      +          "isNew",
      +          "unstable",
      +          "aiVerdict",
      +          "aiClassification",
      +          "aiIntroducedBy",
      +          "aiConfidence",
      +          "aiSummary",
      +          "aiFlagReason"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "commitSha": {
      +      "type": "string"
      +    },
      +    "counts": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "changed": {
      +          "type": "number"
      +        },
      +        "failed": {
      +          "type": "number"
      +        },
      +        "total": {
      +          "type": "number"
      +        },
      +        "unchanged": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "total",
      +        "changed",
      +        "failed",
      +        "unchanged"
      +      ],
      +      "type": "object"
      +    },
      +    "createdAt": {
      +      "type": "string"
      +    },
      +    "failedNextCursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "failedStories": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "browser": {
      +            "type": "string"
      +          },
      +          "error": {
      +            "type": "string"
      +          },
      +          "errorTruncated": {
      +            "type": "boolean"
      +          },
      +          "kind": {
      +            "enum": [
      +              "render",
      +              "interaction"
      +            ],
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "storyId": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "viewport": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "storyId",
      +          "title",
      +          "name",
      +          "viewport",
      +          "browser",
      +          "error",
      +          "errorTruncated",
      +          "kind"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "gateStatus": {
      +      "type": "string"
      +    },
      +    "prNumber": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "status": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "buildId",
      +    "commitSha",
      +    "branch",
      +    "prNumber",
      +    "status",
      +    "gateStatus",
      +    "autoAcceptChanges",
      +    "createdAt",
      +    "counts",
      +    "aiReview",
      +    "changedStories",
      +    "changedNextCursor",
      +    "failedStories",
      +    "failedNextCursor"
      +  ],
      +  "type": "object"
      +}
  11. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, and the description goes well past them: it discloses that previously denied reviews are re-accepted, that failed stories are untouched, that refusal is all-or-nothing ('nothing accepted'), and it names the specific rejection causes. The only shortfall is that it doesn't say what 'accept' does that is irreversible or how to undo a mistaken accept, which matters for a destructive tool.

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, effect, and return shape are front-loaded before the refusal cases, so an agent gets the essentials in the first two sentences. The final refusal clause is a very long run-on stacking six distinct error conditions, which would read far better as a list, though no sentence is filler.

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?

The tool has real complexity — four alternative resolution parameters, destructive all-or-nothing semantics, and a recovery loop via list_comments/resolve_comment — and the description covers preconditions, the returned triage plus pagination hint, and the remediation path for each refusal. An output schema exists, yet the extra note on pagination via list_build_stories still adds practical value rather than redundancy.

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 100%, so every parameter is already documented, and the description largely restates the resolution keys. The one genuine addition is conditional routing advice — that prNumber may be required when a branch has several open PRs — but the mutually exclusive nature of buildId/prNumber/commitSha and the projectId scoping rule are left to the schema. Baseline 3 is appropriate.

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 ('Accept ALL changed stories in one build') plus the resolution keys (commitSha/prNumber/buildId) and the effect ('advancing each story's per-branch baseline so the next build is clean'). It explicitly distinguishes itself from the sibling single-item path by calling itself 'the bulk form of review_diff="accept"', so an agent can pick between them 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 an explicit selection condition ('use it when you've decided the whole build's changes are intended') and contrasts it with review_diff='accept'. It also enumerates the situations where the call will not proceed (unresolved review comments, superseded build, PR mismatch, needs-rebuild, ambiguous PR on the branch), which is exactly the when-not guidance an agent needs before spending a call.

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