[
  {
    "name": "analytics_calls_total",
    "description": "Get total incoming calls count for the period. Query params: from, to (UTC ISO 8601), optional segment (airtel, non_airtel, all).",
    "parameters": {
      "type": "object",
      "properties": {
        "from": {"type": "string", "description": "Start datetime UTC ISO 8601"},
        "to": {"type": "string", "description": "End datetime UTC ISO 8601"},
        "segment": {"type": "string", "enum": ["airtel", "non_airtel", "all"], "description": "Default: all"}
      },
      "required": ["from", "to"]
    }
  },
  {
    "name": "analytics_calls_bot_vs_agent",
    "description": "Get bot vs agent call summary: handledByBot, transferredToAgent, containmentRate, transferRate. Optional includeBreakdown for per-segment.",
    "parameters": {
      "type": "object",
      "properties": {
        "from": {"type": "string", "description": "Start datetime UTC ISO 8601"},
        "to": {"type": "string", "description": "End datetime UTC ISO 8601"},
        "segment": {"type": "string", "enum": ["airtel", "non_airtel", "all"]},
        "includeBreakdown": {"type": "string", "enum": ["true", "false"], "description": "Include breakdown by segment"}
      },
      "required": ["from", "to"]
    }
  },
  {
    "name": "analytics_calls_aht_bot",
    "description": "Get average handling time (seconds) for bot-only calls in the period.",
    "parameters": {
      "type": "object",
      "properties": {
        "from": {"type": "string", "description": "Start datetime UTC ISO 8601"},
        "to": {"type": "string", "description": "End datetime UTC ISO 8601"},
        "segment": {"type": "string", "enum": ["airtel", "non_airtel", "all"]}
      },
      "required": ["from", "to"]
    }
  }
]
