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

# get_compensation_agent_turn

> Wait for the latest turn of a compensation agent conversation and read its outcome, without starting a new turn.

Wait for the latest turn of a conversation with Qobra's compensation agent and
read what it left, without starting anything. Call it when
[`ask_compensation_agent`](https://docs.qobra.co/mcp_documentation/tools/ask_compensation_agent), or
an earlier call of this tool, came back `running`.

It waits up to 45 seconds and answers `running` again while the turn goes on:
call it again then. With no turn running, it returns the latest turn as it
stands.

The result reads like `ask_compensation_agent`'s. Relay the answer, and send
the user's reply to a question or a plan with `ask_compensation_agent`, not
here. A turn that ended on an error is raised as one.

The tool reads only and needs no `mcp:write` scope. It needs the same company
settings and role as `ask_compensation_agent`: AI and the Architect switched
on, and write access on plan compensations.

```json theme={null}
{
  "conversation_id": "6661a0f48a4b3d0012a7ec42"
}
```

## Parameters

> [accordion] Body
>
> **conversation\_id** `string` *required*
>
> Id of a conversation of yours, as ask\_compensation\_agent returned it.

## Response

> [accordion] Body
>
> **status** `string`
>
> 'answered': the turn is over, its reply is in answer. 'awaiting\_user': it
> paused on a question (pending\_question) or a plan to validate
> (pending\_plan): show it to the user and send their reply with
> ask\_compensation\_agent, in this conversation. 'running': the turn goes on;
> call get\_compensation\_agent\_turn with this conversation\_id. One of:
> `answered`, `awaiting_user`, `running`.
>
> **conversation\_id** `string`
>
> The conversation of this turn. Pass it back on every follow-up call.
>
> **answer** `string`
>
> The agent's reply when status is 'answered', to relay to the user. Null
> otherwise.
>
> **pending\_question** `object`
>
> The question the agent is waiting on, with the options it offers
> (multi\_select: several may be picked; the user may also answer in their own
> words). Set only when status is 'awaiting\_user'.
>
> **object properties**
>
> **question** `string`
>
> **options** `string[]`
>
> **multi\_select** `boolean`
>
> **pending\_plan** `object`
>
> The changes the agent proposes, waiting for the user to approve or amend
> them; it applies nothing before. Set only when status is 'awaiting\_user'.
>
> **object properties**
>
> **summary** `string`
>
> **changes** `object[]`
>
> **object properties**
>
> **step** `integer`
>
> **action** `string`
>
> One of: `create`, `edit`, `delete`.
>
> **name** `string`
>
> **description** `string`
>
> **entity\_type** `string`
>
> **old** `string`
>
> **new** `string`
>
> **details** `string[]`
>
> **compensation** `object`
>
> The compensation the turn worked on, as get\_plan lists it: its id is the
> compensation\_id of every later call, and update\_compensation with that id
> and status 'live' publishes the turn's draft. Its other fields and its
> resource\_url, which opens the draft to review, are read off that draft when
> one is stacked on it.
>
> **object properties**
>
> **id** `string`
>
> **resource\_url** `string`
>
> Deep link to open this compensation's configuration in the Qobra web
> app.
>
> **name** `string`
>
> **recurring** `boolean`
>
> True when the compensation has no window: it is calculated on each
> period of its cadence. False when it is bounded to one, from start\_date
> to end\_date. A compensation bounded to a window is calculated once, over
> the records of the whole window, on the statement closing the period of
> its cadence that holds end\_date (with EACH\_MONTH, the period of end\_date
> itself): the statements of the periods before carry no line for it. A
> cadence that does not calculate on that period never calculates it:
> EACH\_MONTH\_EXCEPT\_END\_OF\_QUARTER with an end\_date in a quarter's last
> month, or Q1-Q4 with an end\_date outside that quarter, on the company's
> fiscal calendar. To pay every period over a limited time, leave the
> compensation recurring on a plan of its own whose members are bounded to
> that time (the start\_period and end\_period of their attribution,
> create\_plan, update\_plan). An attribution is month-granular, and a
> period of the cadence it touches is calculated over all of its records:
> the limit is exact with EACH\_MONTH, or when the attribution covers whole
> periods of the cadence, and a quarterly compensation limited from
> February to April still pays the records of January and of May and June.
> An attribution covers every compensation of its plan, so bounding the
> members of a shared plan ends all of them.
>
> **start\_date** `string`
>
> YYYY-MM-DD; the first day of the compensation's window, null when it is
> recurring.
>
> **end\_date** `string`
>
> YYYY-MM-DD; the last day of the compensation's window, included, null
> when it is recurring.
>
> **period** `string`
>
> How often the compensation is calculated, on the company's fiscal
> calendar. EACH\_MONTH every month; EACH\_MONTH\_EXCEPT\_END\_OF\_QUARTER every
> month but the one each quarter closes on; EACH\_QUARTER, EACH\_SEMESTER
> and EACH\_YEAR at each period's close; Q1-Q4 once a year, at that
> quarter's close only. A compensation bounded to a window is calculated
> at most once: on the statement closing the period of its cadence that
> holds the window's last day, and never when its cadence does not
> calculate on that period.
>
> **status** `string`
>
> "live": published. "draft": not published (never published, or
> unpublished), so no statement carries it.
>
> **description** `string`
>
> The compensation's own free-text note, as written on the plan; null when
> it carries none.
>
> **flagged\_metrics** `object[]`
>
> The reporting metrics this compensation feeds, one per metric. A plan is
> missing from a metric's report only when none of its compensations feeds
> it.
>
> **object properties**
>
> **id** `string`
>
> **name** `string`
>
> **type** `string`
>
> One of: `float`, `amount`, `percentage`, `string`, `picklist`,
> `multipicklist`, `bool`, `date`, `user`, `object`, `group`,
> `record_status`.
>
> **saved** `boolean`
>
> True: the turn's changes were saved as the compensation's draft, which no
> statement reads until it is published. False: nothing was saved, save\_note
> says why. Null while a turn runs, and for a turn asked from the web app,
> which saves from its own page.
>
> **save\_note** `string`
>
> Why nothing was saved, to tell the user. Null when the turn was saved or is
> still running.
