Skip to main content
Glama

Accept every changed story in a build

accept_build

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).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buildIdNoResolve this exact build id.
prNumberNoResolve the latest build for this PR number.
commitShaNoResolve the build for this git commit SHA.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchYes
countsYes
statusYes
buildIdYes
aiReviewYes
prNumberYes
commitShaYes
createdAtYes
gateStatusYes
failedStoriesYes
changedStoriesYes
failedNextCursorYes
autoAcceptChangesYes
changedNextCursorYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Before
      null
      After
      {
        "$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"
      }
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations are minimal (readOnlyHint=false, destructiveHint=false), so the description carries the behavioral burden and does so well. It discloses real side effects: advancing each story's per-branch baseline, making the next build clean, accepting previously denied stories, leaving failed stories unaffected, and returning a paginated triage result with a cursor for further pages.

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?

The description is dense but every sentence contributes: it names the operation, gives the use condition, describes exceptions, and specifies the return/pagination behavior. The main action is front-loaded and there is no filler or redundant restatement of the title.

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 mutating bulk operation, the description covers scope, side effects, edge cases, return shape, and pagination routing to list_build_stories. The main gap is the missing explicit constraint that at least one of buildId/prNumber/commitSha must be supplied, and whether they are mutually exclusive. This is material enough to prevent a perfect score, but the rest of the context is strong.

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 the schema already explains buildId, prNumber, and commitSha adequately. The description merely restates that resolution happens via these three fields and adds no new parameter-level detail. A notable unresolved point is that it never states whether exactly one resolver must be provided or what happens if multiple are supplied.

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 clearly states a specific verb ('accept'), a specific resource ('changed stories in a build'), and the bulk scope ('ALL changed stories in one build at once'). It also explicitly positions itself as the bulk form of review_diff='accept', which distinguishes it from sibling tools like review_diff and list_build_stories.

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 an explicit selection condition: 'use it when you've decided the whole build's changes are intended.' It also names the relevant alternative (review_diff='accept') for the non-bulk case, and clarifies edge cases such as prior denied reviews and unaffected failed stories.

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.

TDQS

A4.7/5.0
Disambiguation5/5

Each tool targets a distinct concern: list vs get vs pagination, build triage vs PR changeset, diff URL vs inline pixels, single-review vs bulk-accept. The descriptions explicitly call out the differences between similar-sounding tools, so an agent can reliably choose the right one.

Naming Consistency5/5

All tool names follow a consistent lowercase verb_noun pattern: get_* for single entities, list_* for collections, and review_diff/accept_build for actions. There are no mixed conventions or vague verbs.

Tool Count5/5

Nine tools fit the visual regression review workflow well: discovery, triage, pagination, image inspection, and reviewing. Each tool fills a distinct role without redundancy, and the count is in the sweet spot for an agent to keep all tool purposes in context.

Completeness5/5

The surface covers the full review lifecycle: find builds, triage changed/failed/unchanged stories, paginate, inspect diffs as URLs or inline images, review per-diff, and bulk-accept an entire build. The PR-changeset tools also cover cross-PR questions and deletion cases that would otherwise be dead ends.

Resources