Skip to main content
Glama

Get what this PR does to the UI vs its base branch

get_pr_changeset
Read-onlyIdempotent

The cumulative 'this PR vs base' visual changeset (resolved by commitSha/prNumber/buildId) - what the whole PR does to the UI versus the branch it merges into, INDEPENDENT of what is left to review on the latest build. Unlike get_build (this commit vs the branch's own accepted baseline), this survives in-PR accepts: a story accepted mid-PR still shows under changed with status=accepted, so it answers 'what did this PR change' even after the gate reads clean. Returns base (the branch it merges into), counts {new,changed,removed,unchanged}, and the first page of new + changed + removed stories (storyId, title, name, kind, review status, aiVerdict). removed lists stories that HAD a baseline on the base branch but are gone from this PR's head (a deletion - otherwise invisible; each carries lastBuildId, the build that rendered its now-orphaned baseline). newNextCursor / changedNextCursor / removedNextCursor page the rest with list_pr_stories. No image URLs - fetch pixels by storyId with get_diff / render_diff_image.

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

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
newYes
baseYes
noteNoPresent when this is UI Verify's demo project rather than one of yours; says how to set up your own.
countsYes
changedYes
removedYes
warningsNoWhy this build's baselines weren't picked by its branch's commits, and what fixes it.
needsBuildNoSet when UI Verify has no summary of this build yet: re-run the PR's CI job, then read it again.
newNextCursorYes
changedNextCursorYes
removedNextCursorYes
openReviewCommentsNoPresent when open review comments are waiting on some branch of this project; read yours with list_comments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / needsBuild
      Added value: +{
      +  "const": true,
      +  "description": "Set when UI Verify has no summary of this build yet: re-run the PR's CI job, then read it again.",
      +  "type": "boolean"
      +}
    • 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"
      +}
  2. 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"
      +}
  3. Changed1 schema field changed
    • addedOutput schema / properties / note
      Added value: +{
      +  "description": "Present when this is UI Verify's demo project rather than one of yours; says how to set up your own.",
      +  "type": "string"
      +}
  4. Changed5 schema fields changed
    • removedOutput schema / properties / changed / items / $ref
      Removed value: -"#/properties/new/items"
    • addedOutput schema / properties / changed / items / additionalProperties
      Added value: +false
    • addedOutput schema / properties / changed / items / properties
      Added value: +{
      +  "aiConfidence": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "aiVerdict": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "browsers": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  },
      +  "kind": {
      +    "enum": [
      +      "new",
      +      "changed"
      +    ],
      +    "type": "string"
      +  },
      +  "name": {
      +    "type": "string"
      +  },
      +  "status": {
      +    "enum": [
      +      "accepted",
      +      "denied",
      +      "ignored",
      +      "pending"
      +    ],
      +    "type": "string"
      +  },
      +  "storyId": {
      +    "type": "string"
      +  },
      +  "title": {
      +    "type": "string"
      +  },
      +  "unstable": {
      +    "type": "boolean"
      +  },
      +  "viewports": {
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": "array"
      +  }
      +}
    • addedOutput schema / properties / changed / items / required
      Added value: +[
      +  "storyId",
      +  "title",
      +  "name",
      +  "kind",
      +  "status",
      +  "browsers",
      +  "viewports",
      +  "aiVerdict",
      +  "aiConfidence",
      +  "unstable"
      +]
    • addedOutput schema / properties / changed / items / type
      Added value: +"object"
  5. 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"
      +}
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "base": {
      +      "type": "string"
      +    },
      +    "changed": {
      +      "items": {
      +        "$ref": "#/properties/new/items"
      +      },
      +      "type": "array"
      +    },
      +    "changedNextCursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "counts": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "changed": {
      +          "type": "number"
      +        },
      +        "new": {
      +          "type": "number"
      +        },
      +        "removed": {
      +          "type": "number"
      +        },
      +        "unchanged": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "new",
      +        "changed",
      +        "removed",
      +        "unchanged"
      +      ],
      +      "type": "object"
      +    },
      +    "new": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "aiConfidence": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "aiVerdict": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "browsers": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "kind": {
      +            "enum": [
      +              "new",
      +              "changed"
      +            ],
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "status": {
      +            "enum": [
      +              "accepted",
      +              "denied",
      +              "ignored",
      +              "pending"
      +            ],
      +            "type": "string"
      +          },
      +          "storyId": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "unstable": {
      +            "type": "boolean"
      +          },
      +          "viewports": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "storyId",
      +          "title",
      +          "name",
      +          "kind",
      +          "status",
      +          "browsers",
      +          "viewports",
      +          "aiVerdict",
      +          "aiConfidence",
      +          "unstable"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "newNextCursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "removed": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "browsers": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "lastBuildId": {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "storyId": {
      +            "type": "string"
      +          },
      +          "title": {
      +            "type": "string"
      +          },
      +          "viewports": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "storyId",
      +          "title",
      +          "name",
      +          "lastBuildId",
      +          "browsers",
      +          "viewports"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "removedNextCursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "base",
      +    "counts",
      +    "new",
      +    "newNextCursor",
      +    "changed",
      +    "changedNextCursor",
      +    "removed",
      +    "removedNextCursor"
      +  ],
      +  "type": "object"
      +}
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, so the description is free to add genuinely new behavior: the changeset survives in-PR accepts (accepted stories still appear under `changed` with status=accepted), and `removed` captures deletions that are otherwise invisible, each carrying lastBuildId. It also discloses that no image URLs are returned and names the cursors for paging.

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 core definition, then contrast, then return shape, then next steps — a logical order with no filler. It is dense and slightly long for a single paragraph, but each clause (base/counts/story fields, cursors, image caveat) carries information the agent needs.

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?

Despite four resolution parameters and a non-obvious lifecycle interaction (accepts mid-PR), the description covers resolution, return payload, pagination, and the pixel-fetch path. With an output schema present, it correctly avoids enumerating return structure in depth while still calling out the counts and story fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the per-parameter text is already handled. The description still adds value by grouping the three resolution keys together ('resolved by commitSha/prNumber/buildId'), signaling they are alternate ways to identify the same changeset. projectId is left to the schema, which is acceptable given its conditional wording.

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 verb+resource ('The cumulative this PR vs base visual changeset') and immediately scopes it as PR-wide rather than build-level. It explicitly contrasts with get_build ('this commit vs the branch's own accepted baseline'), so an agent can distinguish the two 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?

It states the selection condition directly: use this when asking 'what did this PR change' even after in-PR accepts make the gate read clean, and use get_build for commit-vs-baseline. It also routes follow-ups explicitly — list_pr_stories for further pages, get_diff/render_diff_image for pixels.

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