# Inbox tools

[All tool areas](/docs/tools.md). Each tool acts within your access.

## Inbox

### list_inbox

List what needs a person's attention, as the Inbox does. Needs action: proposals and approvals waiting on a person (none until agents make them), money owed back to a guest at the desk after a session was called off or moved (desk_refund: mark it with mark_refund_given once it's handed over; for those who can refund there), overdue invoices (invoice_overdue), and a card refunded in the payment provider after part of it was given back as a credit or gift certificate (refund_exceeded: void each unused one in `instruments`; for those who can refund there, until each is voided or used), and its count, which is the badge. Updates: the activity log's events you can see (except a guest's hold steps and attendees' party page steps, which stay in the log), newest first, grouped by the organization's days with each day's alerts (private bookings, late cancellations, failed payments, disputes, failed refunds, overdue invoices, cards refunded twice) first, each with what it's about. Alerts are for members who hold alerts:read where they happened. Page back with `before`; a day that runs across pages is ordered within each. Scope to one location with `locationId`.

Reads · Members of an organization · Needs activity:read

#### Input

- `limit` — integer; optional. The most results to return (default 30) minimum: 1; maximum: 100; default: 30
- `before` — string; optional. An event id; returns updates older than it
- `locationId` — string; optional. The location's id, from get_setup

#### Output

