Run Demand Analysis
run_demand_analysisRun the demand analysis and persist a report. Inside the plan-derived reuse window (30 days for Free, 24h for paid tiers) with no new orders the fresh report is reused (the preview says which outcome the commit will take and reports quota status; force=true always recomputes, subject to the monthly audit quota for Free tenants). May spend the tenant's monthly AI allowance on the server-side narration — when AI is off or the allowance is exhausted the report persists stats-only with an explicit skip reason, never an error. Prefer get_demand_analysis_facts (free) when you only need data to narrate yourself. Operator (unpinned) credentials only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_demand_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Bypass the cooldown/watermark reuse and recompute (default false). | |
| preview | No | Step 1 of the required two-step write: set true to receive a structured preview (reuse-vs-recompute) plus a single-use previewReceipt. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| result | No | ||
| preview | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |