Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_nps_customer_satisfaction

Calculate Net Promoter Score from survey response counts, returning NPS, promoter/detractor percentages, and a loyalty tier for customer satisfaction analysis.

Instructions

Net Promoter Score (NPS) & Customer Sentiment Index Calculator. Calculate your store's Net Promoter Score (NPS) from customer survey distributions, classifying Promoters, Passives, and Detractors. Discipline: ECOMMERCE. Governing mathematical model / formula: NPS = % Promoters (Score 9-10) - % Detractors (Score 0-6).

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of net_promoter_score_nps (Net Promoter Score (NPS)), promoters_percentage (Promoter Percentage), detractors_percentage (Detractor Percentage), loyalty_tier_rating (Customer Loyalty Classification) using promoter_respondents_count (Promoter Responses (Score 9-10) in votes), passive_respondents_count (Passive Responses (Score 7-8) in votes), detractor_respondents_count (Detractor Responses (Score 0-6) in votes). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Net Promoter Score (NPS) & Customer Sentiment Index Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "nps-customer-satisfaction"

    • category (string): "ecommerce"

    • name (string): "Net Promoter Score (NPS) & Customer Sentiment Index Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.net_promoter_score_nps (Net Promoter Score (NPS)): Formatted display string (e.g. '+52 NPS')

      • metrics.promoters_percentage (Promoter Percentage): Formatted display string (e.g. '64.0%')

      • metrics.detractors_percentage (Detractor Percentage): Formatted display string (e.g. '12.0%')

      • metrics.loyalty_tier_rating (Customer Loyalty Classification): Formatted display string (e.g. 'World-Class Customer Loyalty (> +50)')

    • execution_time_ms (number): Latency in milliseconds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "omni_nps_customer_satisfaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
passive_respondents_countNoPassive Responses (Score 7-8) (votes). Satisfied but indifferent customers susceptible to competition. Default: 240. Min: 0. Max: 100000.
promoter_respondents_countNoPromoter Responses (Score 9-10) (votes). Loyal brand advocates who recommend your store. Default: 640. Min: 0. Max: 100000.
detractor_respondents_countNoDetractor Responses (Score 0-6) (votes). Unhappy customers who risk negative reviews and churn. Default: 120. Min: 0. Max: 100000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools