[{'Text': 'Edited point-topic-mcp/src/point_topic_mcp/tools/gbs_tools.py:\n\n```diff\n@@ -325,47 +325,29 @@\n         if subscribers < 0:\n             return f"Invalid subscribers: {subscribers}. Must be >= 0"\n \n-        op = mongo.find_one_operator_by_id(operator_id)\n-        if not op:\n-            return f"Operator not found: {operator_id}"\n+        # Single mongosh call: lookup operator, validate tech, check dupes, insert\n+        result_raw = mongo.insert_statistic_safe(\n+            operator_id=operator_id,\n+            type_val=type,\n+            period=period,\n+            tech_val=tech,\n+            channel=channel,\n+            domain=domain,\n+            subscribers=subscribers,\n+            created_by=created_by,\n+            is_estimate=is_estimate,\n+            restated=restated,\n+            notes=notes or None,\n+        )\n+        result = json.loads(result_raw)\n \n-        op_name = op.get("name", "")\n-        op_country = op.get("country", "")\n-        techs = op.get("technologies", [])\n-        tech_match = next((t for t in techs if t.lower() == tech.lower()), None)\n-        if not tech_match:\n-            return f"Tech \'{tech}\' not valid for operator \'{op_name}\'. Valid: {techs}"\n+        if not result.get("ok"):\n+            return result.get("error", "Insert failed: unknown error")\n \n-        # Check for duplicate (same operator, period, type, tech, channel, domain)\n-        existing = mongo.find_statistics(operator_id, period)\n-        for s in existing:\n-            if (s.get("type") == type\n-                    and s.get("tech") == tech_match\n-                    and s.get("channel") == channel\n-                    and s.get("domain") == domain):\n-                eid = mongo._oid_from_doc(s)\n-                return (\n-                    f"Duplicate: statistic already exists for "\n-                    f"{type}/{tech_match}/{channel}/{domain} in {period} "\n-                    f"(id={eid}, state={s.get(\'state\', \'?\')}). Not inserted."\n-                )\n-\n-        doc = {\n-            "type": type,\n-            "country": op_country,\n-            "operator": op_name,\n-            "operatorId": operator_id,\n-            "period": period,\n-            "tech": tech_match,\n-            "channel": channel,\n-            "domain": domain,\n-            "subscribers": subscribers,\n-            "is_estimate": is_estimate,\n-            "restated": restated,\n-            "notes": notes or None,\n-            "createdBy": created_by,\n-        }\n-        inserted_id = mongo.insert_one_statistic(doc)\n+        inserted_id = result["insertedId"]\n+        op_name = result.get("operator", "")\n+        op_country = result.get("country", "")\n+        tech_match = result.get("tech", tech)\n         admin_url = _gbs_admin_url(operator_id)\n         return (\n             f"Created statistic {inserted_id} (state: pending)\\n"\n\n```'}]