Skip to main content
Glama

Recover Revenue

recover_revenue
Read-onlyIdempotent

Use this after a specific revenue-loss event already happened and the caller needs the next recovery action. Returns a prioritized decision packet; KlearFlow sends no external message. Execution costs $0.05 via x402 Base USDC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
industryNoOptional business industry or service category used to tailor the recovery action.
eventTypeYesSpecific revenue-loss event to recover: missed call, stale lead, unanswered quote, appointment no-show, or failed payment.
bookingUrlNoOptional booking URL to include in a recommended recovery message.
paymentUrlNoOptional secure payment-retry URL for payment_failed events.
businessNameNoOptional business name used to label the recovery packet.
priorAttemptsNoNumber of prior recovery outreach attempts already made.
preferredChannelNoPreferred recovery channel. Use auto to let KlearFlow select among SMS, email, or a human phone task.
customerFirstNameNoOptional customer first name used only when composing the recommended action text.
minutesSinceEventYesMinutes elapsed since the revenue-loss event occurred.
averageOpportunityValueNoEstimated gross value in USD of the customer opportunity.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesRecovery decision packet containing priority, recommended action, fallbacks, stop conditions, modeled economics, and safety boundaries.
paymentYes
proofIdYesUnique KlearFlow proof identifier for this settled paid execution.
priceUsdYesUSDC-denominated execution price settled through x402.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / businessName / description
      Added value: +"Optional business name used to label the recovery packet."
    • addedInput schema / properties / customerFirstName / description
      Added value: +"Optional customer first name used only when composing the recommended action text."
    • addedInput schema / properties / eventType / description
      Added value: +"Specific revenue-loss event to recover: missed call, stale lead, unanswered quote, appointment no-show, or failed payment."
    • addedInput schema / properties / industry / description
      Added value: +"Optional business industry or service category used to tailor the recovery action."
    • addedInput schema / properties / preferredChannel / description
      Added value: +"Preferred recovery channel. Use auto to let KlearFlow select among SMS, email, or a human phone task."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "payment": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "network": {
      +          "description": "Payment network identifier, currently Base mainnet eip155:8453.",
      +          "type": "string"
      +        },
      +        "payer": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Settled payer address when supplied by the payment facilitator."
      +        },
      +        "protocol": {
      +          "const": "x402",
      +          "type": "string"
      +        },
      +        "transaction": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Settlement transaction identifier when available."
      +        }
      +      },
      +      "required": [
      +        "protocol",
      +        "payer",
      +        "transaction",
      +        "network"
      +      ],
      +      "type": "object"
      +    },
      +    "priceUsd": {
      +      "description": "USDC-denominated execution price settled through x402.",
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "proofId": {
      +      "description": "Unique KlearFlow proof identifier for this settled paid execution.",
      +      "type": "string"
      +    },
      +    "result": {
      +      "additionalProperties": true,
      +      "description": "Recovery decision packet containing priority, recommended action, fallbacks, stop conditions, modeled economics, and safety boundaries.",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "proofId",
      +    "priceUsd",
      +    "payment",
      +    "result"
      +  ],
      +  "type": "object"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / averageOpportunityValue / description
      Added value: +"Estimated gross value in USD of the customer opportunity."
    • addedInput schema / properties / bookingUrl / description
      Added value: +"Optional booking URL to include in a recommended recovery message."
    • addedInput schema / properties / minutesSinceEvent / description
      Added value: +"Minutes elapsed since the revenue-loss event occurred."
    • addedInput schema / properties / paymentUrl / description
      Added value: +"Optional secure payment-retry URL for payment_failed events."
    • addedInput schema / properties / priorAttempts / description
      Added value: +"Number of prior recovery outreach attempts already made."
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources