Calculate pool capacity
dni_planning.buildreadModel exclusive DNI visitor reservations from anonymous activity windows and a user-chosen hold. Returns peak overlap and periods above a candidate pool, preserving unknown capacity. Pure and free: no provider call, account change, phone-number purchase, allocation, message or phone call. This capacity scenario does not replay the live sticky/LRU allocator or predict dropped calls, attribution accuracy or future traffic.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| windows | object[] | optional | One to 500 windows on a shared relative-minute timeline. Defaults to six explicitly synthetic teaching rows. Same-visitor overlapping or touching ranges merge after the hold is added. Default: [{"visitor":1,"startMinute":0,"lastSeenMinute":5},{"visitor":2,"startMinute":2,"lastSeenMinute":10},{"visitor":3,"startMinute":6,"lastSeenMinute":8},{"visitor":4,"startMinute":31,"lastSeenMinute":33},{"visitor":5,"startMinute":35,"lastSeenMinute":40},{"visitor":6,"startMinute":43,"lastSeenMinute":45}] |
| windows[].visitor | integer | required | Anonymous integer label, not a phone number, contact ID or personal identifier. Reuse the same label only for the same visitor; overlapping/touching reservation ranges merge. |
| windows[].startMinute | integer | required | First minute of this activity window, relative to one shared origin. Whole minutes only. Zero is a real offset; an unknown time must be resolved before modeling. |
| windows[].lastSeenMinute | integer | required | Last observed minute in this window, at or after startMinute. The model assumes continuous reservation between start and last seen, then adds holdMinutes. |
| holdMinutes | integer | optional | Chosen modeling hold after last seen, 1–1440 whole minutes; default 30. This is your assumption, not a read of the live pool. An interval ends exclusively at lastSeenMinute + holdMinutes. Default: 30 |
| candidatePoolSize | integer (or null) | optional | Candidate number count, 0–500, default 3 in the synthetic example. Null means unknown and leaves shortfall comparisons unknown; zero is explicit zero capacity. This does not provision or inspect any numbers. Default: 3 |
Example
curl -X POST https://app.chirply.io/api/v1/actions/dni_planning.build \
-H "Authorization: Bearer chp_live_…" \
-H "Content-Type: application/json" \
-d '{
"holdMinutes": 30,
"candidatePoolSize": 3
}'Over MCP the same operation is the tool dni_planning_build at https://app.chirply.io/api/mcp, same bearer token, same input.

Chirply