CodePanel
list_roles

list_roles

The CodePanel MCP tool that lists reviewer roles with their cost tier and suggested effort, for add_reviewer and panel recommendations.

On this page›

list_roles lists the reviewer roles you can pass to add_reviewer as role: what each one looks for, the cost tier it is suggested on and its suggested reasoning effort. Call it before add_reviewer or before passing roles to get_panel_recommendation, so you use an id CodePanel knows. It needs only the read scope.

When to call it

  • Before add_reviewer with a role. The role fills in the reviewer's name, instructions and effort, and a model is suggested on its tier.
  • Before get_panel_recommendation or apply_panel with roles. An id that is not in this list is refused.
  • To see which roles the starter panel has. isDefault: true marks them.

Inputs

Input Type Required Description

It only reads: the server marks it readOnlyHint: true, so clients that ask before a write can run it without asking.

The tool takes no inputs. The list is the same for every account.

What it returns

An array with one entry per role:

  • id: the value to pass as role or in roles.
  • name and summary: what the reviewer is called and a one-line description of what it looks for.
  • tier: the cost tier the role is suggested on: economy, balanced or frontier.
  • effort: the suggested reasoning effort.
  • isDefault: true for the roles of the starter panel.

A role only sets a new reviewer's starting point. Nothing links the reviewer to the role afterwards, so you can rename it or rewrite its instructions freely.

Examples

These responses come from a test account on a local backend.

Call
{}
Result
[
  {
    "id": "bugs-security",
    "name": "Bugs & Security",
    "summary": "Logic errors, edge cases, error handling and security holes",
    "tier": "economy",
    "effort": "medium",
    "isDefault": true
  },
  {
    "id": "tests-maintainability",
    "name": "Tests & Maintainability",
    "summary": "Missing tests, dead code, duplication and confusing names",
    "tier": "economy",
    "effort": "low",
    "isDefault": true
  },
  {
    "id": "security",
    "name": "Security",
    "summary": "A deeper security pass for sensitive code: auth, payments, secrets",
    "tier": "frontier",
    "effort": "high",
    "isDefault": false
  },
  {
    "id": "performance",
    "name": "Performance",
    "summary": "Queries in loops, missing indexes, unbounded work, extra renders",
    "tier": "balanced",
    "effort": "medium",
    "isDefault": false
  },
  {
    "id": "api-migrations",
    "name": "API & Migrations",
    "summary": "Breaking changes, schema and data migrations, compatibility",
    "tier": "balanced",
    "effort": "medium",
    "isDefault": false
  },
  {
    "id": "conventions",
    "name": "Docs & Best Practices",
    "summary": "Checks the change against the repo's docs and the official best practices",
    "tier": "economy",
    "effort": "low",
    "isDefault": true
  },
  {
    "id": "design-ux",
    "name": "Design & UX",
    "summary": "Accessibility, UI states, responsive layout and consistency with the design system",
    "tier": "economy",
    "effort": "low",
    "isDefault": true
  }
]

The same step without MCP

Surface Form
CLI codepanel panel roles, which marks the starter roles (default) (CLI)
HTTP API GET /roles

What the server tells your agent

The description your agent reads when it lists the tools:

Reviewer roles (what a reviewer looks for) with the cost tier each is suggested on. Pass an id as add_reviewer's role.

Last updated