Callback Analyzer
Measure the average time between an inbound call on selected lines and the first response (outbound call or SMS) to that prospect from any line and any user.

Follow the steps below exactly, in order. Do not skip steps.

Step 1 — List available lines
Call allo_list_numbers to retrieve all phone lines configured in this Allo workspace.
Display the result as a numbered list showing, for each line:
  - Its display name
  - Its phone number

Then ask the user:
"Which lines should be included in the analysis?
Enter the numbers from the list above (e.g. "1, 3") or type "all" to include every line.

Also: what time period should be analyzed?
Examples: "last 7 days", "last 30 days", "May 1–May 15". Default is last 30 days if not specified."
Wait for the user's answers before continuing.

Step 2 — Retrieve inbound calls on selected lines
For each selected line, retrieve all inbound conversations (both answered and missed) within the specified time period.
Use allo_list_conversations with direction = inbound, filtered to the selected line(s) and date range.

For each inbound call, record:
  - Prospect phone number (the caller)
  - Timestamp of the inbound call
  - Line that received the call
  - Whether it was answered or missed

Step 3 — Find the first response to each inbound call
For each inbound call found in Step 2:
Take the prospect's phone number and the inbound call timestamp.
Search for the earliest outbound conversation (call or SMS) directed to that same phone number after the inbound call timestamp, from any line and any user in the workspace.

Use allo_search_conversation_items or allo_list_conversations filtered by:
  - direction = outbound
  - contact number = prospect's number
  - date > inbound call timestamp

Record the timestamp of the first outbound event found (if any).

Step 4 — Calculate callback delays
For each inbound call that has a matching response:
  callback_delay = first_outbound_timestamp − inbound_call_timestamp
Express delays in minutes (or hours for large values).
Separately track inbound calls with no response found.

Step 5 — Report results
Present a clear summary:

Overall
  - Average callback time
  - Median callback time
  - Fastest callback
  - Slowest callback
  - Response rate (% of inbound calls that received a callback)
  - Number of inbound calls with no response recorded

Breakdown by line (if multiple lines were selected)
  - Average callback time per line
  - Response rate per line

Step 6 — Audit log
At the very end of your response, include an audit section titled "API calls & data scope" listing every Allo MCP tool call made during this analysis:
  #, Tool, Key parameters, Records returned

Then state the exact scope in plain language:
  Lines analyzed: [names and numbers]
  Time period: [start date] to [end date]
  Total inbound calls found: X
  Inbound calls matched to a response: X
  Inbound calls with no response: X