[{'Text': '"""GBS (Global Broadband Statistics) tools for PT Research App.\n\nMongoDB utils for Statistics and Sources. Used by PT Systems Agent for\nhuman-supervised GBS data entry (see upc_query_agent issue #37).\n\nUses mongosh (shell) instead of PyMongo - avoids Python SSL issues in\ncloud/EC2 environments. Requires mongosh installed on the host.\n\nRef: pt-research-app schema (Statistics, Sources)\n"""\n\nfrom typing import Optional\n\nfrom point_topic_mcp.core.utils import check_env_vars\nfrom point_topic_mcp.core import mongodb_utils as mongo\nfrom dotenv import load_dotenv\n\nload_dotenv()\n\n# GBS tools require PT Research App MongoDB connection\nif check_env_vars("gbs_tools", ["PT_RESEARCH_DATABASE_URI"]):\n\n    # Valid enums from pt-research-app\n    VALID_TYPES = ["broadband", "mobile", "iptv"]\n    VALID_CHANNELS = ["Infrastructure", "Retail"]\n    VALID_DOMAINS = ["Residential", "Business", "Total"]\n\n    def _valid_object_id(oid: str) -> bool:\n        """Check if string is valid 24-char hex ObjectId."""\n        if not oid or len(oid) != 24:\n'}]