cymbal-kiosk-tools-apm
Provides BigQuery application performance monitoring and agent analytics, including tracking agent trajectories, tool latencies, token usage, and retention/conversion funnels.
Enables querying policyholder KYC data, plan specifications, total premiums paid, surrender values, and guaranteed benefits from the PostgreSQL-compatible AlloyDB database.
Uses Twilio's WhatsApp Business API to send VIP queue ticket notifications, branch cabin routing details, and digital slips to customers.
Delivers in-branch VIP queue token slips and branch routing maps to customers over WhatsApp.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cymbal-kiosk-tools-apmLook up policyholder 482-91-0773 and compare surrender value vs loan options."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
āļø Cymbal Life ā Smart Branch Kiosk Modular MCP Tools, Actuarial Engine & BigQuery APM Analytics
An enterprise-grade, decoupled Modular MCP Tools, Actuarial Decision Engine & BigQuery APM Analytics Platform for Cymbal Life Smart Branch Kiosks, built on Google Agent Development Kit (ADK), Model Context Protocol (MCP), Google AlloyDB for PostgreSQL, and Google BigQuery.
This service provides modular tool execution microservices, sub-5ms VPC database queries against AlloyDB, real-time actuarial loan vs. surrender comparisons, in-branch VIP queue ticket generation, and comprehensive BigQuery Application Performance Monitoring (APM).
šļø High-Level System Architecture

Architectural Overview
The system is organized into four distinct operational layers:
Client & In-Branch Kiosk Tier:
Smart Kiosk Touch Interface: High-resolution touchscreen terminal displaying real-time policy breakdown cards, loan calculators, and queue token numbers.
AudioWorklet Processor: 16kHz linear PCM audio capture from branch microphones.
Live Kiosk Telemetry Monitor: Displays live function calls, server latencies, and tool arguments.
Real-Time Streaming Gateway & ADK Agent Core (Cloud Run):
FastAPI Async WebSocket Bridge (
/ws/live): Proxies bi-directional audio/video streams to Vertex AI Gemini Live API.ADK Virtual Branch Advisor Agent ("Priya"): Coordinates customer intents, verifies policyholder identity, and executes domain tools.
Live Event Telemetry Broadcaster (
_notify_ui): Pushes real-time database query results and actuarial calculation cards to the kiosk screen.
Modular Model Context Protocol (MCP) Tools Tier:
policy_toolsMicroservice: Real-time SQL queries against AlloyDB for customer KYC, plan specifications, and total premiums paid.actuarial_toolsDecision Engine: Computes exact financial trade-offs between policy surrender forfeiture penalties (-ā¹4.2L) versus instant kiosk policy loans (ā¹4.8L @ 8.5%).branch_toolsOperations Microservice: Generates VIP queue escalation tokens (#RET-04), assigns to Branch Manager Cabin 2, and dispatches digital slips over WhatsApp.
Enterprise Data, APM Analytics & Omnichannel Layer:
Google AlloyDB for PostgreSQL: Enterprise database cluster managing customer KYC records, active policies, surrender schedules, and escalation tickets via sub-5ms VPC queries.
Google BigQuery APM & Agent Analytics Suite: Records turn-by-turn agent trajectories, tool latencies, token consumption, and retention conversion funnels.
Twilio WhatsApp Business API: Dispatches digital VIP token slips and branch cabin routing maps to the customer's mobile number.
Related MCP server: MCP Business AI Transformation
š§° Modular MCP Tools Catalog
The tool microservices are located under backend/tools/:
Tool Module | Function Name | Category | Description |
| Core Banking | Real-time AlloyDB query for customer KYC, plan specs, total premiums paid (ā¹6.0L), surrender value (ā¹3.8L), and guaranteed benefits (ā¹18L). | |
| Actuarial Engine | Compares financial trade-offs: Surrender loss (-ā¹4.2L) vs. Instant Kiosk Loan (ā¹4.8L @ 8.5%) vs. Reduced Paid-Up status. | |
| Operations | Generates in-branch VIP escalation ticket ( |
š BigQuery APM & Agent Analytics Suite
The platform includes a complete BigQuery Application Performance Monitoring (APM) suite documented in docs/ANALYTICS_QUERIES.md:
Session Trajectory & Tool Execution Audit: Tracks turn-by-turn tool invocations and execution durations.
Perceptual Latency & P95 Distribution: Monitors voice-to-tool round-trip latency (<150ms target).
Retention Conversion & Policy Loan Uptake: Measures how many surrender-intent customers convert to instant kiosk policy loans.
Branch Queue & VIP Ticket Escalation APM: Tracks escalation ticket resolution times across branch cabins.
š Repository Structure
cymbal-kiosk-tools-apm/
āāā docs/
ā āāā architecture.jpg # High-level architecture block diagram
ā āāā ARCHITECTURE.md # Full enterprise architecture specification
ā āāā ANALYTICS_QUERIES.md # BigQuery APM SQL queries & trajectory audit
āāā pyproject.toml # Dependencies (google-adk, fastapi, psycopg2-binary, uvicorn)
āāā requirements.txt # Python dependencies
āāā run.sh # Local startup script
āāā Dockerfile # Production container spec
āāā .gitignore
āāā .env.example # Environment configuration template
āāā backend/
ā āāā __init__.py
ā āāā agent.py # ADK Agent definition & retention prompt
ā āāā database.py # Google AlloyDB PostgreSQL connector (psycopg2)
ā āāā mcp_tools.py # MCP tools facade & WebSocket telemetry broadcaster
ā āāā analytics.py # BigQuery agent analytics plugin
ā āāā avatar.png # Assistant avatar asset
ā āāā server.py # FastAPI WebSocket /ws/live endpoint
ā āāā tools/ # Modular MCP Tool Microservices
ā āāā __init__.py
ā āāā policy_tools.py # Policy lookup microservice
ā āāā actuarial_tools.py # Actuarial decision engine
ā āāā branch_tools.py # VIP escalation & WhatsApp dispatcher
āāā frontend/
āāā index.html # Kiosk terminal touch interface
āāā style.css # Cymbal Life corporate styling
āāā app.js # WebSocket client & telemetry renderer
āāā dashboard.html # Executive APM Analytics Dashboardš Quick Start Guide
Prerequisites
Python:
3.11to3.13Google Cloud SDK (
gcloud): Configured with an active GCP project.Google AlloyDB for PostgreSQL: Accessible cluster with customer and policy schemas.
Step 1: Clone Repository & Configure Environment
git clone https://github.com/niteshwalia0124/cymbal-kiosk-tools-apm.git
cd cymbal-kiosk-tools-apm
# Create .env from template
cp .env.example .envConfigure your .env variables:
GOOGLE_GENAI_USE_VERTEXAI=true
GOOGLE_CLOUD_PROJECT=your-gcp-project-id
GOOGLE_CLOUD_LOCATION=us-central1
PORT=8080
AVATAR_NAME=Priya
# AlloyDB / Cloud SQL PostgreSQL Connection
DB_USER=postgres
DB_PASS=your-database-password
DB_NAME=postgres
DB_HOST=10.48.19.2
DB_PORT=5432
# Twilio WhatsApp (Optional)
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_WHATSAPP_FROM=whatsapp:+14155238886
# BigQuery Agent Analytics
BIGQUERY_PROJECT_ID=your-gcp-project-id
BIGQUERY_DATASET_ID=cymbal_kiosk_analytics
BIGQUERY_TABLE_ID=agent_trajectory_logsAuthenticate with Google Cloud:
gcloud auth application-default login
gcloud config set project your-gcp-project-idStep 2: Run Locally
chmod +x run.sh
./run.shOpen http://localhost:8080 in your browser to interact with the kiosk tools and telemetry deck.
š³ Cloud Run Deployment
Deploy the modular tools service to Google Cloud Run with VPC peering for AlloyDB:
export PROJECT_ID=$(gcloud config get-value project)
export REGION="us-central1"
export SERVICE_NAME="cymbal-kiosk-tools-apm"
gcloud run deploy $SERVICE_NAME \
--source . \
--region $REGION \
--project $PROJECT_ID \
--allow-unauthenticated \
--set-env-vars GOOGLE_CLOUD_PROJECT=$PROJECT_ID,GOOGLE_CLOUD_LOCATION=$REGION,DB_HOST=10.48.19.2 \
--vpc-connector="projects/$PROJECT_ID/locations/$REGION/connectors/kiosk-vpc-connector" \
--memory 2Gi \
--cpu 2 \
--timeout 3600š License
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive integration with Azure AI services including OpenAI, Cognitive Services, Computer Vision, and Face API through a mission-critical MCP server. Provides enterprise-grade reliability with high availability, observability, chaos engineering, and secure multi-region deployment capabilities.MIT
- FlicenseNot gradedqualityCmaintenanceEnterprise-grade MCP server with multi-agent system for business AI transformation across finance, healthcare, retail, and other domains. Provides specialized AI agents for data analysis, API execution, business validation, and report generation with real-time monitoring and observability.
- FlicenseNot gradedqualityBmaintenanceMCP server for orchestrating the consignado loan journey via WhatsApp agent, centralizing flow rules, identity resolution, and journey consistency.
- AlicenseNot gradedqualityNot gradedmaintenanceConnects legacy COBOL mainframe systems to modern AI governance via MCP, with tools for parsing copybooks, assessing CICS, scanning JCL, mapping VSAM, and translating EBCDIC.1MIT
Related MCP Connectors
An AI concierge that turns static forms into adaptive AI conversations. From any MCP client.
34 production API tools over one hosted MCP endpoint.
Remote MCP for A2A failure replay MCP, structured receipts, audit logs, and reviewer-ready evidence.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/niteshwalia0124/cymbal-kiosk-tools-apm'
If you have feedback or need assistance with the MCP directory API, please join our Discord server