Skip to main content
Glama

Page through a build's stories by status

list_build_stories
Read-only

Page through one build's stories filtered by status (resolved by commitSha/prNumber/buildId). Use it to read past get_build's first page, or to browse the unchanged/passed stories get_build only counts. status='changed' returns changed stories (same shape + order as get_build, regression-first, each with its comments {total, unresolved}; unresolved>0 means an open review note - read it with list_comments first); status='failed' returns failed stories; status='unchanged' returns the stories that did NOT change this build but have a baseline on this branch (storyId, viewport, browser) - fetch any of their images by storyId with get_diff or render_diff_image to confirm 'identical to baseline'. Returns { stories, nextCursor }: pass nextCursor back as cursor for the next page; null means no more. limit defaults to 25 (max 100). Unchanged is only available once the build has settled (an in-progress build has rendered nothing, so it returns an empty page).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoPage size (default 25, max 100).
cursorNoThe nextCursor from a prior page; omit for the first page.
statusYesWhich stories to page: changed, failed, or unchanged (baselined, didn't change this build).
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
storiesYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / stories / items / anyOf
      Previous value: -[
      -  {
      -    "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"
      -  },
      -  {
      -    "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"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "browser": {
      -        "type": "string"
      -      },
      -      "storyId": {
      -        "type": "string"
      -      },
      -      "viewport": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "storyId",
      -      "viewport",
      -      "browser"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "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"
      +        ]
      +      },
      +      "comments": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "total": {
      +            "type": "number"
      +          },
      +          "unresolved": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total",
      +          "unresolved"
      +        ],
      +        "type": "object"
      +      },
      +      "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",
      +      "comments"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "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"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "browser": {
      +        "type": "string"
      +      },
      +      "storyId": {
      +        "type": "string"
      +      },
      +      "viewport": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "storyId",
      +      "viewport",
      +      "browser"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "nextCursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "stories": {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "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"
      +          },
      +          {
      +            "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"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "browser": {
      +                "type": "string"
      +              },
      +              "storyId": {
      +                "type": "string"
      +              },
      +              "viewport": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "storyId",
      +              "viewport",
      +              "browser"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "stories",
      +    "nextCursor"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already signal readOnlyHint=true, and the description adds rich behavioral context: pagination via nextCursor/cursor, limit default and max, status-specific response shapes, the unresolved>0 review-note convention, and the caveat that unchanged stories only appear once the build has settled. No contradiction with annotations is present.

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?

The description is long but densely packed with behaviorally important details; the core purpose is front-loaded before the status-specific explanations. Minor redundancy such as 'status='failed' returns failed stories' keeps it from a 5, but it remains efficient relative to the tool's complexity.

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?

Given the tool's complexity, the description is complete: it covers the return shape, pagination contract, default and max page size, all three statuses, build resolution options, and the in-progress-build empty page behavior. The output schema exists, so additional return-value detail is not required.

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

Parameters5/5

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

Schema coverage is 100%, but the description goes well beyond the schema: it explains the meaning of each status value, how cursor pagination works, how limit defaults and caps, and clarifies that buildId/prNumber/commitSha are alternative resolvers. This materially helps an agent set parameters correctly.

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 ('Page through one build's stories filtered by status') and differentiates itself from get_build by noting it reads past the first page and covers statuses get_build only counts. The status values are each given concrete semantics, so an agent can select this tool without ambiguity.

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?

Explicitly says when to use it ('Use it to read past get_build's first page, or to browse the unchanged/passed stories get_build only counts') and points to sibling tools for follow-up actions: list_comments for open review notes, and get_diff or render_diff_image to fetch unchanged images. It also distinguishes between build resolution methods (commitSha/prNumber/buildId).

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