Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Predict Probability Alive

predict_probability_alive
Read-onlyIdempotent

Estimate customer retention by calculating each customer's probability of being alive from a fitted purchase or churn model.

Instructions

Estimate probability of customer retention/alive from a fitted purchase or churn model.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "config": "<config>"
    },
    "name": "predict_probability_alive"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "PredictProbabilityAliveInput": {
      -    "properties": {
      -      "model_id": {
      -        "description": "Fitted purchase/churn model ID",
      -        "title": "Model Id",
      -        "type": "string"
      -      },
      -      "top_n": {
      -        "anyOf": [
      -          {
      -            "maximum": 10000,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Return top N customers by probability alive",
      -        "title": "Top N"
      -      }
      -    },
      -    "required": [
      -      "model_id"
      -    ],
      -    "title": "PredictProbabilityAliveInput",
      -    "type": "object"
      -  }
      -}
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / config / $ref
      Removed value: -"#/$defs/PredictProbabilityAliveInput"
    • addedInput schema / properties / config / properties
      Added value: +{
      +  "model_id": {
      +    "description": "Fitted purchase/churn model ID",
      +    "title": "Model Id",
      +    "type": "string"
      +  },
      +  "top_n": {
      +    "default": null,
      +    "description": "Return top N customers by probability alive",
      +    "title": "Top N",
      +    "type": "integer"
      +  }
      +}
    • addedInput schema / properties / config / required
      Added value: +[
      +  "model_id"
      +]
    • addedInput schema / properties / config / title
      Added value: +"PredictProbabilityAliveInput"
    • addedInput schema / properties / config / type
      Added value: +"object"
  2. First observedv0.4.0

TDQS

B3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds one useful behavioral fact — that the model must already be fitted and can be either purchase or churn type — but says nothing about whether results are per-customer or aggregate, how scoring is bounded, or what happens with an unfit model.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity comes at the cost of the guidance and parameter detail noted elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only prediction tool with no output schema, the core purpose is conveyed, but the nested config object and the top_n ranking behavior leave ambiguity about the shape and scope of results. An agent could invoke it correctly but would not know in advance whether it gets one score or a ranked customer list.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is reported at 0% for the nested config object, so the description must compensate and it does not: 'top_n' (return top N customers by probability alive) is never mentioned, which materially affects what the caller receives. It only echoes the model_id requirement already implied by 'fitted ... model'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Estimate') and resource ('probability of customer retention/alive') and names the required input class ('fitted purchase or churn model'). It is clearly a scoring/prediction tool, distinct from fitting siblings like fit_purchase_model, though it does not explicitly contrast itself with predict_customer_clv or get_churn_risk_cohorts.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only usage signal is the implicit prerequisite of having a fitted purchase or churn model. There is no statement of when to prefer this over predict_customer_clv, get_churn_risk_cohorts, or predict_expected_purchases, and no exclusions or preconditions spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.