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

# MCP Tools & Live Updates

> Complete reference for all 7 AuroraX MCP tools, clarifications, and 3-layer stateless live updates.

Every tool ships with a flat LLM-friendly `inputSchema` (no nested `anyOf` or `$ref` in `targets`), strict `outputSchema`, `structuredContent`, and MCP `ToolAnnotations`.

## Tool Catalog

| Tool | Read-Only | Destructive | Exposed To | Purpose |
| - | - | - | - | - |
| `create_request` | No | Yes | All clients | Start a real-world phone outreach request (supports `idempotency_key` & MRTR retries). |
| `submit_request_clarification` | No | No | Non-MRTR\* | Submit structured answers to a `needs_input` request's `pending_form`. |
| `cancel_request` | No | Yes | All clients | Idempotently cancel an active request (`processing`, `needs_input`, `in_progress`). |
| `get_request` | Yes | No | All clients | Snapshot of status, `last_event_seq`, `progress`, calls, ranked results, and `next_action`. |
| `wait_for_request_update` | Yes | No | Non-Tasks\* | Stateless bounded wait (1–45s) for incremental milestones or terminal events. |
| `get_call_transcript` | Yes | No | All clients | Paginated speaker-attributed transcript (`offset`, `limit`) and call summary. |
| `get_call_recording` | Yes | No | All clients | Mint a temporary **12-hour HTTPS download link** (`ResourceLink` + shareable text note). |

*\* `submit_request_clarification` and `wait_for_request_update` remain callable on demand even when pruned from `tools/list` for `2026-07-28` MRTR/Tasks hosts.*

***

## `create_request`

Places real phone calls on behalf of a real end user. Always confirm real `user_details` (`full_name` and E.164 `phone_number`) before invoking, and pass a stable `idempotency_key` so retries never launch duplicate calls.

```json theme={null}
{
  "objective": "Call 3 dentists in Austin to ask about same-week cleaning availability.",
  "user_details": {
    "full_name": "Alex Rivera",
    "phone_number": "+15125550188"
  },
  "targets": [
    { "business": "Bright Smile Dental", "address": "Austin, TX" },
    { "phone_number": "+15125550190", "name": "Downtown Dental", "is_business": true },
    { "business_gmaps_link": "https://maps.app.goo.gl/abcdef123456" }
  ],
  "auto_discover_relevant_businesses": true,
  "search_location": { "address": "Austin, TX", "lat": 30.2672, "lng": -97.7431 },
  "radius_meters": 5000,
  "voice_gender": "auto",
  "webhook_uri": "https://api.yourdomain.com/webhooks/aurora",
  "idempotency_key": "dentist-austin-2026-12-01",
  "wait_seconds": 15
}
```

* **Return shape by client capability:**
  * **MRTR (`2026-07-28` + `elicitation.form`) & `needs_input`:** returns `InputRequiredResult` with `inputRequests` and an HMAC-signed `requestState` token (24h TTL). Retry `create_request` with `requestState` and `inputResponses` to submit answers cleanly.
  * **Tasks-augmented call (`params.task`):** returns a task handle (`taskId == request_id`, `status: "working"`, `pollInterval`).
  * **Standard client:** returns `{ request_id, status, pending_form, overall_summary, final_output, last_event_seq, progress, next_action, next_action_hint }`.

***

## `submit_request_clarification`

Fallback for non-MRTR (`2025-*`) clients when `status == "needs_input"`:

```json theme={null}
{
  "request_id": "req_7c1d9e0f2a4b4c6d8e0f1a2b",
  "form_id": "frm_dentist_1",
  "answers": { "preferred_date": "2026-12-15", "morning_ok": true },
  "wait_seconds": 15
}
```

***

## `cancel_request`

Stops pending and scheduled calls and halts further outreach (`processing`, `needs_input`, or `in_progress`). Idempotent if already `cancelled`; returns `request_already_terminal` if already `completed` or `failed`.

```json theme={null}
{
  "request_id": "req_7c1d9e0f2a4b4c6d8e0f1a2b",
  "reason": "User booked directly"
}
```

***

## `get_request`

Returns the current request snapshot including `last_event_seq`, `progress` counts (`calls_total`, `calls_active`, `calls_scheduled`, `calls_completed`, `calls_failed`, `results_count`, `next_scheduled_at`), `calls[].has_recording`, ranked `results`, and capability-aware `next_action` / `next_action_hint`.

***

## 3-Layer Stateless Live Updates

### Layer A — Inline SSE Progress (`notifications/progress`)

When the client sends `Accept: application/json, text/event-stream` and a `_meta.progressToken`, both `create_request` (during intake wait) and `wait_for_request_update` stream real-time `notifications/progress` frames as events occur.

### Layer B — MCP Tasks (`io.modelcontextprotocol/tasks`)

Requests map 1:1 to stateless MCP Tasks (`taskId == request_id`):

* `tasks/get` — returns `working`, `input_required`, `completed`, `failed`, or `cancelled` with progress metadata and adaptive `pollInterval`.
* `tasks/update` — submits clarification answers for an `input_required` task.
* `tasks/cancel` — cancels an active request.
* `tasks/result` — returns the full request snapshot as a `CallToolResult`.

### Layer C — `wait_for_request_update` & Optional `webhook_uri`

Bounded stateless wait (`1..45` seconds, default `25`) backed by monotonic sequence replay (`after_seq`):

```json theme={null}
{
  "request_id": "req_7c1d9e0f2a4b4c6d8e0f1a2b",
  "after_seq": 2,
  "timeout_seconds": 25,
  "notify_on": "milestones"
}
```

* `notify_on`:
  * `"milestones"` *(default)*: wakes on `request.needs_input`, `request.result.created`, `request.call.created`/`request.call.updated` when status is `completed`, `failed`, or `scheduled`, and all terminal events (`request.completed`, `request.failed`, `request.cancelled`).
  * `"terminal"`: wakes only on `completed`, `failed`, or `cancelled`.
  * `"all"`: wakes on every event `> after_seq`.
* **Scheduled-call short-circuit:** If all remaining calls are scheduled more than 5 minutes out (for example, waiting for a business to open tomorrow), `wait_for_request_update` returns immediately with `next_action: "report_scheduled_and_check_later"` instead of holding the connection.

***

## `get_call_transcript`

Fetches paginated speaker-attributed transcript items (`offset`, `limit` 1–200) plus `total_items`, `has_more`, `has_recording`, and `recording_path`.

***

## `get_call_recording`

Mints a temporary **12-hour signed HTTPS download link** (`audio/mpeg`) for a completed call's recording without bloating the LLM context window with base64 audio.

* On MCP `>= 2025-06-18` clients, returns both an MCP **`ResourceLink`** (`type: "resource_link"`, `uri: download_url`, `mimeType: "audio/mpeg"`) and a **`TextContent`** note repeating the link verbatim and instructing the assistant to share it directly with the user.
* Structured output includes `{ request_id, call_id, download_url, expires_at, expires_in_seconds, mime_type, filename, recording_path, note }`.


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