# Proposals tools

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

## Proposals

### approve_proposal

Approve an open proposal. The preview is the change previewed again as you, with today's data and your own access, which may differ from what the agent saw; applying it applies that change as you, and closes the proposal as approved. Undo the change itself with undo_changeset on `applied`. To change the input first, call the proposal's tool yourself and reject this one with reason edited.

Changes · Members of an organization · Needs activity:read

#### Input

- `proposalId` — string; required. The proposal's id, from list_proposals

#### Output

- `proposal` — object; required. 
  - `proposal.id` — string; required. 
  - `proposal.status` — string; required. open: waiting on a person. approved: a member applied it (appliedChangesetId). rejected: with rejectReason. expired: past expiresAt, or its agent was removed. superseded: the agent proposed the same change again (the newer one's `supersedes` names this) Allowed: "open", "approved", "rejected", "expired", "superseded"
  - `proposal.agent` — object; required. 
    - `proposal.agent.id` — string; required. 
    - `proposal.agent.kind` — string; required.  Allowed: "assistant", "ops", "revenue"
    - `proposal.agent.name` — string; required. 
  - `proposal.onBehalfOf` — object or null; required. The person the agent acted for (the assistant's), if any
    - `proposal.onBehalfOf.memberId` — string; required. 
    - `proposal.onBehalfOf.name` — string or null; required. 
  - `proposal.tool` — string; required. The registry tool it would call. The dashboard's Edit opens this tool with `input` for a new preview by the member, then rejects this proposal with reason edited
  - `proposal.input` — object; required. The tool's input as the agent proposed it
    - `proposal.input.*` — any value; optional. 
  - `proposal.changesetId` — string; required. The agent's own preview (chg_…), as it saw the change
  - `proposal.summary` — string; required. 
  - `proposal.changes` — array; required. 
    - `proposal.changes[]` — object; optional. 
      - `proposal.changes[].action` — string; required.  Allowed: "create", "update", "delete"
      - `proposal.changes[].subject` — string; required. 
      - `proposal.changes[].description` — string; required. 
  - `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
    - `proposal.warnings[]` — string; optional. 
  - `proposal.details` — object or null; required. 
    - `proposal.details.*` — any value; optional. 
  - `proposal.stale` — object or null; required. 
    - `proposal.stale.reason` — string; required. 
  - `proposal.why` — string; required. The agent's reason, in its words
  - `proposal.evidence` — array; required. 
    - `proposal.evidence[]` — object; optional. 
      - `proposal.evidence[].label` — string; required.  minLength: 1; maxLength: 120
      - `proposal.evidence[].href` — string; required. 
  - `proposal.confidence` — string; required.  Allowed: "low", "medium", "high"
  - `proposal.createdAt` — string; required.  format: "date-time"
  - `proposal.expiresAt` — string; required.  format: "date-time"
  - `proposal.decidedBy` — object or null; required. 
    - `proposal.decidedBy.memberId` — string; required. 
    - `proposal.decidedBy.name` — string or null; required. 
  - `proposal.decidedAt` — string or null; required.  format: "date-time"
  - `proposal.rejectReason` — string or null; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
  - `proposal.rejectNote` — string or null; required. 
  - `proposal.appliedChangesetId` — string or null; required. The member's changeset that applied it (chg_…), which undo_changeset can undo in its window
  - `proposal.supersedes` — string or null; required. The open proposal this one replaced (prp_…)
- `applied` — object; required. Your changeset that made the change
  - `applied.id` — string; required. 
  - `applied.tool` — string; required. 
  - `applied.status` — string; required.  Allowed: "previewed", "expired", "applied", "undone"
  - `applied.summary` — string; required. 
  - `applied.changes` — array; required. 
    - `applied.changes[]` — object; optional. 
      - `applied.changes[].action` — string; required.  Allowed: "create", "update", "delete"
      - `applied.changes[].subject` — string; required. 
      - `applied.changes[].description` — string; required. 
  - `applied.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
    - `applied.warnings[]` — string; optional. 
  - `applied.details` — object or null; optional. More for a screen to show, in the tool's own shape: invite_member's access, as preview_member_access gives it. Null for most tools
    - `applied.details.*` — any value; optional. 
  - `applied.result` — any value; required. 
  - `applied.createdAt` — string; required.  format: "date-time"
  - `applied.expiresAt` — string; required.  format: "date-time"
  - `applied.appliedAt` — string or null; required.  format: "date-time"
  - `applied.undoUntil` — string or null; required.  format: "date-time"
  - `applied.undoneAt` — string or null; required.  format: "date-time"
  - `applied.canUndo` — boolean; required. 
  - `applied.draftedBy` — object or null; optional. Set when the command bar's assistant drafted exactly this change and the person previewed it (preview_changeset): the assistant and its model call. The person is still the one who makes it. Always sent; null otherwise
    - `applied.draftedBy.agentId` — string; required. 
    - `applied.draftedBy.callId` — string; required. 
  - `applied.undoable` — boolean; required. Whether this change can be undone once applied (for 15 minutes): false for tools with no undo (refunds, cancelling an order), and for a change its preview says can't be (cancel_session once it cancels bookings, move_session once it takes any off), whose summary says so too

### get_proposal

Get one proposal an AI agent made: what it would change, why, its evidence, confidence, and expiry, the tool and input it would call (for Edit), and what was decided.

Reads · Members of an organization · Needs activity:read

#### Input

- `proposalId` — string; required. The proposal's id, from list_proposals

#### Output

- `id` — string; required. 
- `status` — string; required. open: waiting on a person. approved: a member applied it (appliedChangesetId). rejected: with rejectReason. expired: past expiresAt, or its agent was removed. superseded: the agent proposed the same change again (the newer one's `supersedes` names this) Allowed: "open", "approved", "rejected", "expired", "superseded"
- `agent` — object; required. 
  - `agent.id` — string; required. 
  - `agent.kind` — string; required.  Allowed: "assistant", "ops", "revenue"
  - `agent.name` — string; required. 
- `onBehalfOf` — object or null; required. The person the agent acted for (the assistant's), if any
  - `onBehalfOf.memberId` — string; required. 
  - `onBehalfOf.name` — string or null; required. 
- `tool` — string; required. The registry tool it would call. The dashboard's Edit opens this tool with `input` for a new preview by the member, then rejects this proposal with reason edited
- `input` — object; required. The tool's input as the agent proposed it
  - `input.*` — any value; optional. 
- `changesetId` — string; required. The agent's own preview (chg_…), as it saw the change
- `summary` — string; required. 
- `changes` — array; required. 
  - `changes[]` — object; optional. 
    - `changes[].action` — string; required.  Allowed: "create", "update", "delete"
    - `changes[].subject` — string; required. 
    - `changes[].description` — string; required. 
- `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
  - `warnings[]` — string; optional. 
- `details` — object or null; required. 
  - `details.*` — any value; optional. 
- `stale` — object or null; required. 
  - `stale.reason` — string; required. 
- `why` — string; required. The agent's reason, in its words
- `evidence` — array; required. 
  - `evidence[]` — object; optional. 
    - `evidence[].label` — string; required.  minLength: 1; maxLength: 120
    - `evidence[].href` — string; required. 
- `confidence` — string; required.  Allowed: "low", "medium", "high"
- `createdAt` — string; required.  format: "date-time"
- `expiresAt` — string; required.  format: "date-time"
- `decidedBy` — object or null; required. 
  - `decidedBy.memberId` — string; required. 
  - `decidedBy.name` — string or null; required. 
- `decidedAt` — string or null; required.  format: "date-time"
- `rejectReason` — string or null; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
- `rejectNote` — string or null; required. 
- `appliedChangesetId` — string or null; required. The member's changeset that applied it (chg_…), which undo_changeset can undo in its window
- `supersedes` — string or null; required. The open proposal this one replaced (prp_…)

### list_proposals

List the proposals AI agents made, newest first: by default the open ones you may decide (each checked against what its change touches), as the Inbox's Needs action shows them. Filter by status, agent, or location; page back with `before`.

Reads · Members of an organization · Needs activity:read

#### Input

- `status` — string; optional.  Allowed: "open", "approved", "rejected", "expired", "superseded"; default: "open"
- `agentId` — string; optional. The agent's id, from list_agents
- `locationId` — string; optional. The location's id, from get_setup
- `limit` — integer; optional. The most results to return (default 30) minimum: 1; maximum: 100; default: 30
- `before` — string; optional. A proposal id; returns proposals older than it

#### Output

- `proposals` — array; required. 
  - `proposals[]` — object; optional. 
    - `proposals[].id` — string; required. 
    - `proposals[].status` — string; required. open: waiting on a person. approved: a member applied it (appliedChangesetId). rejected: with rejectReason. expired: past expiresAt, or its agent was removed. superseded: the agent proposed the same change again (the newer one's `supersedes` names this) Allowed: "open", "approved", "rejected", "expired", "superseded"
    - `proposals[].agent` — object; required. 
      - `proposals[].agent.id` — string; required. 
      - `proposals[].agent.kind` — string; required.  Allowed: "assistant", "ops", "revenue"
      - `proposals[].agent.name` — string; required. 
    - `proposals[].onBehalfOf` — object or null; required. The person the agent acted for (the assistant's), if any
      - `proposals[].onBehalfOf.memberId` — string; required. 
      - `proposals[].onBehalfOf.name` — string or null; required. 
    - `proposals[].tool` — string; required. The registry tool it would call. The dashboard's Edit opens this tool with `input` for a new preview by the member, then rejects this proposal with reason edited
    - `proposals[].input` — object; required. The tool's input as the agent proposed it
      - `proposals[].input.*` — any value; optional. 
    - `proposals[].changesetId` — string; required. The agent's own preview (chg_…), as it saw the change
    - `proposals[].summary` — string; required. 
    - `proposals[].changes` — array; required. 
      - `proposals[].changes[]` — object; optional. 
        - `proposals[].changes[].action` — string; required.  Allowed: "create", "update", "delete"
        - `proposals[].changes[].subject` — string; required. 
        - `proposals[].changes[].description` — string; required. 
    - `proposals[].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
      - `proposals[].warnings[]` — string; optional. 
    - `proposals[].details` — object or null; required. 
      - `proposals[].details.*` — any value; optional. 
    - `proposals[].stale` — object or null; required. 
      - `proposals[].stale.reason` — string; required. 
    - `proposals[].why` — string; required. The agent's reason, in its words
    - `proposals[].evidence` — array; required. 
      - `proposals[].evidence[]` — object; optional. 
        - `proposals[].evidence[].label` — string; required.  minLength: 1; maxLength: 120
        - `proposals[].evidence[].href` — string; required. 
    - `proposals[].confidence` — string; required.  Allowed: "low", "medium", "high"
    - `proposals[].createdAt` — string; required.  format: "date-time"
    - `proposals[].expiresAt` — string; required.  format: "date-time"
    - `proposals[].decidedBy` — object or null; required. 
      - `proposals[].decidedBy.memberId` — string; required. 
      - `proposals[].decidedBy.name` — string or null; required. 
    - `proposals[].decidedAt` — string or null; required.  format: "date-time"
    - `proposals[].rejectReason` — string or null; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
    - `proposals[].rejectNote` — string or null; required. 
    - `proposals[].appliedChangesetId` — string or null; required. The member's changeset that applied it (chg_…), which undo_changeset can undo in its window
    - `proposals[].supersedes` — string or null; required. The open proposal this one replaced (prp_…)
- `nextBefore` — string or null; required. 

### reject_proposal

Reject an open proposal, with a reason: wrong, not_now, too_risky, edited (you made the change yourself with other input), or other, and an optional note. Can be undone for 15 minutes while it hasn't expired.

Changes · Members of an organization · Needs activity:read

#### Input

- `proposalId` — string; required. The proposal's id, from list_proposals
- `reason` — string; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
- `note` — string; optional.  minLength: 1; maxLength: 500

#### Output

- `id` — string; required. 
- `status` — string; required. open: waiting on a person. approved: a member applied it (appliedChangesetId). rejected: with rejectReason. expired: past expiresAt, or its agent was removed. superseded: the agent proposed the same change again (the newer one's `supersedes` names this) Allowed: "open", "approved", "rejected", "expired", "superseded"
- `agent` — object; required. 
  - `agent.id` — string; required. 
  - `agent.kind` — string; required.  Allowed: "assistant", "ops", "revenue"
  - `agent.name` — string; required. 
- `onBehalfOf` — object or null; required. The person the agent acted for (the assistant's), if any
  - `onBehalfOf.memberId` — string; required. 
  - `onBehalfOf.name` — string or null; required. 
- `tool` — string; required. The registry tool it would call. The dashboard's Edit opens this tool with `input` for a new preview by the member, then rejects this proposal with reason edited
- `input` — object; required. The tool's input as the agent proposed it
  - `input.*` — any value; optional. 
- `changesetId` — string; required. The agent's own preview (chg_…), as it saw the change
- `summary` — string; required. 
- `changes` — array; required. 
  - `changes[]` — object; optional. 
    - `changes[].action` — string; required.  Allowed: "create", "update", "delete"
    - `changes[].subject` — string; required. 
    - `changes[].description` — string; required. 
- `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
  - `warnings[]` — string; optional. 
- `details` — object or null; required. 
  - `details.*` — any value; optional. 
- `stale` — object or null; required. 
  - `stale.reason` — string; required. 
- `why` — string; required. The agent's reason, in its words
- `evidence` — array; required. 
  - `evidence[]` — object; optional. 
    - `evidence[].label` — string; required.  minLength: 1; maxLength: 120
    - `evidence[].href` — string; required. 
- `confidence` — string; required.  Allowed: "low", "medium", "high"
- `createdAt` — string; required.  format: "date-time"
- `expiresAt` — string; required.  format: "date-time"
- `decidedBy` — object or null; required. 
  - `decidedBy.memberId` — string; required. 
  - `decidedBy.name` — string or null; required. 
- `decidedAt` — string or null; required.  format: "date-time"
- `rejectReason` — string or null; required.  Allowed: "wrong", "not\_now", "too\_risky", "edited", "other"
- `rejectNote` — string or null; required. 
- `appliedChangesetId` — string or null; required. The member's changeset that applied it (chg_…), which undo_changeset can undo in its window
- `supersedes` — string or null; required. The open proposal this one replaced (prp_…)
