Use this skill when users need help analyzing LimaCharlie billing, investigating usage costs, comparing trends across organizations, or understanding what's driving their expenses.
I'll help you investigate and analyze LimaCharlie billing and usage data. Whether you're looking at a single organization, all your organizations, or comparing costs across multiple tenants, I'll guide you through understanding your usage patterns and identifying cost drivers.
CRITICAL: This skill is designed to be conversational and incremental. You must:
DO NOT:
Supporting Documentation:
ASK: "What would you like to investigate about your LimaCharlie billing?"
OPTIONS:
WAIT for user response. DO NOT continue until they answer.
Based on their response, ask:
IF they selected option 1 (specific org): "What's the Organization ID (OID) you'd like to analyze? You can find this in the LimaCharlie web UI under Organization Setup."
WAIT for OID.
IF they selected option 2 (all orgs): "I'll help you analyze all organizations you have access to. Let me get the list using the MCP server."
Use limacharlie:list_user_orgs to get all accessible organizations.
IF they selected option 5 (compare specific orgs): "Which organizations would you like to compare? Please provide the Organization IDs (OIDs) separated by commas."
WAIT for OIDs.
IF they selected option 7 (download invoices): "Which months and year do you need invoices for? (e.g., 'January 2025' or 'Q1 2025')"
Use limacharlie:get_org_invoice_url to generate download links.
IF they selected option 8 (understand charge/SKU): "What charge or SKU are you asking about? I can look it up in the SKU catalog."
Use limacharlie:get_sku_definitions to explain the SKU.
IF they selected option 9 (payment/subscription): "Let me check your billing details and subscription status..."
Use limacharlie:get_billing_details to show payment method and subscription info.
SAY: "Let me fetch the billing and usage data for [organization(s)]..."
Use MCP tools (with fully qualified names):
limacharlie:get_org_info - Organization details (name, tier, location, quota)limacharlie:get_usage_stats - Current cycle usage statisticslimacharlie:get_billing_details - Stripe billing data (subscriptions, payments)limacharlie:get_sku_definitions - SKU catalog (when explaining charges)limacharlie:get_org_invoice_url - Invoice download links (when requested)limacharlie:list_user_orgs - List accessible organizationsFor each organization, retrieve:
Based on the data retrieved, analyze and present:
SAY: "Here's what I found for [Org Name] (OID: [OID]):"
Present in this structure:
Organization Overview
limacharlie:get_billing_details)Top Cost Drivers (sorted by highest to lowest)
Usage Highlights
Observations
ASK: "Would you like me to dig deeper into any of these areas, or suggest ways to optimize costs?"
SAY: "Here's a comparison across [N] organizations:"
Present as a table:
| Organization | Sensors | Output Data | Event Volume | Top Cost Item | Estimated Monthly |
|---|---|---|---|---|---|
| Org A | 50 | 25 GB | 10M events | Sensors | $XXX |
| Org B | 100 | 150 GB | 45M events | Output data | $XXX |
| Org C | 20 | 5 GB | 2M events | Sensors | $XXX |
Highlight:
ASK: "Would you like me to investigate any specific organization in detail, or explore optimization strategies?"
Reference: See EXAMPLES.md for multi-org analysis examples.
When user wants deeper analysis, offer these options:
For Cost Drivers: "Let me break down [specific cost area] in detail..."
For Sensors:
Quota Utilization Interpretation: When analyzing quota utilization, interpret percentages as follows:
< 50% utilization: ⚠️ WASTEFUL - User is paying for many unused sensors. Recommend reducing quota to match actual usage + 10-20% headroom for growth.
50-75% utilization: Low efficiency - Consider quota reduction to optimize costs.
75-95% utilization: ✅ OPTIMAL - Good balance of usage and headroom. This is the ideal range.
95-100% utilization: High utilization - Operating near capacity. Monitor for potential service issues.
> 100% utilization: ❌ SERVICE DEGRADATION - Sensors over quota will experience spotty/unreliable connectivity. This is NOT a billing issue (no overage charges), but a service reliability issue.
For Output Data:
For Event Storage:
For Queries:
Reference: See REFERENCE.md for detailed cost optimization strategies.
SAY: "Let me analyze usage trends over time..."
Note: The limacharlie:get_usage_stats tool provides current billing cycle data. For historical trends, guide the user to:
Usage Alerts Extension: "I recommend setting up the Usage Alerts extension to monitor ongoing usage and get alerts when thresholds are reached."
BigQuery Export: "For comprehensive historical analysis, you can export billing records to BigQuery and build custom reports with Looker Studio."
Reference: See REFERENCE.md section "Setting Up Cost Monitoring" for detailed setup instructions.
When user needs invoices:
limacharlie:get_org_invoice_url for each monthExample:
Here are your invoice download links:
- January 2025: [Stripe invoice URL]
- February 2025: [Stripe invoice URL]
- March 2025: [Stripe invoice URL]
These links go directly to your Stripe invoices in PDF format.
Reference: See EXAMPLES.md "Workflow 6: Download invoices for finance team"
When user asks "What is [SKU name]?":
limacharlie:get_sku_definitions to fetch SKU cataloglimacharlie:get_usage_stats if applicableExample:
"USP Telemetry Processed" ingests security telemetry from non-endpoint sources
like cloud logs and network devices. It's measured per GB processed at $15/GB.
Your current usage: 23GB this cycle (~$345)
Reference: See EXAMPLES.md "Workflow 7: What is this charge on my invoice?"
When user asks about payment method or subscription:
limacharlie:get_billing_details to fetch Stripe dataExample:
Payment method:
- Card: Visa ending in 9463
- Expires: 10/2027
- Status: Valid
Subscription:
- Status: Active
- Current cycle: Jan 3 - Feb 3, 2025
- Next invoice: Feb 3, 2025
Reference: See EXAMPLES.md "Workflow 8: What payment method am I using?"
limacharlie:get_org_info
Purpose: Retrieve organization metadata and configuration
Returns:
When to use:
limacharlie:get_usage_stats
Purpose: Retrieve current billing cycle usage statistics
Returns:
When to use:
Note: Provides current billing cycle data only. For historical trends, guide users to BigQuery export.
limacharlie:get_billing_details
Purpose: Get Stripe billing data including subscriptions, payment methods, and customer information
Returns:
When to use:
Example: See EXAMPLES.md "Example 6: Subscription Status Check"
limacharlie:get_org_invoice_url
Purpose: Generate Stripe invoice download URLs for specific months
Parameters:
year (required): Year of invoice (e.g., 2025)month (required): Month number 1-12 (e.g., 1 for January)format (optional): Invoice format parameterReturns:
When to use:
Example:
# Get January 2025 invoice