# MCP server tools

Every tool the Brizz MCP server exposes — name, what it does, required scope, and full arguments — in one page.

The complete tool reference for the Brizz MCP server. To connect your agent in the first place, see [MCP server](/docs/integrations/mcp-server/overview.md).

## How your agent finds a tool

Every Brizz tool is listed directly — there is no discovery step. Your agent
picks a tool by name from its own tool list and calls it:

```json
{ "tool": "brizz_search_sessions", "arguments": { "limit": 20 } }
```

Modern clients (Claude Code, Claude Desktop, VS Code Copilot) load tool
definitions on demand and search them by name, description, and argument
names, so a long list costs no context until a tool is actually used.

Reach for `brizz_ask_agent` only when no typed tool answers the question — open-ended diagnostics like *"why are users frustrated?"* or *"what's regressing?"*, or when someone explicitly asks for the analyst. For a known object, a filtered search, or a raw metric series, the typed tools are faster and cheaper.

Not sure where to start on an open-ended investigation? Call `brizz_list_skills` for the runbooks this server ships (diagnose a session, triage a service, analyze tool failures, chase a cost spike, reproduce a user complaint, close instrumentation gaps, tune a classification taxonomy), then `brizz_get_skill` to load one.

## All tools at a glance

All 71 tools. Tools marked **write** need the `mcp:write` scope; everything else needs `mcp:read`. A token without `mcp:write` is not shown the write tools at all. `brizz_list_intents` and `brizz_get_intent` are shown only to a tenant using the Intents page (see [User intents](#user-intents)); `brizz_list_issue_label_rules` only to a tenant with issue labeling rules turned on; and the six dashboard tools only to a tenant with custom dashboards (see [Dashboards](#dashboards)).

| Tool | What it does | Scope |
| --- | --- | --- |
| `brizz_ask_agent` | Ask the analytics agent an open-ended question. | **write** |
| `brizz_list_skills` | The investigation runbooks this server ships, with when to use each. | read |
| `brizz_get_skill` | One runbook's full step-by-step instructions. | read |
| `brizz_whoami` | The user, tenant, scopes, and visible services behind the current token. | read |
| `brizz_describe_schema` | What's filterable in this tenant: metric catalog, issue enums, intent labels (where the tenant has intent clusters), property names. | read |
| `brizz_list_services` | The monitored services for your tenant, default first. | read |
| `brizz_list_session_filters` | The fields you can filter sessions by, and the operators each accepts. | read |
| `brizz_list_custom_properties` | Service-defined property keys such as `plan_tier` or `account_id`. | read |
| `brizz_search_sessions` | Find sessions by time window, organization, or filter conditions. | read |
| `brizz_get_session` | One session's metadata by id — no transcript. | read |
| `brizz_get_conversation` | One session's full transcript: messages and tool calls. | read |
| `brizz_get_session_spans` | One session's raw OTel spans — attributes, status, timing — for deep loop/error reconstruction. | read |
| `brizz_get_conversation_item` | One conversation turn's complete content: message, tool input/result, reasoning, error detail, span attributes. | read |
| `brizz_get_session_tool_schemas` | The latest definition of each tool captured by the time of a session's calls, which may differ from what the model read. Marks an entry whose parameters were not captured. | read |
| `brizz_aggregated_data_for_sessions` | Count, average, and median duration over every session matching a filter. | read |
| `brizz_aggregate_sessions` | Grouped distribution (count or custom metrics) over sessions matching a filter, partitioned by one or more dimensions. | read |
| `brizz_aggregate_tool_calls` | Grouped distribution over individual tool calls — rank tools by call volume, or compute a per-call success rate. | read |
| `brizz_list_event_names` | The custom event names a service emits, with occurrence counts. | read |
| `brizz_get_sessions_events` | Event payloads for a set of known session ids. | read |
| `brizz_get_sessions_first_user_messages` | The opening user message for a set of known session ids. | read |
| `brizz_get_session_errors` | The errors recorded across a set of known session ids, in one query. | read |
| `brizz_search_issues` | Find issues by status, priority, severity, org, journey, or user. | read |
| `brizz_get_issue` | One issue's detail, evidence sessions, and activity log. | read |
| `brizz_investigate_issue` | The curated "Fix with your agent" handoff document — concept guidance, agent setup, whether a system prompt was captured, per-finding evidence, and windowed conversation snippets. | read |
| `brizz_get_issue_findings` | The per-finding evidence rows behind an issue: reasoning, error type, analyzer metadata, session/span pointers. | read |
| `brizz_get_issue_prompt` | The full captured system prompt(s) for an issue, one per agent. | read |
| `brizz_update_issue` | Change an issue's status, priority, assignee, or title. | **write** |
| `brizz_update_agent_run` | Report progress on a Brizz-triggered agent run back to the issue panel. | **write** |
| `brizz_report_issue_progress` | Report work on an issue you picked up yourself, and what came of it. | **write** |
| `brizz_list_issue_links` | The external links attached to an issue — pull requests, tickets, recordings — with each one's kind. | read |
| `brizz_add_issue_link` | Attach a URL to an issue, normally the pull request that fixes it. | **write** |
| `brizz_list_issue_label_rules` | The rules that label issues automatically — which Issues filters map to which label, such as `team: payments`. | read |
| `brizz_health_check` | The curated Health Center document for one service — what's broken with its instrumentation and how to fix it. | read |
| `brizz_update_health_check` | Dismiss, un-dismiss, mark fixed, un-mark fixed, or re-run one health check. | **write** |
| `brizz_query_metric` | A time-bucketed series for cost, sessions, active users, errors, or issues. | read |
| `brizz_list_organizations` | Organizations ranked by activity, with usage counters. | read |
| `brizz_get_organization_overview` | A consolidated brief for one organization, or tenant-wide. | read |
| `brizz_list_intents` | What users ask your agent for, as intents with prompt, session, user and failure counts. | read |
| `brizz_get_intent` | One intent's trend, session outcomes, and the users' own prompts. | read |
| `brizz_get_user_usage` | One user's sessions, active dates, durations, journeys, and opening prompts. | read |
| `brizz_get_agent_conversation` | Read an analyst conversation from the dashboard's Agent page, to continue it. | read |
| `brizz_continue_agent_conversation` | Start or continue an analyst conversation across turns. | **write** |
| `brizz_list_reports` | The CSV/JSON report exports a user has saved for a service. | read |
| `brizz_download_report` | One saved report's contents, inline and bounded. | read |
| `brizz_list_classifications` | The classifications configured for a service, with their labels, scope, and usage stats. | read |
| `brizz_get_classification` | One classification's full definition: labels, descriptions, scope, sampling, per-label usage. | read |
| `brizz_preview_classification` | Dry-run a label set against recent sessions and see what each would get. Saves nothing. | **write** |
| `brizz_edit_classification_labels` | Add, reword, or delete labels inside a classification. | **write** |
| `brizz_update_classification` | Rename, pause, re-scope, or retarget a classification. | **write** |
| `brizz_create_classification` | Create a new classification for one or more services. | **write** |
| `brizz_delete_classification` | Delete a classification and its bindings on every service it covers. | **write** |
| `brizz_list_dashboards` | A service's custom dashboards, and the built-in boards you can copy into one. | read |
| `brizz_get_dashboard` | One dashboard's charts and where each sits on the grid. | read |
| `brizz_list_chart_types` | What a dashboard card can be, and the fields a custom chart's query can use. | read |
| `brizz_create_dashboard` | Create a dashboard: blank, from a built-in board, or as a copy of another. | **write** |
| `brizz_edit_dashboard` | Add, update, move, resize, or remove charts; rename; roll back to a revision. | **write** |
| `brizz_delete_dashboard` | Delete a custom dashboard, its charts, and its revision history. | **write** |
| `brizz_list_cohorts` | A service's user cohorts, with their condition counts. | read |
| `brizz_get_cohort` | One cohort's conditions, and the session filter that applies it. | read |
| `brizz_list_cohort_filters` | The user fields a cohort condition can use, and the service's user custom properties. | read |
| `brizz_create_cohort` | Save a named user cohort from a set of user conditions. | **write** |
| `brizz_update_cohort` | Rename a cohort, or add, remove or replace its conditions. | **write** |
| `brizz_delete_cohort` | Delete a cohort. | **write** |
| `brizz_list_processing_rules` | A service's processing rules, each with its id, and the rule format. | read |
| `brizz_get_processing_rule` | One processing rule by its id. | read |
| `brizz_list_span_attribute_keys` | The span attribute keys a service sends, to build a rule's paths from. | read |
| `brizz_preview_processing_rule` | Try one processing rule against the last hour and see what it picks. Saves nothing. | read |
| `brizz_add_processing_rule` | Add one processing rule; the others stay as they are. | **write** |
| `brizz_update_processing_rule` | Replace one processing rule, by its id. | **write** |
| `brizz_delete_processing_rule` | Remove one processing rule, by its id. | **write** |
| `brizz_submit_feedback` | Tell the Brizz team that one of these tools got something wrong — or got it right. | read |

## Scopes

Almost every tool requires either `mcp:read` or `mcp:write`. Read tools are available to any connected token; write tools are only listed to a token that carries `mcp:write`, and are refused at call time without it.

Twenty-one tools require `mcp:write`: `brizz_update_issue`, `brizz_update_agent_run`, `brizz_report_issue_progress`, `brizz_add_issue_link`, `brizz_update_health_check`, `brizz_ask_agent`, `brizz_continue_agent_conversation`, the five that create, edit, delete, or dry-run a classification, the three that create, edit, or delete a dashboard, the three that create, update, or delete a cohort, and the three that add, update, or delete a processing rule. A read-only token never sees them in its tool list — so an agent connected read-only can browse and analyze your data but cannot change it, edit a classification taxonomy, a dashboard, a cohort or processing rules, or spend an analyst turn.

`brizz_submit_feedback` sits on the read side, but it reads none of your data — it reports on the Brizz tools themselves, so any connected token can file one.

## Service scoping

Most tools accept an optional `service_name`. Leave it out and the server resolves it for you — your configured default service, your only service, or the most recently active one. Pass it explicitly only when you want a specific one, and call `brizz_list_services` when the server reports a "multiple services" ambiguity or you want to compare across services.

## Internal users

Each service can mark some of its users internal — sessions whose custom properties (commonly `user_email` or `organization_name`) match rules you configure — and choose whether they are excluded by default. A service with no such rules has no internal users, so `exclude` and `only` are refused there with an error rather than answered: without rules the backend applies no filter, and `only` would return everyone instead of nobody. Where that default is "exclude", a session search returns nothing for an internal user, which is indistinguishable from there being no sessions at all.

If none of the services you can see define internal-user rules, the argument is not advertised at all — the five tools below list it only when at least one service visible to you has rules to apply. "Visible to you" matters when your workspace uses projects: the list is the one `brizz_list_services` returns, so a service in a project you are not a member of does not count.

Five tools take `internal_users`, set to `exclude`, `include`, or `only`. On four of them — `brizz_search_sessions`, `brizz_get_session`, `brizz_aggregated_data_for_sessions`, and `brizz_get_user_usage` — omitting it applies the service's own default. When one of those returns nothing and you did not set `internal_users`, the response says so; retry with `internal_users: "include"` before concluding there was no activity.

`brizz_aggregate_sessions` is the exception: omitting `internal_users` there counts **everyone**, because it shares a query pipeline with the dashboard's charts, which do not apply the filter. Pass `internal_users: "exclude"` to make its numbers comparable with `brizz_search_sessions` on a service that excludes by default.

Those four are the only ones that follow the service's default; they are not the only ones the filter reaches. Other session-backed reads still follow the service's default with no way to override it — the evidence sessions behind `brizz_get_issue`, for one. And some surfaces apply no internal-user filter at all, so they can report activity a session search does not: `brizz_aggregate_tool_calls`, and `brizz_search_sessions` when given an `organization_id` (which is why that argument cannot be combined with `internal_users`).

## Working with ids

Session, trace, span, issue, cluster, journey, and label ids are opaque. Pass them back verbatim — never abbreviate, truncate, or reconstruct one. They're fixed width: session and trace ids are 32 hex characters, span ids are 16, and issue/cluster/journey/label ids are 36-character UUIDs.

## Identity and schema

Two orientation tools. Both are worth calling once at the start of a session so the agent works from real values instead of guesses.

### `brizz_whoami`

Returns the identity behind the current token: user, tenant (workspace), granted scopes, and the services the token can see. Takes no arguments.

```json
{ "tool": "brizz_whoami", "arguments": {} }
```

### `brizz_describe_schema`

Describes what's available for filtering, grouping, and querying in the tenant: the metric catalog, issue priority/severity/status enums, the top intent labels where the tenant has them, available custom-property names with sample values, the resolved organization-identifier property, journeys, and example queries.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Scope custom-property samples and intents to one service. |

## Sessions and conversations

Finding conversation sessions and reading what happened inside them. The usual path is discover filters, search, then drill in:

`brizz_list_session_filters` → `brizz_search_sessions` → `brizz_get_conversation`

### `brizz_list_services`

Lists the telemetry services (apps) monitored for the tenant. Returns each service's id, name, `is_default`, `last_event_at`, `last_llm_cost_at` (the start day of its latest session with LLM cost), and `session_count_7d`, default service first. Takes no arguments.

Call this only when the server returns a "multiple services" ambiguity error, or when someone wants to compare services.

### `brizz_list_session_filters`

Lists the fields you can filter sessions by, with the operators and value shape each accepts — tool calls, user, journey, issue (`issueId`), labels (`labels`), cohorts, session metrics, intent clusters (`intentId` / `intentLabel`, where the tenant has them), and more.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Scope to one service so per-service dynamic filters (e.g. system-event values) are included. |

When a service reports its own metrics via `record_metric`, they appear here with filter type `external_metrics`. Filtering one needs that `filter_type` on the condition — the bare name is not a registered field, and `custom_properties` reads span attributes instead, a different store that can hold the same name with a different value. Aggregate the same metric with `externalMetric:<name>`; `brizz_describe_schema` lists which metrics a service reports.

```json
{
  "tool": "brizz_search_sessions",
  "arguments": {
    "filters": [
      { "field": "task_completion", "operator": "gte", "value": 0.8, "filter_type": "external_metrics" }
    ]
  }
}
```

A field that lists quantifiers takes one on its condition: `none` keeps sessions with no matching row, `all` keeps sessions whose every row matches. "Sessions with no high-severity issue" is `issueSeverity` `equals` `high` with `quantifier: "none"`, where `not_equals` would keep sessions that also had a low-severity one.

**Time relations** keep a session by when it started relative to another session of the same user or organization, its anchor. The condition is field `timeRelation`, operator `exists`, and a `relation`:

| Part | Values |
| --- | --- |
| `anchor` | Session filter conditions that mark the anchor sessions. Or `anchor_filter_id`, a saved session filter. |
| `key` | `user` or `organization`: what a session and its anchors share. |
| `which` | `first` or `last` measure every session from one anchor per key. `previous` or `next` measure each session from its nearest anchor strictly before or after it. `any` holds when any anchor falls inside the window. |
| `from`, `to` | How long after the anchor the session started: `0`, `30min`, `2h`, `7d`, `1w`, `3mo`. Negative is before the anchor. Omit one for an open end. |

Each user's first week after onboarding:

```json
{
  "tool": "brizz_search_sessions",
  "arguments": {
    "filters": [
      {
        "field": "timeRelation",
        "operator": "exists",
        "relation": {
          "anchor": [{ "field": "eventName", "operator": "equals", "value": "onboarding finished" }],
          "key": "user",
          "which": "first",
          "from": "0",
          "to": "7d"
        }
      }
    ]
  }
}
```

Add `"quantifier": "none"` to keep the sessions that are not in that first week instead.

### `brizz_list_custom_properties`

Lists the custom-property keys attached to a service's sessions — e.g. `plan_tier`, `account_id`, `environment`. These are service-defined, so the list is dynamic and paginated. Keys omit the internal `brizz.` prefix.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `limit` | integer | No | Keys per page. Default 100, max 500. |
| `offset` | integer | No | Pagination offset, default 0. The response reports the next offset when more keys remain. |

To filter by a returned key, pass it as a condition `field` to `brizz_search_sessions` with `filter_type` set to `custom_properties`. `equals` and `not_equals` take either one value or an array of up to 50 values, matched as any of or none of. Use `include`/`exclude` for an exact list of values such as IDs (case-sensitive). `contains`/`not_contains` match a case-insensitive substring, so `contains "148"` also matches `14851`.

Custom-property filters, `customProperty:<key>` groupings, and `customMetric:<key>` metrics accept a key with or without one leading `brizz.`. Use the bare key, as the tools return it.

### `brizz_search_sessions`

Searches conversation sessions for one service. Returns a paginated, sorted list with high-level metadata — no transcripts.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `organization_id` | string | No | Restrict to one organization. Uses a dedicated endpoint and **cannot be combined with `filters`**. |
| `filters` | array | No | Filter conditions, AND-ed together; an `any` entry holds when any of its own conditions holds. See the condition shape below. |
| `session_ids` | array of strings | No | Restrict the search to a known set of session ids, verbatim. Bounds content scans. Max 500. |
| `time_range` | string | No | Shorthand window like `24h`, `7d`, `30d`. Default `7d`, max `90d`. Overridden by `start`/`end`. Counts only activity wholly inside the window, so a session crossing an edge comes back cut to its in-window part or not at all, and across consecutive windows it can appear in more than one or in none: do not add counts from separate windows. Bounds are cut to whole seconds. |
| `start` | string | No | Inclusive RFC3339 start, cut to the whole second. Overrides `time_range`. |
| `end` | string | No | Inclusive RFC3339 end, cut to the whole second. Overrides `time_range`. |
| `limit` | integer | No | Default 50, max 100. |
| `offset` | integer | No | Default 0. |
| `order_by` | string | No | `start` (default), `end`, or `duration`. |
| `order_dir` | string | No | `asc` or `desc`. Default `desc`. |
| `response_format` | string | No | `concise` (default, top 10), `detailed` (up to `limit`), or `raw` (the payload as compact JSON — identical on text and structuredContent). |

#### Filter conditions

Each entry in `filters` is an object:

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `field` | string | Yes, except on an `any` entry | A field from `brizz_list_session_filters`, e.g. `toolName`, `userId`, `journeyId`. |
| `operator` | string | Yes, except on an `any` entry | An operator that field accepts, e.g. `equals`, `contains`, `contains_all`, `contains_any`, `gt`, `exists`. A custom property also takes `not_exists`. On a custom property, `exists` matches sessions with the key, even with an empty value, and `not_exists` matches sessions without it. |
| `value` | any | No | `contains_all` and `contains_any` take a comma-separated string such as `"bash,read_file"` or an array of strings. `include`/`exclude` take an array of strings; a comma-separated string is split only for custom properties, labels and `toolName`, and is read as one value elsewhere (e.g. `issueType`). `issueId`, `journeyId` and `intentId` values must be full UUIDs; pass several issue ids as an array, never a comma-separated string. A labels string is URL-decoded, so percent-encode a value holding a comma, plus or percent sign (`<labelId>:a%2C b`); an array element is one entry, trimmed but not decoded. On a custom property or event attribute, `equals`/`not_equals` and `contains`/`not_contains` take one string or an array of up to 50 strings, matched as any of or none of; `contains` remains a case-insensitive substring match, so `"148"` also matches `"14851"`. `toolName` takes `contains` the same way (`"broker_"` matches every tool whose name holds it, including tools run through a dispatcher such as `execute_tool`). For custom properties, `include`/`exclude` are exact, case-sensitive matches for a list such as IDs and take at most 1,000, and the whole filter has a size limit, so split a longer list across calls rather than across conditions. `contains`/`contains_words`/`not_contains`/`not_contains_words` take a string or array of strings. An array means any of the values, except under `contains_words` and `not_contains_words`, where it is one set of words: every word must be present, or for `not_contains_words`, sessions with every word are excluded (`["db", "error"]` is `"db error"`). Other operators take a single scalar. `toolParamKey` and `toolParamValue` take one string per condition with every operator (quote a number; a list is rejected). Ignored for `exists` and `not_exists`. |
| `filter_type` | string | No | Copied verbatim from the field's `filterType` column. Required for custom-property fields (`custom_properties`) and for tenant-reported metric fields (`external_metrics`). Omit for builtin fields. |
| `any` | array | No | An entry that holds when **any** of these conditions holds, AND-ed with the other entries. Set only `any` on such an entry. Each condition is `{field, operator, value, filter_type}` and must be a tenant-reported metric (`filter_type: external_metrics`), e.g. sessions with high frustration or low task completion. A session that never reported one of the metrics matches on the others. |

```json
{
  "tool": "brizz_search_sessions",
  "arguments": {
    "time_range": "7d",
    "limit": 20,
    "filters": [
      { "field": "toolName", "operator": "contains_any", "value": "bash,read_file" },
      { "field": "plan_tier", "operator": "equals", "value": ["enterprise", "business"], "filter_type": "custom_properties" }
    ]
  }
}
```

### `brizz_get_session`

Fetches one session by id: start/end, user, journey, model, cost, and its metric scores: Brizz-computed ones such as `session_outcome` (printed with its label, e.g. `-2 (failed)`) and the ones you report with `record_metric`, each marked by source (`brizz` or `external`). A score you report per turn comes back as one session value. No transcript.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `session_id` | string | Yes | Full session id, verbatim as returned by `brizz_search_sessions`. |

### `brizz_get_conversation`

Fetches the full transcript for one session — user and assistant messages plus tool calls. Applies the same smart-display filter as the dashboard: prefers display variants over raw items, drops internal tool-call bookkeeping, and keeps interrupts and errors. Conversation content is escaped before rendering, so adversarial session text can't inject formatting.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `session_id` | string | Yes | Full session id, verbatim. |
| `limit` | integer | No | Max turns. Default 100, max 200. |
| `offset` | integer | No | Pagination offset for long transcripts. |
| `tool_name` | string | No | Return only calls to this one tool. The whole name, case-sensitive; a call a dispatcher tool ran matches by the dispatched name too. |
| `start` | string | No | Return only items that started at or after this RFC3339 time. |
| `end` | string | No | Return only items that started before this RFC3339 time. |

`tool_name`, `start` and `end` narrow the transcript before pagination, so `limit`, `offset` and the reported total index the narrowed list. Use them to read one tool's calls, or the last day of a session that began days earlier, in a single call.

### `brizz_get_session_spans`

Returns one session's **raw spans** as structured JSON — the underlying OpenTelemetry records, not the filtered conversation items `brizz_get_conversation` returns. Each span carries its attributes (tool-call arguments and results, model metadata), status code and message, span kind, parent id, and timing. Use it when you need to reconstruct exactly what happened inside a session — a loop that never terminated, a tool that kept erroring — where the smart-display transcript drops the evidence. A span's attributes are bounded (50 keys, 2000 characters per value) in the paged listing below, so a very large tool payload may be truncated there — pass `span_id` to read one span's attributes in full instead.

Each call returns one 50-span page in ingestion order. Walk a long session by paging with `offset` (0, 50, 100, …) until the `returned` count drops below 50, and sort a page by `timestamp` to reconstruct execution sequence — ingestion order is not wall-clock order.

Note: OpenTelemetry span events, such as exception stack traces, are not included; the status code, status message, and span attributes cover most error cases.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `session_id` | string | Yes | Full session id, verbatim. |
| `offset` | integer | No | Pagination offset; page in 50-span windows until fewer than 50 come back. Ignored when `span_id` is set. |
| `span_id` | string | No | Read exactly one span instead of a page: every attribute value windowed rather than capped at 2000 characters — recovers a failing model call's full serialized request, or a tool call's exact input and output. Takes over the call; `offset`, `fields`, and `attributes` above are ignored. |
| `attribute_offset` | integer | No | Byte offset into each attribute's value, for a single-span read (`span_id` only). Distinct from `offset`, which pages spans rather than attribute bytes. |
| `max_bytes` | integer | No | Bytes of each attribute value to return, from `attribute_offset`, for a single-span read (`span_id` only). Default 20000, max 200000. |

## Session events and cohorts

These work on top of a set of sessions you've already found: quantify the cohort, or pull per-session detail for known ids.

### `brizz_aggregated_data_for_sessions`

Returns aggregate statistics over the **full** set of sessions matching a filter — session count, average duration, and median duration. Use it to answer "how many sessions match X" without fetching every row.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `filters` | array | No | Same condition shape as `brizz_search_sessions`. |
| `time_range` | string | No | Shorthand like `24h`, `7d`, `30d`. Default `7d`, max `90d`. Overridden by `start`/`end`. Counts only activity wholly inside the window, so a session crossing an edge comes back cut to its in-window part or not at all, and across consecutive windows it can appear in more than one or in none: do not add counts from separate windows. Bounds are cut to whole seconds. |
| `start` | string | No | Inclusive RFC3339 start, cut to the whole second. |
| `end` | string | No | Inclusive RFC3339 end, cut to the whole second. |

Because it aggregates server-side, the count reflects every matching session — not just the page `brizz_search_sessions` returned.

### `brizz_aggregate_sessions`

Returns a grouped distribution over the sessions matching a filter: partition by one or more dimensions and get a count — or custom metrics — per group. Use it to answer "what's the distribution of X across these sessions" (for example, count of sessions by model, scoped to an issue) in one call.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `filters` | array | No | Same condition shape as `brizz_search_sessions` — e.g. scope to an issue. |
| `group_by` | array of strings | Yes | Dimensions to partition by: `model`, `date`, `hour`, `day`, `week`, `month`, `hasError`, `toolName`, `toolFailed`, `hasToolError`, `terminalErrorClass`, `repeatedToolSignature`, `distinctToolCount`, and more. |
| `metrics` | array | No | Metric aggregations, each `{function, field, alias?}`. Defaults to session count. Functions: `count`, `sum`, `avg`, `min`, `max`, `p50`, `p90`, `p95`, `p99`. Fields: `cost`, `duration`, `durationSeconds`, `totalTokens`, `promptTokens`, `completionTokens`, `cacheReadTokens`, `cacheWriteTokens`, `spanCount`, `traceCount`, `task_completion_v2`, `satisfaction_positive_rate`, `satisfaction_negative_rate`, `session_completion_rate`, `session_failure_rate`, `customMetric:<key>`, `externalMetric:<key>`, or `*` for count. |
| `having` | array | No | Post-aggregation filters on a metric alias, each `{metric, operator, value}`. Operators: `gt`, `gte`, `lt`, `lte`, `equals`. |
| `order_by` | string | No | Metric alias or group dimension to sort by. Defaults to the session count. |
| `order_dir` | string | No | `asc` or `desc`. Default `desc`. |
| `limit` | integer | No | Max groups. Default 100, max 1000. |
| `offset` | integer | No | Groups of the ordered result to skip: the `next_page.offset` of the previous call. Pass that call's `next_page.start` and `end` too, so every page reads the same window. |
| `time_range` | string | No | Shorthand like `24h`, `7d`, `30d`. Default `7d`, max `90d`. Overridden by `start`/`end`. Counts only activity wholly inside the window, so a session crossing an edge comes back cut to its in-window part or not at all, and across consecutive windows it can appear in more than one or in none: do not add counts from separate windows. Bounds are cut to whole seconds. |
| `start` | string | No | Inclusive RFC3339 start, cut to the whole second. |
| `end` | string | No | Inclusive RFC3339 end, cut to the whole second. |

It aggregates server-side, so it answers "distribution across all matching sessions" without paging through rows. Example: count sessions by model within one issue.

```json
{
  "tool": "brizz_aggregate_sessions",
  "arguments": {
    "group_by": ["model"],
    "filters": [{ "field": "issueId", "operator": "equals", "value": "<issueId>" }]
  }
}
```

Returns `columns` (the group-by dimensions, then the metric aliases) and `rows`, one array of values per group, plus `total_groups`: every group the query produced, not only this page's. When more groups remain, `next_page` gives the `offset`, `start` and `end` to call again with; a total of more than 100,000 groups reads `total_groups_at_least`, and groups past that are not reachable by offset — narrow the question instead. `brizz_aggregate_tool_calls` returns the same shape.

Every row counts **sessions**, so a session that called one tool five times counts once. To count the calls themselves, use `brizz_aggregate_tool_calls`.

`customMetric:<key>` and `externalMetric:<key>` read different stores and neither falls back to the other. `customMetric:` extracts a numeric value from a custom property on the session's spans; `externalMetric:` reads a metric the tenant reported with `record_metric`. The same key can exist in both with different values, so picking the wrong one returns a plausible number or no number at all. `brizz_describe_schema` lists the external metrics for a service, marked `source: external`.

For a per-tool failure rate, group by `toolName` and `toolFailed` — `toolFailed` says whether *that* tool failed in that session. `hasToolError` is session-wide ("failed at something, anywhere"), so `["toolName", "hasToolError"]` answers the different question "sessions that called X **and** failed at anything" and overcounts X's failures.

A tool run through a dispatcher tool (such as `execute_tool`) counts under both names per session, and per call in `brizz_aggregate_tool_calls` under the dispatcher's name, unless the tool's own span reported a failure, which also counts as a call of the tool. Its `toolFailed` is the dispatcher's outcome.

### `brizz_aggregate_tool_calls`

The per-call counterpart to `brizz_aggregate_sessions`: it returns a grouped distribution over **individual tool calls**. Use it to rank an agent's tools by call volume, compute a real per-call success or error rate, or reconcile a tool-call count with another system.

Each call counts once: the tool's execution when Brizz has it, otherwise the model's request, which has no duration or outcome.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `filters` | array | No | Conditions on `toolName`, `toolOutcome`, `errorCategory`, `agentName`, `callType`, `sessionId`, `skillKey`, `durationSeconds`. Operators: `equals`, `not_equals`, `contains`, `not_contains`, plus `gt`, `gte`, `lt`, `lte` on `durationSeconds`. Omit `filter_type` or set it to `tool_calls` for these; set it to `custom_properties` to filter on a custom property key, matched on the call's own value or, when the call has none, the value its session set outside its LLM calls. `unknown` is a group-by bucket, not a stored value, so filtering for it matches nothing. A custom property also takes `exists` (no value), `include` and `exclude` (an array or a comma-separated string), and `gt` to `lte` when its values are numeric; `equals` and `not_equals` accept an array. |
| `group_by` | array of strings | Yes | Dimensions to partition by. Time: `date`, `hour`, `day`, `week`, `month`, `days:N`. Call: `toolName`, `toolOutcome`, `errorCategory`, `agentName`, `callType`, `skillKey`. Dynamic: `customProperty:<key>`, the call's own value or, when the call has none, the value its session set outside its LLM calls. `sessionId` is filter-only. |
| `metrics` | array | No | Each `{function, field, alias?}`. Defaults to a call count. Fields: `*` (count), `duration` (nanoseconds), `durationSeconds`. `toolCount` takes function `distinct` and returns distinct tool names. |
| `having` | array | No | Post-aggregation filters on a metric alias, each `{metric, operator, value}`. |
| `order_by` | string | No | Metric alias or group dimension. Defaults to the call count. |
| `order_dir` | string | No | `asc` or `desc`. Default `desc`. |
| `limit` | integer | No | Max groups. Default 100, max 1000. |
| `offset` | integer | No | Groups of the ordered result to skip: the `next_page.offset` of the previous call. Pass that call's `next_page.start` and `end` too. |
| `time_range` | string | No | Shorthand like `24h`, `7d`, `30d`. Default `7d`, max `90d`. Overridden by `start`/`end`. |
| `start` | string | No | Inclusive RFC3339 start. |
| `end` | string | No | Exclusive RFC3339 end. |

Grouped by `toolOutcome` you get three buckets: `success`, `error`, and `unknown` — the last meaning the SDK emitted no outcome marker. Treat `unknown` as unmeasured rather than folding it into either side.

`unknown` is a **group-by bucket only**, synthesized from an empty stored value. As a *filter* value it matches nothing and returns zero rows without an error, so filter on `success` or `error` and read the `unknown` share off a group-by instead.

```json
{
  "tool": "brizz_aggregate_tool_calls",
  "arguments": {
    "group_by": ["toolName", "toolOutcome"],
    "time_range": "30d"
  }
}
```

This ranks and counts. To read the actual failure messages behind a slice, take the sessions behind it (`brizz_search_sessions` with a `toolName` filter) into `brizz_get_session_errors`.

Note a detection change on 2026-07-27: tool errors recorded before that date are substantially under-counted, so a window straddling it shows a jump that reflects improved detection, not a regression.

### `brizz_list_event_names`

Lists the event names a service emits — custom signals like onboarding, integration, or feedback events — with occurrence counts.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `limit` | integer | No | Default 100, max 500. |

### `brizz_get_sessions_events`

Fetches named event payloads for a set of known session ids. Returns a map of session id to `{event_name: latest_payload}`.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `session_ids` | array of strings | Yes | Session ids, verbatim. Must not be empty. |
| `event_names` | array of strings | No | Specific names from `brizz_list_event_names`. Pass `["*"]` or omit for all events. |

```json
{
  "tool": "brizz_get_sessions_events",
  "arguments": {
    "session_ids": ["3023b8d4917218792959925606c29f37"],
    "event_names": ["feedback"]
  }
}
```

### `brizz_get_sessions_first_user_messages`

Fetches the opening user message for a set of known session ids. Returns a map of session id to message text.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `session_ids` | array of strings | Yes | Session ids, verbatim. Must contain 1–50 ids; split larger cohorts across calls. |

### `brizz_get_session_errors`

Fetches every error recorded across a set of known session ids — up to 50 per call, in one query. Use it to check whether a cohort shares a failure instead of pulling each session's transcript; one call costs about what a single `brizz_get_conversation` fetch does.

Two surfaces carry a failure, and they barely overlap, so both are returned and tagged with `source`:

- `error_item` — a standalone error recorded on the session.
- `tool_call` — a tool call whose outcome was an error.

Each error carries its type, category, message, stacktrace, span name, and the tool names called just before it (`preceding_tools`). Sessions with no errors come back listed as checked-and-clean, so "clean" never reads as "not checked". With `start`/`end`, clean means no errors inside that window. Ids with no spans in the service come back separately as not found (`not_found`), whatever `start`/`end` you pass.

Two flags mark what a response cannot tell you, rather than letting an absence stand in for an answer:

- `truncated` — the session ran past the per-session cap. It has further errors, and `preceding_tools` may be incomplete, so an empty list here does not mean nothing preceded the failure. Narrow the window or read the session directly.
- `no_detail_recorded` — the failure is real but no error text was stored for it. Failed tool calls from before Brizz recorded tool exceptions separately look like this.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `session_ids` | array of strings | Yes | Session ids, verbatim. 1–50 per call. |
| `start` | string | No | RFC3339. The time window is the only thing that narrows this scan — pass it whenever you have one. |
| `end` | string | No | RFC3339. |
| `offset` | integer | No | Byte offset into each message and stacktrace, for paging a long value. |
| `max_bytes` | integer | No | Bytes of each message and stacktrace to return (default 2000, max 200000). |

For one session's failures in full turn context, use `brizz_get_conversation` with `filter: "errors"` instead.

## Issues

Issues are aggregated quality problems detected across sessions. These tools mirror the dashboard's Issues page.

### `brizz_search_issues`

Searches issues for a service with the same filters available in the dashboard. Returns issues ranked by priority.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `search` | string | No | Free-text across issue titles and descriptions. |
| `organization_id` | string | No | Restrict to one organization. |
| `journey_id` | string | No | Restrict to one journey. |
| `user_id` | string | No | Restrict to one end-user. |
| `intent_action` | string | No | Only issues on sessions where one user turn had this intent action, as `brizz_list_intents` names it. Shown only to a tenant using the Intents page. |
| `intent_object` | string | No | Same, for the intent object. With `intent_action` and `intent_prompt_type`, all must match the same turn. |
| `intent_prompt_type` | string | No | `request`, `question`, `complaint`, or `reply`. |
| `status` | array of strings | No | One or more of `open`, `tracked`, `ignored`, `resolved`, `saved`. |
| `priorities` | array of strings | No | `critical`, `high`, `medium`, `low`. |
| `severity_levels` | array of strings | No | Filter by severity level. |
| `time_range` | string | No | Shorthand like `7d`, `30d`. Default `7d`, max `90d`. |
| `start` | string | No | Inclusive RFC3339 start. |
| `end` | string | No | Exclusive RFC3339 end. |
| `order_by` | string | No | Sort field, e.g. `priority_score`, `last_seen`, `session_count`. |
| `order_dir` | string | No | `asc` or `desc`. |
| `limit` | integer | No | Default 50, max 100. |
| `offset` | integer | No | Pagination offset. |
| `response_format` | string | No | `concise` (default, top 10), `detailed`, or `raw`. |

### `brizz_get_issue`

Fetches one issue's full detail: metadata, the evidence sessions where it was detected, and the activity log when available.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `issue_id` | string | Yes | Full issue id, verbatim as returned by `brizz_search_issues`. |

From here you can follow an evidence session into `brizz_get_conversation` to see what actually happened.

### `brizz_investigate_issue`

The curated "Fix with your agent" handoff document for one issue: concept guidance for its issue type, the agent's setup (model, params, tools), whether a system prompt was captured (the text itself is not inline — `brizz_get_issue_prompt` returns it), per-finding evidence, conversation snippets windowed around the flagged turns, and a follow-up funnel phrased as `brizz_*` tool calls. A shortcut for starting from one curated document rather than assembling the picture read by read; it is one heavy read, so fall back to the individual issue, finding and conversation reads if it fails.

The returned markdown is the whole answer and is not truncated by the server: the export applies its own ~40,000-character budget with truncation footnotes and reports the true size in `char_count`, so treat it as self-bounding rather than a capped preview.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `issue_id` | string | Yes | Full issue id, verbatim as returned by `brizz_search_issues`. |
| `notes` | string | No | Free-text context to steer the investigation — a user complaint, a hypothesis, what you already ruled out. Max 4000 characters. |

```json
{
  "tool": "brizz_investigate_issue",
  "arguments": {
    "issue_id": "550e8400-e29b-41d4-a716-446655440000",
    "notes": "the user says checkout silently fails on the last step"
  }
}
```

Drill into what it points at with `brizz_get_issue_findings` (more evidence rows) and `brizz_get_issue_prompt` (the full captured system prompt).

### `brizz_get_issue_findings`

The per-finding evidence rows behind one issue: reasoning, error type, analyzer metadata, and session/span pointers.

- `brizz_investigate_issue` truncates each finding to 2000 characters and points here for more detail.
- `brizz_get_issue_findings` renders a Markdown table in `content[0].text`, where each Reasoning cell is shortened to the first line and 120 characters.
- `brizz_get_issue_findings` also returns `structuredContent.findings[].reasoning`, which preserves the full reasoning and is referenced by a note below the table whenever the rendered cell is shortened.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `issue_id` | string | Yes | Full issue id, verbatim. |
| `error_type` | string | No | Restrict to findings tagged with exactly this error type. One value only. |
| `search` | string | No | Substring match against a finding's `description` field. |
| `session_id` | string | No | Restrict to findings from one session id. |
| `limit` | integer | No | Default 50, max 50 — a page this size stays inside the response budget for all but the densest issues; page the rest with `offset`. |
| `offset` | integer | No | Pagination offset. |
| `response_format` | string | No | `concise` (default, top 10), `detailed`, or `raw`. |
| `fields` | array of strings | No | Only these keys on each finding in the structured payload. `finding_id` is always included. Unknown names are reported in `_warnings`, not rejected. |

Pass `fields` on the first call rather than after a truncated one. Each finding's `metadata` is typically about two thirds of the response's bytes, so asking for only the columns you need — say `["session_id", "reasoning", "error_type"]` — usually keeps a dense issue inside the byte budget instead of shedding. `metadata` is also the first thing dropped when a page does exceed the budget; a narrower `fields`, a smaller `limit`, or an added filter brings it back.

### `brizz_get_issue_prompt`

The full captured system prompt(s) for one issue, one entry per agent — the root agent first, then agents owning a finding (alphabetical), then every other agent (alphabetical); an unnamed subagent renders as "Subagent" — nothing else on this server returns system-prompt text. A prompt commonly runs to tens of thousands of characters, so this tool windows it explicitly rather than truncating it silently: each entry reports `{text, length, offset, truncated}`, exactly like `brizz_get_conversation_item`, and you page the rest by re-calling with a larger `offset`.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `issue_id` | string | Yes | Full issue id, verbatim. |
| `agent_name` | string | No | Restrict to one agent's prompt instead of the whole roster — match a previous call's `agent_name`, or `"root"` for the root agent. |
| `offset` | integer | No | Byte offset into each agent's prompt text. |
| `max_bytes` | integer | No | Bytes of each prompt to return, from `offset`. Default 20000, max 200000. |

Errors clearly when the issue never captured a system prompt, or captured one that came back empty. Paging an individual prompt's `offset` past its true length returns an explicit `offset_past_end` marker rather than a blank result.

### `brizz_update_issue`

Mutates one or more fields on an existing issue. Applies whichever fields are provided and skips the rest. **Partial success is reported** — a failure on one field does not abort the others. Requires `mcp:write`.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `issue_id` | string | Yes | Issue to update. |
| `status` | string | No | `open`, `tracked`, `ignored`, `resolved`, or `saved` (saved for later). |
| `save_for_days` | integer | No | With `saved`: days (1–365) until the issue comes back to the status it was saved from (`open` or `tracked`). |
| `wake_on_escalation` | boolean | No | With `saved`: bring the issue back once it starts escalating. With neither this nor `save_for_days`, it stays saved until changed. |
| `priority` | string | No | `critical`, `high`, `medium`, or `low`. |
| `assignee_id` | string | No | User UUID of the new assignee, who must be a tenant member. |
| `unassign` | boolean | No | Set true to clear the assignee. Mutually exclusive with `assignee_id`. |
| `title` | string | No | New title, 1–500 characters. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. |

```json
{
  "tool": "brizz_update_issue",
  "arguments": {
    "issue_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "tracked",
    "priority": "high"
  }
}
```

### `brizz_update_agent_run`

Reports progress on a run that Brizz triggered against your own coding agent. The run id arrives in the prompt that started you — never guess one. Call it with `running` and a message as you work, then once more with `succeeded` (setting `result_url` to your pull request) or `failed`. Each message is appended to the run's timeline in the issue panel. Requires `mcp:write`.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `run_id` | string | Yes | The run id from the prompt that triggered you. |
| `status` | string | No | `queued`, `running`, `succeeded`, or `failed`. |
| `message` | string | No | What you just did and what came of it, up to 2000 characters. A few sentences is normal. |
| `result_url` | string | No | Link to what you produced, normally the pull request. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. |

```json
{
  "tool": "brizz_update_agent_run",
  "arguments": {
    "run_id": "550e8400-e29b-41d4-a716-446655440000",
    "status": "succeeded",
    "message": "Opened a PR fixing the missing pricing tier lookup",
    "result_url": "https://github.com/acme/agent/pull/412"
  }
}
```

### `brizz_report_issue_progress`

Reports work on an issue you found yourself — from `brizz_search_issues`, a scheduled sweep, or anything else that wasn't the Brizz issue panel handing it to you. The first call opens a work session on the issue and it appears in the issue panel as an agent working on it; call it again with a `message` as you go, then once more with `outcome` set to `succeeded` (setting `result_url` to your pull request) or `failed`. Requires `mcp:write`.

`agent_name` is the session's identity, not a label on it: keep it identical across every call for one piece of work, or each distinct name opens its own session. Both the session and its conclusion are recorded permanently in the issue's activity feed, so the work stays visible after the run card has moved on to something newer.

Two doors, one key each. If the prompt that started you carried a `run_id`, Brizz triggered you and you are already in a session — use `brizz_update_agent_run` with that id instead of this tool.

This tool needs only a `mcp:write` API key. It is deliberately not behind the **Connect your own agent** setting (`external_agent_enabled`) — that setting governs registering your own endpoints and having Brizz hand an issue to them, which reporting work you already did is not. An agent connected over MCP can report on any issue it can read.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `issue_id` | string | Yes | The issue you are working on. |
| `agent_name` | string | Yes | Your own name as it should read in the issue panel, up to 80 characters. Keep it stable across calls. |
| `message` | string | No | What you just did and what came of it, up to 2000 characters. A few sentences is normal. |
| `outcome` | string | No | Omit while still working. `succeeded` or `failed` closes the session. |
| `result_url` | string | No | Link to what you produced, normally the pull request. |
| `service_name` | string | No | Defaults to the resolved service. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. |

```json
{
  "tool": "brizz_report_issue_progress",
  "arguments": {
    "issue_id": "8f14e45f-ceea-467a-9a1b-2e1c5f5d90ab",
    "agent_name": "Nightly Fixer",
    "message": "Opened a PR fixing the missing pricing tier lookup",
    "outcome": "succeeded",
    "result_url": "https://github.com/acme/agent/pull/412"
  }
}
```

### `brizz_list_issue_links`

The external links already attached to an issue — pull requests, tickets, session recordings — with each one's kind and when it was added. Use it before attaching a fix to see whether someone already linked one.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `issue_id` | string | Yes | The issue whose links to list. |
| `service_name` | string | No | Defaults to the resolved service. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. |

The structured payload carries `links` (the full link records, including `link_id`, `link_type` and `created_by`), `count`, `issue_id`, `service_name` and `dashboard_url`.

```json
{ "tool": "brizz_list_issue_links", "arguments": { "issue_id": "8f14e45f-ceea-467a-9a1b-2e1c5f5d90ab" } }
```

### `brizz_add_issue_link`

Attaches a URL to an issue — normally the pull request you just opened to fix it — so the work is reachable from the issue panel. Requires `mcp:write`.

Pass a `title`. Without one Brizz labels the link from its kind alone, so every GitHub link on an issue reads identically and a reader cannot tell two pull requests apart. The kind itself (`github`, `jira`, `linear`, `monday`, …) is derived from the URL server-side — there is no argument for it.

Calling it again with a URL already on the issue returns the existing link and reports `already_linked: true` rather than attaching a second copy. Two URLs count as the same link when they differ only in scheme/host casing, a trailing slash, or a fragment; a differing query string or path casing is a different link. The check is best-effort — it reads the issue's links first, so two concurrent calls can still both write.

**Attaching a link moves an untracked issue to `tracked`** and records the link in the issue's activity feed. That is the same behaviour as adding a link from the dashboard, and it happens for any link type.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `issue_id` | string | Yes | The issue to attach the link to. |
| `url` | string | Yes | An `http` or `https` URL, up to 2048 characters. |
| `title` | string | No | Label for the link in the issue panel, up to 200 characters. Supply one. |
| `service_name` | string | No | Defaults to the resolved service. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. |

```json
{
  "tool": "brizz_add_issue_link",
  "arguments": {
    "issue_id": "8f14e45f-ceea-467a-9a1b-2e1c5f5d90ab",
    "url": "https://github.com/acme/agent/pull/412",
    "title": "Fix the missing pricing tier lookup (#412)"
  }
}
```

### `brizz_list_issue_label_rules`

The issue labeling rules that apply to a service: each one labels every issue matching its Issues-page filters with one label and value — for example, every issue involving the `search_orders` tool gets `team: payments`. Use it to see which team owns which issues, or why an issue carries a label. Rules covering every service are included. Shown only to a tenant with issue labeling rules turned on.

A rule labels the issues it matches when it is saved, and keeps following them: within about 20 minutes an issue that comes to match gets the label, and one that stops matching loses it. A label someone removed from an issue by hand is not put back.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. `raw` adds the rules' stored filter conditions. |

```json
{ "tool": "brizz_list_issue_label_rules", "arguments": { "service_name": "support-agent" } }
```

## Health Center

Health Center checks your instrumentation itself — missing session ids, no user identity, tool calls that never got spans — the way the dashboard's Health Center page does.

### `brizz_health_check`

The curated Health Center document for one service: every check in the catalog, what the last sweep found, its evidence, and how to fix it.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `notes` | string | No | Free-text context to steer the write-up — a recent deploy, a hypothesis about what broke. Max 4000 characters. |

The returned markdown is the whole answer and is not truncated by the server. The structured payload also carries `problem_count` (checks something is actually broken), `setup_count` (capability never wired up, excluded from `problem_count`), `check_count`, `no_recent_traffic`, and `dashboard_url`. Both counts exclude anything already dismissed or marked fixed.

```json
{ "tool": "brizz_health_check", "arguments": { "notes": "we shipped a new SDK version last night" } }
```

### `brizz_update_health_check`

Acts on one health check, or triggers a fresh sweep. Requires `mcp:write`.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `action` | string | Yes | `run`, `dismiss`, `undismiss`, `fixed`, or `unfixed`. |
| `check_id` | string | Required for every action but `run` | The check's id, from the document `brizz_health_check` returns. |

`run` recomputes every check now and needs no `check_id` — use it right after confirming a fix deployed. `dismiss`/`undismiss` mark a check as an intentional choice rather than a problem, holding until the check passes on its own. `fixed`/`unfixed` record a claim that the cause is gone; unlike a dismissal, it is undone automatically the moment the problem recurs.

```json
{
  "tool": "brizz_update_health_check",
  "arguments": { "check_id": "no_turn_context", "action": "fixed" }
}
```

## Metrics

### `brizz_query_metric`

Returns the raw time-bucketed series for **one** activity metric, one row per bucket. Use it when you need the underlying series itself — to plot a chart, sum a total, or feed a calculation.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `metric` | string | Yes | One of `cost`, `sessions`, `active_users`, `errors`, `issues`. |
| `time_range` | string | No | Shorthand like `24h`, `7d`, `30d`. Default `7d`, max `90d`. |
| `start` | string | No | Inclusive RFC3339 start. |
| `end` | string | No | Exclusive RFC3339 end. |
| `granularity` | string | No | Bucket size: `hour` or `day`. The backend picks a heuristic default if omitted. |
| `organization_id` | string | No | Scope the metric to one organization. |

The result carries the metric name, service, `from`/`to` bounds, a `unit`, and a `points` array of `{timestamp, value}`.

```json
{
  "tool": "brizz_query_metric",
  "arguments": { "metric": "cost", "time_range": "30d", "granularity": "day" }
}
```

## Organizations

Organizations are your end-customers.

### `brizz_list_organizations`

Lists organizations for one service, ranked by activity. Returns a paginated list with usage counters — sessions, users, issues, cost — and lifecycle status.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `search` | string | No | Free-text across org name and id. |
| `time_range` | string | No | Shorthand like `7d`, `30d`. Default `7d`, max `90d`. Overridden by `start`/`end`. |
| `start` | string | No | Inclusive RFC3339 start. |
| `end` | string | No | Exclusive RFC3339 end. |
| `limit` | integer | No | Default 50, max 100. |
| `offset` | integer | No | Pagination offset. |
| `order_by` | string | No | `lastSeen` (default), `sessionCount`, `userCount`, `totalCostUSD`, `issueCount`, or `activity`. |
| `order_dir` | string | No | `asc` or `desc`. Default `desc`. |

### `brizz_get_organization_overview`

The headline analytics surface. Behaviour depends on whether you pass `organization`:

- **With `organization`** — a single-organization brief: usage counters, quality metrics, top users, top journeys, top issues, and recent sessions, mirroring the dashboard's organization details drawer.
- **Without `organization`** — a tenant-wide overview: top organizations by activity, global totals, and pointers to drill into specifics.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `organization` | string | No | Organization id, exact name, fuzzy name, or domain. Omit for the tenant-wide overview. |
| `time_range` | string | No | Shorthand like `7d`, `30d`. Default `7d`. |
| `start` | string | No | Inclusive RFC3339 start. |
| `end` | string | No | Exclusive RFC3339 end. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. |

Because `organization` accepts a fuzzy name, multiple matches are possible. In that case the response comes back with `status: ambiguous` and a candidate list so you can pick the right id and call again.

## User intents

Each user turn is read as a prompt type (`request`, `question`, `complaint`, or `reply`), an action and an object — so "analyze the attached file" is `request · analyze · file`. An intent is one such triple, and these tools read the same data as the dashboard's Intents page.

Both tools are shown only to a tenant using that Intents page. For every other tenant they are left out of the tool list and refused if called by name. For a tenant that has them, `brizz_search_issues` also takes `intent_action`, `intent_object` and `intent_prompt_type`, to go from an intent to its issues. For a tenant that has them, the intent-cluster fields (`intentLabel`, `intentId`, `intentPrompt`, `intentCount`) are refused in session filters and group-bys, and `brizz_describe_schema` leaves out intent labels.

### `brizz_list_intents`

Lists intents for one service, most common first. Each row carries an example prompt, the prompts, sessions, users and organizations it covers, the share of its scored sessions that ended failed, its open issues, and a dashboard link. The header gives totals, the count per prompt type, and the most common actions, objects and typed modifiers (target, location, condition, constraint).

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `time_range` | string | No | Shorthand like `7d`, `30d`. Default `7d`. Overridden by `start`/`end`. |
| `start` | string | No | Inclusive RFC3339 start. |
| `end` | string | No | Exclusive RFC3339 end. |
| `prompt_type` | string | No | `request`, `question`, `complaint`, or `reply`. |
| `action` | string | No | Only intents with this action. |
| `object` | string | No | Only intents with this object. |
| `target` | string | No | Only prompts whose target (what it should become) matches this value. |
| `location` | string | No | Only prompts whose location (where in the product) matches this value. |
| `condition` | string | No | Only prompts whose condition (which items or when) matches this value. |
| `constraint` | string | No | Only prompts whose constraint (how the assistant must work or what the output looks like) matches this value. |
| `label` | string | No | Only intents whose sessions most often carry this classification label. |
| `group_by` | string | No | `group` (default) merges actions and objects that mean the same thing; `raw` keeps every wording apart. |
| `sort` | string | No | `prompts` (default), `sessions`, `users`, or `orgs`. |
| `limit` | integer | No | Default 20, max 50. |
| `response_format` | string | No | `concise` (default), `detailed`, or `raw`. |

### `brizz_get_intent`

Reads one intent: its daily prompt count and the change from the previous window, how its sessions ended and how satisfied its users were, and the distinct prompts behind it — most repeated first, each with a session id and any open issue.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `prompt_type` | string | Yes | From a `brizz_list_intents` row. |
| `action` | string | Yes | From a `brizz_list_intents` row. |
| `object` | string | No | From a `brizz_list_intents` row. Empty matches every object of the action. |
| `service_name` | string | No | Defaults to the resolved service. |
| `group_by` | string | No | The mode the row came from: `group` (default) or `raw`. |
| `time_range` | string | No | Shorthand like `7d`, `30d`. Default `7d`. Overridden by `start`/`end`. |
| `start` | string | No | Inclusive RFC3339 start. |
| `end` | string | No | Exclusive RFC3339 end. |
| `limit` | integer | No | Distinct prompts to return. Default 10, max 50. |
| `offset` | integer | No | Prompt pagination offset. |
| `response_format` | string | No | `concise` (default) or `raw`. |

## User usage

### `brizz_get_user_usage`

Fetches a usage rollup for a single end-user: total session count, first and last active dates, average and median session duration, the journeys they engaged with and how many times, and a deduplicated list of their opening prompts.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `service_name` | string | No | Defaults to the resolved service. |
| `filters` | array | **Yes** | One or more conditions identifying the user. Same condition shape as `brizz_search_sessions`. |
| `time_range` | string | No | Shorthand like `24h`, `7d`, `30d`. Default `30d`, max `90d`. Overridden by `start`/`end`. Counts only activity wholly inside the window, so a session crossing an edge comes back cut to its in-window part or not at all, and across consecutive windows it can appear in more than one or in none: do not add counts from separate windows. Bounds are cut to whole seconds. |
| `start` | string | No | Inclusive RFC3339 start, cut to the whole second. |
| `end` | string | No | Inclusive RFC3339 end, cut to the whole second. |

Unlike most tools here, `filters` is required — it's how you say which user you mean.

```json
{
  "tool": "brizz_get_user_usage",
  "arguments": {
    "filters": [{ "field": "userId", "operator": "equals", "value": "u-123" }]
  }
}
```

Or by a custom property such as email — note the `filter_type`:

```json
{
  "filters": [
    {
      "field": "email",
      "operator": "equals",
      "value": "x@example.com",
      "filter_type": "custom_properties"
    }
  ]
}
```

Call `brizz_list_session_filters` first to find the correct field name for your service — user identity is instrumented differently across services. Note the default window here is `30d`, wider than the `7d` used by most other tools.

## Analytics agent

The analytics agent answers questions no single typed tool can. It runs a full agent turn on the Brizz side, so it costs more and takes longer than a typed tool.

Good reasons to use it: open-ended diagnostics like *"why are users frustrated?"* or *"what's regressing this week?"*, questions needing cross-tool orchestration, or when someone explicitly asks for the analyst. Bad reasons: fetching a known object, running a filtered search, or pulling a metric series.

### `brizz_ask_agent`

Sends a single question and returns the analyst's answer. Requires `mcp:write`; without that scope, the tool is omitted from `tools/list` and direct calls are rejected.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `message` | string | Yes | The natural-language question. |
| `service_id` | string | No | Service UUID. Omit to use the resolved default service. |
| `service_name` | string | No | Service slug. Omit to use the resolved default service. |

Any id you reference in `message` must be passed in full and verbatim as a tool returned it. Ids are fixed width: session and trace ids are 32 hex characters (e.g. `3023b8d4917218792959925606c29f37`), span ids are 16, and issue/cluster/journey/label ids are 36-character UUIDs (e.g. `550e8400-e29b-41d4-a716-446655440000`).

```json
{
  "tool": "brizz_ask_agent",
  "arguments": { "message": "Why did cost spike last Tuesday?" }
}
```

### `brizz_get_agent_conversation`

Reads an analyst conversation someone started on the dashboard's **Agent** page, so your agent can pick it up where it left off with `brizz_continue_agent_conversation`. The id is the `?conversation=` value in the Agent page URL. This is not a customer session — for those, use `brizz_get_conversation`. Requires `mcp:read`. You can read your own conversations; continuing one also needs `mcp:write` and works only on a conversation you started.

Returns the newest 50 messages, oldest first: each user message, each analyst answer with its entity references rendered as dashboard links, the clarifying question when the analyst paused to ask one, and the tools each answer used. Each message body is capped at 4000 characters.

Only the person who started the conversation can read it, and only while connected to the tenant it was created in. A conversation in another tenant reads as not found — reconnect Brizz MCP to that tenant.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `conversation_id` | string | Yes | The 36-character conversation UUID. |

```json
{
  "tool": "brizz_get_agent_conversation",
  "arguments": { "conversation_id": "550e8400-e29b-41d4-a716-446655440000" }
}
```

### `brizz_continue_agent_conversation`

Holds a multi-turn conversation with the analyst, so context carries across messages. Requires `mcp:write`. Use it when the question is likely to need clarification or chained follow-ups; for a one-shot question, `brizz_ask_agent` is simpler.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `method` | string | Yes | `start` to open a new conversation, `send` to post a follow-up. |
| `service_id` | string | No | Service UUID, for `method=start`. Ignored for `send`. |
| `service_name` | string | No | Service slug, for `method=start`. Ignored for `send`. |
| `title` | string | No | Optional title, for `method=start`. |
| `conversation_id` | string | Required for `send` | The conversation to continue. |
| `message` | string | Required for `send` | Follow-up message text. |

```json
{
  "tool": "brizz_continue_agent_conversation",
  "arguments": { "method": "start", "title": "Cost investigation" }
}
```

Then follow up with the returned id:

```json
{
  "tool": "brizz_continue_agent_conversation",
  "arguments": {
    "method": "send",
    "conversation_id": "<id from start>",
    "message": "Break that down by organization."
  }
}
```

## Dashboards

These tools build and rearrange custom dashboards — the same boards the dashboard's Dashboards page shows. An agent can copy a built-in board, add charts, and lay them out, and the result is an ordinary dashboard anyone in the tenant can open and keep editing. They are listed only when your tenant has custom dashboards turned on.

Every save is a revision, so any edit can be rolled back — except that removing a chart also deletes any Slack digest subscribed to it, and a rollback does not bring that back. If someone saves the same dashboard in the browser while an agent is editing it, the agent's change is re-applied on top of theirs instead of overwriting it. A browser tab that already has the dashboard open shows an agent's change after a reload.

### `brizz_list_dashboards`

A service's custom dashboards — name, chart count, last update, link — and the built-in boards that `brizz_create_dashboard` can copy.

### `brizz_get_dashboard`

One dashboard's charts — title, kind, id — and where each sits, plus its current version. `response_format: "detailed"` adds each chart's query and the recent revisions.

Positions use the dashboard's 12-column grid: `x` is the starting column (0–11), `w` the width in columns, `y` the row from the top, `h` the height in rows. A row is 32 pixels plus a 16-pixel gap. Narrower screens get a layout derived from this one.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `dashboard` | string | Yes | The dashboard's name or id. |
| `service_name` | string | No | The service whose dashboards to look up a name in. |

### `brizz_list_chart_types`

Without arguments: the Brizz charts — the ones the built-in boards are made of — with their parameters and default sizes, plus the styles and data sources a custom chart can use. With `data_source`: the metrics, functions, dimensions, and filters a custom chart's query on that source accepts, including your service's custom properties.

### `brizz_create_dashboard`

Creates a dashboard on a service. Requires `mcp:write`.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `name` | string | For a blank dashboard | A copy defaults to "<source> (copy)". A name already in use gets a numeric suffix. |
| `from_builtin` | string | No | Copy a built-in board, by its id from `brizz_list_dashboards` (`performance`, `cost`, `tools`, …). |
| `copy_of` | string | No | Copy another custom dashboard, by name or id. |
| `charts` | array | No | Cards to add, in the shape `brizz_edit_dashboard`'s `add_chart` takes. |

### `brizz_edit_dashboard`

Applies a list of operations to one dashboard and saves them as one revision: all of them land, or none do. Requires `mcp:write`.

| Operation | What it does |
| --- | --- |
| `add_chart` | Adds a card: a Brizz chart (`chart_type` and its `parameters`), a custom chart (`query` and `style`), a text block (`markdown`), or a section divider (`section`). Without a position it starts at the left edge below the last card and floats up into any free space there. |
| `update_chart` | Changes a card's title, parameters, query, or style, or moves and resizes it with `x`, `y`, `w`, `h`. Only the fields you name change. |
| `remove_chart` | Removes a card, and any Slack digest subscribed to it. Needs `confirm: true`. A title shared by several cards is refused with their ids. |
| `rename` | Renames the dashboard. |
| `restore_revision` | Rolls the dashboard back to an earlier `version`. Must be the only operation, needs `confirm: true` because any chart not in that version is removed, and replaces the dashboard as it stands rather than merging with a save made in between. |

Cards are named by their title or id, as `brizz_get_dashboard` shows them. All the positions in one call refer to the dashboard as it was before the call; cards you position keep their place, and the rest move out of their way and float up into empty space, as they do when you drag a card in the browser. The response shows where every card ended up. Only this 12-column layout is saved; the dashboard derives the narrower screens' layouts from it, so an arrangement made by hand at a narrower width is replaced.

A custom chart's query runs once over the last day before anything is saved, so a misspelled field fails the call with the list of valid ones and leaves the dashboard untouched. A query too slow to check is refused with a suggestion to narrow it.

A custom chart also takes `statistics`, two or more of `avg`, `p50`, `p90`, `p95`, `p99`, `min`, `max` and `sum`. The card then shows a toggle that switches every aggregation using one of those functions to the one picked; `count` is never switched. The card opens on the first listed, and that function is saved into those aggregations. A chart whose aggregations use different statistics (one comparing `p50` with `p90`) is refused. On `update_chart`, `"statistics": []` removes the toggle.

A custom chart's `query` also takes `group_by_top_n`, the chart editor's **Top N**: a map from a `group_by` dimension to how many of its values to keep, ranked by the first aggregation, from 1 to 1000. `{"intent": 10}` on `"group_by": ["intent", "sessionOutcome"]` draws the 10 most common intents, each split by outcome, instead of every intent. A `0` turns off the cap `tool_calls` and `llm_calls` charts apply by default. A Top N on a dimension the query does not group by fails the call. `update_chart` replaces the whole query, so a new query without `group_by_top_n` clears it.

```json
{
  "tool": "brizz_edit_dashboard",
  "arguments": {
    "dashboard": "Performance (copy)",
    "operations": [
      {
        "op": "add_chart",
        "title": "Sessions per day by model",
        "query": {
          "data_source": "sessions",
          "aggregations": [{ "function": "count", "field": "*", "alias": "sessions" }],
          "group_by": ["day", "model"]
        },
        "style": "stacked_bar",
        "x": 0, "y": 0, "w": 8, "h": 9
      },
      { "op": "update_chart", "chart": "Top intents", "w": 6 },
      { "op": "update_chart", "chart": "Top journeys", "x": 6, "y": 14, "w": 6 }
    ]
  }
}
```

### `brizz_delete_dashboard`

Deletes a custom dashboard, its charts, their Slack digests, and its revision history for everyone in the tenant. This cannot be undone, and requires `confirm: true` and `mcp:write`. To start over from a dashboard without losing it, copy it with `brizz_create_dashboard` first.

## Cohorts

A cohort is a named set of user conditions — "users with more than 20 sessions", "users on the enterprise plan" — shown on the Users page's **Cohorts** tab. Membership is worked out each time the cohort is used, over that query's time window — "more than 20 sessions" means 20 sessions in the window being looked at, not over a user's lifetime. Sessions narrow to a cohort's users with the filter `{field: "cohortId", operator: "equals", value: <cohort id>}` in `brizz_search_sessions` and the aggregate tools.

Cohorts are addressed by name or id. Names are unique within a service for cohorts made here; when two cohorts made in the dashboard share a name, pass the id.

### `brizz_list_cohorts`

Lists a service's cohorts: name, condition count, source (`manual`, `predefined`, …), last update, creator and id. AI-suggested drafts that nobody has saved are left out. Read a cohort's conditions with `brizz_get_cohort`.

### `brizz_get_cohort`

Returns one cohort's conditions, its creator, and `session_filter` — the condition to pass to the session tools to narrow to its users.

### `brizz_list_cohort_filters`

Lists every field a cohort condition can use, with its operators and value shape, plus the service's user custom-property keys, paged with `limit` (default 50, max 100) and `offset`. These are user fields — they differ from the session fields `brizz_list_session_filters` returns.

### `brizz_create_cohort`

Saves a cohort on a service. Pass a `name`, an optional `description`, and `conditions` — each a `field`, `operator`, `value` and, for a user custom property, `filter_type: "custom_properties"`. All conditions must hold. Brizz checks each condition's field and operator when it saves the cohort, so an unknown one is refused with the reason instead of saving a cohort that matches everyone. Refuses a name another cohort on the service already has. Requires `mcp:write`.

### `brizz_update_cohort`

Renames a cohort or changes its conditions. Name only what changes:

- `add_conditions` adds conditions to the ones the cohort has; one identical to an existing condition is skipped.
- `remove_fields` drops every condition on each named field. It runs before `add_conditions`, so removing a field and adding it back replaces it.
- `conditions` replaces the whole set, and cannot be combined with the two above.

Changed conditions are checked the same way as on create, and the result carries `previous_conditions` — the set it replaced. A cohort that holds a nested condition group can only be changed by replacing the whole set with `conditions`. A cohort cannot be left with no conditions, and its description cannot be changed here. The tool reads the cohort and writes it back, so an edit made in the dashboard between the two is overwritten. Requires `mcp:write`.

### `brizz_delete_cohort`

Deletes a cohort. Charts and filters that narrow to it by `cohortId` stop working, and it cannot be undone. Requires `confirm: true` and `mcp:write`; the result includes the deleted description and conditions so the cohort can be recreated.

## Processing rules

Processing rules shape how a service's sessions read: they show a summarizing step as a compaction, unwrap a tool that runs other tools, group the spans of an agent a tool started, and record which version of a tool's definition a loader tool handed the model. They apply to spans that arrive after they are saved. What each rule does, and how to fill one in, is in [Processing rules](/docs/admin/processing-rules.md).

Every write changes one rule and leaves the others as they are, so an agent never has to send back rules it did not mean to touch.

### `brizz_list_processing_rules`

Returns the service's rules as stored, each with an `id`, and the rule format. Pass `kind` (`compaction`, `dispatch`, `handoff` or `schema_load`) for one kind. A rule's id is its kind and a short hash of what it selects, so changing what a rule selects gives it a new id.

### `brizz_get_processing_rule`

Returns one rule by its `id`.

### `brizz_list_span_attribute_keys`

Lists the span attribute keys the service sends. Build a rule's paths from these keys. `filter` narrows it to keys containing some text; `limit` defaults to 100, at most 300. Pass `key`, as listed, to list the JSON paths inside that one key's values from the last hour instead, at most 200. A listed path cannot show a dot inside a field name; such a field needs escaping (`a\.b`) in a rule.

### `brizz_preview_processing_rule`

Runs one rule, unsaved, against the service's last hour and lists what it picks and what it would do to each match. Pass exactly one of `compaction`, `dispatch`, `handoff` or `schema_load`, in the shape `brizz_list_processing_rules` describes. Saves nothing. When the service sent nothing in the last hour the result says the rule is untested; on a busy service it says how far back the newest 1,000 spans reached.

### `brizz_add_processing_rule`

Adds one rule, passed as exactly one of `compaction`, `dispatch`, `handoff` or `schema_load`, and returns its id. Values and paths are trimmed. A rule that selects the same as one already saved, or has a bad path or pattern, is refused with the reason. Requires `mcp:write`.

When a change shows depends on the rule's kind, and each write's result says so: a compaction, handoff or schema load rule reaches spans arriving within about 10 minutes, and a dispatch rule applies whenever a session's conversation is built, an older session's included when it is rebuilt. Stored sessions keep what a removed or changed rule shaped until they are rebuilt, and a handoff rule's runs already grouped stay grouped.

Every rule write saves the service's whole rule set, so a change made elsewhere (the dashboard, another agent, or another call of your own) between the tool's read and its save is overwritten. Make these calls one at a time, never in parallel.

### `brizz_update_processing_rule`

Replaces the rule named by `id` with a rule of the same kind, and returns its id. Requires `mcp:write`.

### `brizz_delete_processing_rule`

Removes the rule named by `id`. Pass `confirm: true`; without it the call names the rule and changes nothing. The result carries the removed rule, so it can be added back. Requires `mcp:write`.

## Feedback on these tools

### `brizz_submit_feedback`

Reports a problem with the Brizz MCP server itself — a tool that returned wrong or missing data, an argument your agent had to guess at, an error that did not say how to fix it, a capability that turned out not to exist — or reports that something worked unusually well. It goes to the team that builds these tools.

This is feedback about **Brizz**, not about your own agent. For problems in your agent's behavior, `brizz_search_issues` and `brizz_get_session_errors` are the tools that answer.

Your agent calls it on its own initiative. It needs `mcp:read`, like every other non-write tool, and returns a one-line acknowledgement. Two shapes:

- **`tool_call`** — one Brizz tool call that went wrong or went well.
- **`flow`** — a whole piece of work: an investigation, a triage, a question answered across several calls.

Your agent files one `flow` report whenever a piece of work ends — whether it finished the work or gave up on it — so you will see this tool called at the end of a clean investigation as well as an abandoned one. Both are the expected shape: a report on a successful run records that the run went fine and is not a sign something failed, and a report on a run your agent could not complete is the one most useful to us.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `feedback_about` | enum | Yes | `tool_call` or `flow`. |
| `summary` | string | Yes | One sentence, at most 200 characters (Unicode code points). |
| `sentiment` | enum | Yes | `positive`, `neutral`, `negative`, or `mixed`. |
| `what_happened` | string | Yes | What actually happened, at most 1200 characters (Unicode code points). |
| `problem_type` | enum | On `negative`/`mixed` | `missing_capability`, `broken_capability`, `missing_data`, `wrong_data`, `technical_error`, `excessive_calls_required`, `unclear_tool_description`, `confusing_input_schema`, `unclear_server_instructions`, `other`. |
| `what_i_expected` | string | On `negative`/`mixed` | What should have happened instead. At most 400 characters (Unicode code points). |
| `task_completed` | boolean | Required for `flow` | Whether the agent finished your task anyway. |
| `brizz_tool_names` | string[] | Required on `positive` | Which Brizz tools this is about. Up to 10, each at most 87 characters (Unicode code points). A client prefix such as `mcp__<server>__` is removed. |
| `impact_on_task` | enum | No | `blocked`, `worked_around`, or `cosmetic`. |
| `workaround` | string | No | What the agent did instead. At most 300 characters (Unicode code points). |
| `suggested_improvement` | string | No | One concrete change that would have prevented this. At most 300 characters (Unicode code points). |
| `reporter_intent` | string | No | What the agent was trying to accomplish for you, paraphrased. At most 400 characters (Unicode code points). |
| `flow_kind` | string | No | Free text, e.g. `issue investigation`, `cost investigation`. At most 64 characters (Unicode code points). |

```json
{
  "tool": "brizz_submit_feedback",
  "arguments": {
    "feedback_about": "tool_call",
    "summary": "brizz_search_issues returned no rows for a service that plainly has open issues",
    "sentiment": "negative",
    "problem_type": "missing_data",
    "what_happened": "Searched with status=open over the last 7 days and got zero rows, then found four open issues for the same service through the dashboard.",
    "what_i_expected": "The same four issues the dashboard shows.",
    "brizz_tool_names": ["brizz_search_issues"],
    "impact_on_task": "worked_around"
  }
}
```

### What we do with it

Every field is treated as text, never as an instruction: nothing a report suggests is acted on automatically. The tool asks only for what the server cannot already see, so it never requests your prompts, your code, your customers' names or any credential — and the field descriptions tell the calling agent to paraphrase rather than quote. Reports reach the Brizz team, not your workspace.

## See also

- [MCP server](/docs/integrations/mcp-server/overview.md) — connecting Claude Code, Cursor, Codex, and other clients to Brizz.
- [MCP (auto-instrument your server)](/docs/sdks/mcp.md) — adding Brizz observability to an MCP server you operate.

---

[All Brizz documentation](https://docs.brizz.ai/llms.txt) · [Full documentation (single file)](https://docs.brizz.ai/llms-full.txt)
