> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tiro.ooo/llms.txt
> Use this file to discover all available pages before exploring further.

# Speaker assignment and suggestions

> MCP tools to assign speaker labels (A, B) to participants, read the speaker suggestions Tiro generates, and undo the last speaker assignment.

## Overview

After speaker separation, each utterance in a transcript carries a speaker label such as `A` or `B`. Use these tools to connect a label to a person, read the suggestions Tiro made, or undo the last assignment.

| Tool | What it does | Required scope |
| - | - | - |
| `get_note_speaker_suggestion` | Reads suggestions per speaker label: proposed participant, supporting quote, and decision state | `note:read` |
| `assign_note_speakers` | Assigns speaker labels to people | `note:write` |
| `undo_note_speakers` | Undoes the last speaker assignment change in the note | `note:write` |

`assign_note_speakers` and `undo_note_speakers` require a credential with a user identity. The recommended order is:

1. Call `get_note_transcript` with `includeEditState: true` to read the speaker labels, their current names, and `editState.etag`.
2. Read suggestions with `get_note_speaker_suggestion` and have the user confirm who to assign.
3. Call `assign_note_speakers` with the `etag` you read before the confirmation.
4. To revert, call `undo_note_speakers` with the `editState.etag` from the response.

## get\_note\_speaker\_suggestion

Reads the speaker suggestions for a note. It is read-only and changes nothing. To apply a suggestion, call `assign_note_speakers`.

| Parameter | Type | Required | Description |
| - | - | - | - |
| `noteGuid` | string | Conditional | Note GUID |
| `noteId` | integer | Conditional | Numeric note ID |

Send exactly one of `noteGuid` and `noteId`.

```json theme={"system"}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_note_speaker_suggestion",
    "arguments": { "noteGuid": "abc-123-def" }
  }
}
```

The `structuredContent` looks like this. `suggestions` is an empty array when there are none.

```json theme={"system"}
{
  "suggestions": [
    {
      "speakerLabel": "A",
      "personTag": { "id": 4821, "name": "Alice Kim", "email": "alice@example.com" },
      "evidenceKind": "SELF_INTRO",
      "quote": "Hi, I'm Alice from marketing.",
      "state": "PENDING"
    }
  ]
}
```

| Field | Type | Description |
| - | - | - |
| `speakerLabel` | string | The speaker label shown in the transcript |
| `personTag` | object \| null | The suggested participant (`id`, `name`, `email`). `null` if no participant was chosen |
| `evidenceKind` | string \| null | Kind of evidence: `SELF_INTRO`, `CALLED_RESPONSE`, `CONTEXT`, `CLUE`, or `SUMMARY` |
| `quote` | string \| null | The utterance the suggestion is based on. For `SUMMARY`, a short generated summary instead of a quote |
| `state` | string | `PENDING` (undecided), `ACCEPTED` (applied), or `DISMISSED` (rejected) |

For paragraphs locked by the free-plan limit, `evidenceKind` and `quote` are returned as `null`. To assign the suggested person, send `personTag.id` as `personTagId` in `assign_note_speakers`.

## assign\_note\_speakers

Assigns speaker labels to people across the **whole note**. Every utterance with that label is reassigned, including utterances a person assigned by hand. Assigned people are also added to the note's participants.

| Parameter | Type | Required | Description |
| - | - | - | - |
| `noteGuid` | string | Required | Note GUID |
| `etag` | string | Required | The `editState.etag` you read before the user confirmed |
| `assignments` | object\[] | Required | 1-20 assignments. Each speaker label may appear only once |

Each `assignments[]` item has:

| Field | Type | Required | Description |
| - | - | - | - |
| `speaker` | string | Required | The speaker label exactly as shown by `get_note_transcript` |
| `personTagId` | integer | Conditional | ID of a participant of this note or of your own contact. Also use it for a candidate returned in `needsDisambiguation` |
| `email` | string | Conditional | Email (up to 254 characters) |
| `name` | string | Conditional | Name (up to 64 characters) |

Each item needs at least one of `personTagId`, `email`, and `name`. If you send several, only the first present one is used, in that order. People are looked up among this note's participants first (whoever added them), then among the calling user's own contacts. Contacts of other users are never used. An email or name that matches nobody creates a contact for the user (name-only if you sent a name).

```json theme={"system"}
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "assign_note_speakers",
    "arguments": {
      "noteGuid": "abc-123-def",
      "etag": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "assignments": [
        { "speaker": "A", "personTagId": 4821 },
        { "speaker": "B", "name": "Bob" }
      ]
    }
  }
}
```

```json theme={"system"}
{
  "assigned": [
    { "speaker": "A", "personTagId": 4821, "name": "Alice Kim", "email": "alice@example.com" }
  ],
  "needsDisambiguation": [
    {
      "speaker": "B",
      "candidates": [
        { "personTagId": 5102, "name": "Bob Park", "email": "bob.park@example.com" },
        { "personTagId": 5190, "name": "Bob Lee", "email": null }
      ]
    }
  ],
  "editState": { "etag": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "undoAvailable": true, "canReset": true }
}
```

* `assigned`: the speakers that were assigned.
* `needsDisambiguation`: speakers whose name matched several people and were **left unchanged**. Show `candidates` to the user, then call again with the chosen `personTagId`.
* `editState`: the `etag` and available actions for the next undo. One call is one undo step.

On any other failure nothing changes. If the error has `status_code` `409` and `error_code` `CONTENT_NOT_EDITABLE`, check `detail.reason`: `paragraphs_locked` means the label appears in a paragraph locked by the plan limit, and `diarization_in_progress` means speaker separation is still running. If the `etag` is stale and the call conflicts, do not retry automatically with a newer `etag`; read the latest state and confirm with the user again.

## undo\_note\_speakers

Undoes the latest speaker assignment change across the note and keeps later text edits. Tell the user what will change before undoing, and send the `etag` you read before the confirmation. Assignments made by other users or tools can also be undone.

| Parameter | Type | Required | Description |
| - | - | - | - |
| `noteGuid` | string | Required | Note GUID |
| `etag` | string | Required | The `editState.etag` from `get_note_transcript` (`includeEditState: true`) or from an `assign_note_speakers` response |

The response contains only the new state. Read the transcript again after success.

```json theme={"system"}
{
  "etag": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
  "undoAvailable": false,
  "canReset": true
}
```

To return both speaker assignments and text edits to the originally generated content, use `reset_paragraph_contents` in [Edit and recover note content](https://docs.tiro.ooo/en/developers/mcp/tools/edit-content.md).

## Related tools

* **[`get_note_transcript`](./get-transcript)**: Reads speaker labels, current names, and `editState.etag`.
* **[Edit and recover note content](https://docs.tiro.ooo/en/developers/mcp/tools/edit-content.md)**: Edit and undo paragraphs, summaries, and documents.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.