Skip to main content
Glama

List the review comments on a build's diffs or on a branch

list_comments
Read-onlyIdempotent

Review comments left on screens, each carrying its diffResultId, buildId/buildNumber and story (storyId, viewport, browser), author (human name or 'agent'), body, createdAt, and anchor - where on the candidate image it points: null (whole diff), {type:'point',x,y}, {type:'rect',x,y,w,h}, or {type:'path',points,closed}, all normalized 0..1 to the candidate image. Two ways to ask. By build (commitSha/prNumber/buildId): that build's own comments plus the open comments left on earlier builds of its branch (carried: true), because an open comment stays with its branch until someone resolves it. By branch: every open comment on that branch, whatever build it was left on. When you start or resume work on a git branch, call this with that branch (and projectId when you can reach several projects) and address each open comment from a person before you continue. A comment you left for the reviewer is omitted until a person replies in its thread; includeAgentNotes adds those.

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

Input Schema

NameRequiredDescriptionDefault
branchNoRead every open comment on this git branch instead of resolving a build.
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.
includeAgentNotesNoWith branch: also include open comments you (an agent) left that no person has replied to.

Output Schema

NameRequiredDescriptionDefault
commentsYes
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. Changed10 schema fields changed
    • addedInput schema / properties / branch
      Added value: +{
      +  "description": "Read every open comment on this git branch instead of resolving a build.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / includeAgentNotes
      Added value: +{
      +  "description": "With branch: also include open comments you (an agent) left that no person has replied to.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / comments / items / properties / browser
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / comments / items / properties / buildId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / comments / items / properties / buildNumber
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / comments / items / properties / carried
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / comments / items / properties / storyId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / comments / items / properties / viewport
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / comments / items / required
      Previous value: -[
      -  "diffResultId",
      -  "id",
      -  "authorType",
      -  "authorName",
      -  "side",
      -  "parentId",
      -  "anchor",
      -  "body",
      -  "createdAt",
      -  "resolved"
      -]New value: +[
      +  "diffResultId",
      +  "id",
      +  "authorType",
      +  "authorName",
      +  "side",
      +  "parentId",
      +  "anchor",
      +  "body",
      +  "createdAt",
      +  "resolved",
      +  "buildId",
      +  "buildNumber",
      +  "storyId",
      +  "viewport",
      +  "browser",
      +  "carried"
      +]
    • 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"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / comments / items / properties / anchor / anyOf
      Previous value: -[
      -  {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "type": {
      -            "const": "point",
      -            "type": "string"
      -          },
      -          "x": {
      -            "maximum": 1,
      -            "minimum": 0,
      -            "type": "number"
      -          },
      -          "y": {
      -            "$ref": "#/properties/comments/items/properties/anchor/anyOf/0/anyOf/0/properties/x"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "x",
      -          "y"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "h": {
      -            "exclusiveMinimum": 0,
      -            "maximum": 1,
      -            "type": "number"
      -          },
      -          "type": {
      -            "const": "rect",
      -            "type": "string"
      -          },
      -          "w": {
      -            "exclusiveMinimum": 0,
      -            "maximum": 1,
      -            "type": "number"
      -          },
      -          "x": {
      -            "$ref": "#/properties/comments/items/properties/anchor/anyOf/0/anyOf/0/properties/x"
      -          },
      -          "y": {
      -            "$ref": "#/properties/comments/items/properties/anchor/anyOf/0/anyOf/0/properties/x"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "x",
      -          "y",
      -          "w",
      -          "h"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "closed": {
      -            "type": "boolean"
      -          },
      -          "points": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "x": {
      -                  "$ref": "#/properties/comments/items/properties/anchor/anyOf/0/anyOf/0/properties/x"
      -                },
      -                "y": {
      -                  "$ref": "#/properties/comments/items/properties/anchor/anyOf/0/anyOf/0/properties/x"
      -                }
      -              },
      -              "required": [
      -                "x",
      -                "y"
      -              ],
      -              "type": "object"
      -            },
      -            "maxItems": 512,
      -            "minItems": 2,
      -            "type": "array"
      -          },
      -          "type": {
      -            "const": "path",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "points",
      -          "closed"
      -        ],
      -        "type": "object"
      -      }
      -    ]
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "type": {
      +            "const": "point",
      +            "type": "string"
      +          },
      +          "x": {
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "y": {
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "x",
      +          "y"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "h": {
      +            "exclusiveMinimum": 0,
      +            "maximum": 1,
      +            "type": "number"
      +          },
      +          "type": {
      +            "const": "rect",
      +            "type": "string"
      +          },
      +          "w": {
      +            "exclusiveMinimum": 0,
      +            "maximum": 1,
      +            "type": "number"
      +          },
      +          "x": {
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "y": {
      +            "maximum": 1,
      +            "minimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "x",
      +          "y",
      +          "w",
      +          "h"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "closed": {
      +            "type": "boolean"
      +          },
      +          "points": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "x": {
      +                  "maximum": 1,
      +                  "minimum": 0,
      +                  "type": "number"
      +                },
      +                "y": {
      +                  "maximum": 1,
      +                  "minimum": 0,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "x",
      +                "y"
      +              ],
      +              "type": "object"
      +            },
      +            "maxItems": 512,
      +            "minItems": 2,
      +            "type": "array"
      +          },
      +          "type": {
      +            "const": "path",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "points",
      +          "closed"
      +        ],
      +        "type": "object"
      +      }
      +    ]
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. 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"
      +}
  4. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/non-destructive; the description adds substantial behavior beyond that: inherited open comments on earlier builds appear with carried:true, open comments follow the branch until resolved, and agent-authored comments are suppressed until a person replies unless includeAgentNotes is set. It also documents the anchor shape variants (null, point, rect, path) and their 0..1 normalization, which annotations do not cover.

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 resource and record contents, then cleanly transitions with "Two ways to ask" and closes with an imperative action rule. The opening field enumeration is dense and partly duplicates the output schema, which keeps it from a perfect score, but every sentence still carries routing or behavioral 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 six-parameter read tool with an output schema, this covers everything an agent needs: which inputs select which mode, cross-build inheritance behavior, agent-note suppression, and what to do with the result. The returned field semantics are described as well, so nothing material is left ambiguous.

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 schema already documents each parameter, but the description adds the interaction semantics the schema omits: build identifiers resolve a build while branch switches modes, and projectId is only needed when several projects are reachable. includeAgentNotes and branch are explained consistently with the schema, though the description does not clarify precedence if both branch and buildId 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?

States a specific verb and resource ("Review comments left on screens") and enumerates the payload each record carries (diffResultId, buildId, story, author, body, createdAt, anchor). An agent can distinguish it from post_comment/resolve_comment siblings because it is unambiguously a list operation over review comments.

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 use-time guidance ("When you start or resume work on a git branch, call this with that branch") and a directive on what to do with results (address each open comment from a person before continuing). It also spells out the two mutually exclusive access modes (by build vs by branch), which is exactly the routing decision an agent must make.

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