Annotate a call
annotate_callSet the account owner's note, flag (report an agent mistake with a reason), handled marker and rating on a call - the same fields as the /hovory call detail in the portal. Send only the fields you want to change. note (up to 2000 characters) sets a free-text note, or clears it if sent as an empty string. flagReason (1 to 500 characters) flags the call and clears any handled marker, since a new report reopens attention; unflag: true removes the flag instead (mutually exclusive with flagReason - sending both is a validation error). handled: true marks the call as dealt with (rejected together with flagReason/unflag: true - flagging always reopens attention), handled: false clears the handled marker. rating ("good" or "bad") records a one-click rating - ratingReason and ratingNote are only accepted together with rating: "bad" (ratingReason is one of misunderstood, wrong_answer, silence, hung_up_early, other; ratingNote up to 500 characters); rating is recorded with source "mcp" and a fresh rating always overwrites an earlier one. Same data as PATCH /v1/calls/{id} (response schema in /openapi.json).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "annotate_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the call to annotate, from list_calls or get_call. Looks like c_9f3a2b7c4d1e. | |
| note | No | Free-text note about the call, up to 2000 characters. An empty string clears it. Omit to leave it unchanged. | |
| rating | No | One-click call rating, same as the portal card: "good" or "bad". A new rating always overwrites an earlier one. Recorded with source "mcp". | |
| unflag | No | Set to true to remove an existing flag. Mutually exclusive with flagReason. | |
| handled | No | true marks the call as handled/dealt with, false clears that marker. Rejected together with flagReason or unflag: true - flagging always reopens attention. | |
| flagReason | No | Reason the call is being flagged (what the agent got wrong), 1 to 500 characters. Flagging clears any handled marker. Mutually exclusive with unflag. | |
| ratingNote | No | Optional free-text note for a "bad" rating, up to 500 characters. Only accepted together with rating: "bad". | |
| ratingReason | No | Reason for a "bad" rating: misunderstood, wrong_answer, silence, hung_up_early or other. Only accepted together with rating: "bad". |