Telco Agent Lab
# Telco Agent Lab
A small, fully synthetic telecom sandbox for exploring AI agents and the Model Context Protocol (MCP). It exposes subscriber, network-registration and authentication-status tools, plus guarded demo operations for service provisioning and line suspension.
The project is designed for local experiments, demos and agent-evaluation suites. It has no carrier integrations, external services, API keys, subscriber data, authentication secrets or cryptographic vectors.
## Why this exists
Telecom workflows combine structured operational data, sensitive customer context and actions with real-world consequences. This lab makes those boundaries tangible: customer case notes are explicitly marked untrusted, authentication tools expose status metadata only, and write tools require an explicit confirmation string and emit audit events.
The confirmation mechanism is a **demo guard, not production authorization**. A real deployment must obtain approval through an independent, authenticated control plane and enforce identity, authorization, idempotency, rate limits and durable auditing outside the model.
## Run it
Requires Python 3.11+ and [uv](https://docs.astral.sh/uv/).
```bash
uv sync
uv run telco-agent-lab
```
The server speaks MCP over stdio. Configure your MCP-compatible client to launch `uv run telco-agent-lab` from this repository. The simulator starts fresh each time.
## Tools
| Tool | Purpose |
| --- | --- |
| `list_subscribers` | List synthetic IDs, plans and status |
| `get_subscriber` | Read a profile; case notes are labeled untrusted |
| `get_network_status` | Read synthetic registration metadata |
| `get_auth_status` | Read profile state without returning credentials or vectors |
| `provision_service` | Add a supported service after the demo confirmation flow |
| `suspend_line` | Suspend a synthetic line after the demo confirmation flow |
| `get_audit_log` | Inspect attempted and completed write operations |
Sample subscriber IDs are `sub-1001`, `sub-1002` and `sub-1003`. All phone numbers and IMSIs are reserved-looking synthetic values for this sandbox; do not use them for network operations.
## Test
```bash
uv run pytest
```
## Scope
This is a teaching and prototyping project, not a carrier emulator or production-ready agent. It models a few HLR/HSS/AuC-inspired concepts in memory and intentionally omits protocol stacks, real subscriber credentials, persistence and external connectivity.
## License
MIT. See [LICENSE](LICENSE).
TDQS
Scored across 7 tools
List vs. get subscriber is clearly separated, and the two status reads (network registration vs. AuC profile) target different data despite similar 'get_*_status' shapes. provision_service vs. suspend_line are distinguishable write operations, though an agent may briefly hesitate between the two status tools without reading descriptions.
Every tool follows a clean snake_case verb_noun pattern (list_subscribers, get_subscriber, provision_service, suspend_line, get_audit_log). No mixed casing or vague bare verbs.
Seven tools is well-scoped for a synthetic telco lab: four read paths, two guarded write paths, and an audit read. Nothing feels padded or missing at the count level.
Read coverage is solid (subscribers, network, auth, audit), but the write lifecycle is one-directional: lines can be suspended yet there is no resume/reactivate, and no deprovision or plan-change operation. The dry-run confirmation that gate writes is not exposed as its own visible tool, leaving agents to infer it from descriptions.