- `timeZone` — string; required. The organization's time zone (an IANA name), which each update's `day` is in. Times shown with the updates go by it
- `needsAction` — array; required. 
  - `needsAction[]` — object; optional. 
    - `needsAction[].id` — string; required. A proposal's id (prp_…); for a desk_refund, the refund (rfd_…); for an invoice_overdue, the invoice (ivc_…)
    - `needsAction[].kind` — string; required. proposal: an AI agent's proposed change (`proposal`); approve_proposal or reject_proposal decides it. desk_refund: a session was called off or moved, and part of a booking was paid at the desk, so staff owe it back; mark_refund_given clears it. refund_exceeded: the card was refunded in the payment provider after part of it was already given back as a credit or gift certificate, so the guest has both; void_credit or void_gift_certificate on each unused one in `instruments` takes that refund back, and it clears once each is voided or used. unpaid_shares: a split booking's guests didn't all pay their shares, the organizer's saved card couldn't be charged, and the grace period ran out: keep the seats (take the payment at the desk, or extend_split_deadline) or release them (release_unpaid_seats); charge_unpaid_shares tries the card again. It clears once nothing is owed, the seats are released, or the deadline is extended Allowed: "proposal", "pricing", "anomaly", "approval", "desk\_refund", "invoice\_overdue", "refund\_exceeded", "unpaid\_shares"
    - `needsAction[].title` — string; required. 
    - `needsAction[].reason` — string; required. 
    - `needsAction[].impact` — object; required. What approving would change: for a proposal, its preview's details in the tool's own shape ({} when it has none); for the others, the changeset impact shape (bookings, guests, money, notify, other)
      - `needsAction[].impact.*` — any value; optional. 
    - `needsAction[].actor` — object; required. 
      - `needsAction[].actor.kind` — string; required.  Allowed: "person", "assistant", "agent", "mcp", "api\_key"
      - `needsAction[].actor.name` — string; required. 
    - `needsAction[].createdAt` — string; required.  format: "date-time"
    - `needsAction[].locationTimeZone` — string; optional. For a desk_refund, the refund location's IANA time zone for showing its date and time
    - `needsAction[].approveLabel` — string; required. 
    - `needsAction[].refundId` — string; optional. A desk_refund's refund (rfd_…), for mark_refund_given; a refund_exceeded's, the provider's refund past what was left
    - `needsAction[].orderId` — string; optional. A desk_refund, invoice_overdue, refund_exceeded, or unpaid_shares' booking order (ord_…)
    - `needsAction[].instruments` — array; optional. A refund_exceeded's credits and gift certificates still unused, each to void (void_credit, void_gift_certificate)
      - `needsAction[].instruments[]` — object; optional. 
        - `needsAction[].instruments[].kind` — string; required.  Allowed: "credit", "gift\_certificate"
        - `needsAction[].instruments[].id` — string; required. The credit (crd_…) or gift certificate (gc_…)
        - `needsAction[].instruments[].code` — string; required. Masked: •••• and its last 4
        - `needsAction[].instruments[].amount` — integer; required. What the refunds gave it, in minor units minimum: -9007199254740991; maximum: 9007199254740991
    - `needsAction[].invoiceId` — string; optional. An invoice_overdue's invoice (ivc_…)
    - `needsAction[].proposal` — object; optional. A proposal's card: what, why, impact, confidence, expiry
      - `needsAction[].proposal.proposalId` — string; required. 
      - `needsAction[].proposal.changesetId` — string; required. The agent's own preview (chg_…)
      - `needsAction[].proposal.tool` — string; required. The tool it would call, which Edit opens with get_proposal's input
      - `needsAction[].proposal.agent` — object; required. 
        - `needsAction[].proposal.agent.id` — string; required. 
        - `needsAction[].proposal.agent.kind` — string; required.  Allowed: "assistant", "ops", "revenue"
        - `needsAction[].proposal.agent.name` — string; required. 
      - `needsAction[].proposal.onBehalfOf` — object or null; required. 
        - `needsAction[].proposal.onBehalfOf.memberId` — string; required. 
        - `needsAction[].proposal.onBehalfOf.name` — string or null; required. 
      - `needsAction[].proposal.summary` — string; required. 
      - `needsAction[].proposal.changes` — array; required. 
        - `needsAction[].proposal.changes[]` — object; optional. 
          - `needsAction[].proposal.changes[].action` — string; required.  Allowed: "create", "update", "delete"
          - `needsAction[].proposal.changes[].subject` — string; required. 
          - `needsAction[].proposal.changes[].description` — string; required. 
      - `needsAction[].proposal.warnings` — array; required. What to tell the person before they apply it that isn't a change itself, e.g. upcoming sessions a lower capacity leaves oversold
        - `needsAction[].proposal.warnings[]` — string; optional. 
      - `needsAction[].proposal.stale` — object or null; required. 
        - `needsAction[].proposal.stale.reason` — string; required. 
      - `needsAction[].proposal.why` — string; required. 
      - `needsAction[].proposal.evidence` — array; required. 
        - `needsAction[].proposal.evidence[]` — object; optional. 
          - `needsAction[].proposal.evidence[].label` — string; required.  minLength: 1; maxLength: 120
          - `needsAction[].proposal.evidence[].href` — string; required. 
      - `needsAction[].proposal.confidence` — string; required.  Allowed: "low", "medium", "high"
      - `needsAction[].proposal.expiresAt` — string; required.  format: "date-time"
    - `needsAction[].tool` — string; optional. The tool that acts on it: approve_proposal for a proposal, mark_refund_given for a desk_refund, get_invoice for an invoice_overdue, void_credit or void_gift_certificate (its first instrument's) for a refund_exceeded, release_unpaid_seats for unpaid_shares (or extend_split_deadline, charge_unpaid_shares)
- `needsActionCount` — integer; required. The inbox badge: only what needs action, never updates minimum: -9007199254740991; maximum: 9007199254740991
- `updates` — array; required. 
  - `updates[]` — object; optional. 
    - `updates[].event` — object; required. 
      - `updates[].event.id` — string; required. 
      - `updates[].event.type` — string; required. 
      - `updates[].event.actor` — object; required. 
        - `updates[].event.actor.type` — string; required.  Allowed: "user", "agent", "system", "guest"
        - `updates[].event.actor.id` — string or null; required. 
        - `updates[].event.actor.via` — string; required.  Allowed: "session", "api\_key", "oauth", "internal", "public"
        - `updates[].event.actor.name` — string or null; required. 
      - `updates[].event.subject` — object; required. 
        - `updates[].event.subject.type` — string; required. 
        - `updates[].event.subject.id` — string; required. 
        - `updates[].event.subject.label` — string or null; required. 
      - `updates[].event.locationName` — string or null; required. 
      - `updates[].event.changes` — array or null; required. 
        - `updates[].event.changes[]` — object; optional. 
          - `updates[].event.changes[].field` — string; required. 
          - `updates[].event.changes[].before` — string or null; required. 
          - `updates[].event.changes[].after` — string or null; required. 
      - `updates[].event.changesetId` — string or null; required. 
      - `updates[].event.draftedBy` — object or null; optional. Set when the command bar's assistant drafted the change this event came from, and the person (the actor) previewed and applied it: the assistant (agt_...) and its model call (aic_...). Always sent; null otherwise
        - `updates[].event.draftedBy.agentId` — string; required. 
        - `updates[].event.draftedBy.callId` — string; required. 
      - `updates[].event.data` — object or null; required. What the event recorded, which can hold amounts and guests' names. Null without both orders:amounts and customers:contact where the event belongs; billing, member/invitation, agent, and API-key events also need billing:read, members:read, agents:read, and api_keys:write respectively at the organization
        - `updates[].event.data.*` — any value; optional. 
      - `updates[].event.masked` — boolean; optional. True when `data` was withheld
      - `updates[].event.createdAt` — string; required.  format: "date-time"
    - `updates[].day` — string; required. The date it happened on in the organization's time zone, for grouping into days
    - `updates[].alert` — boolean; required. A staff alert: a private booking made, a late cancellation, a failed payment, a dispute opened, a failed refund, an overdue invoice, a card refunded twice (refund_exceeded). Only for those holding alerts:read where it happened
    - `updates[].alertKind` — string or null; required.  Allowed: "private\_booking", "late\_cancellation", "payment\_failed", "dispute\_opened", "refund\_failed", "invoice\_overdue", "refund\_exceeded", "kitchen\_sheet\_recipient\_missing"
    - `updates[].alertLabel` — string or null; required. 
    - `updates[].summary` — string or null; required. A plain summary for settings, fees, credits, cards, session moves and customer notes; null keeps the existing event title
    - `updates[].actorName` — string or null; required. 
    - `updates[].href` — string or null; required. 
    - `updates[].undo` — object or null; required. 
      - `updates[].undo.changesetId` — string; required. 
      - `updates[].undo.until` — string; required.  format: "date-time"
    - `updates[].subject` — object; required. 
      - `updates[].subject.type` — string; required. 
      - `updates[].subject.id` — string; required. 
      - `updates[].subject.label` — string or null; required. What to call it: the booking code, else the product's name; null when it isn't known
      - `updates[].subject.code` — string or null; required. The booking code, for an order, payment, or refund. Needs bookings:read
      - `updates[].subject.customerName` — string or null; required. The guest's name, a first name only without customers:contact. Null without bookings:read
      - `updates[].subject.productName` — string or null; required. 
      - `updates[].subject.locationId` — string or null; required. 
      - `updates[].subject.locationName` — string or null; required. 
      - `updates[].subject.locationTimeZone` — string or null; required. 
      - `updates[].subject.timeZone` — string or null; required. The subject location's IANA zone; show sessionStartsAt in this zone
      - `updates[].subject.sessionStartsAt` — string or null; required. When its session starts. Needs bookings:read format: "date-time"
      - `updates[].subject.partySize` — integer or null; required. Needs bookings:read minimum: -9007199254740991; maximum: 9007199254740991
- `nextBefore` — string or null; required. 
