Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Predict Customer Clv

predict_customer_clv
Read-onlyIdempotent

Generate per-customer customer lifetime value predictions from a fitted BG/NBD model; deprecated in favor of expected-purchase or lifetime-value estimates.

Instructions

Generate per-customer CLV predictions from a fitted BG/NBD model. (Deprecated: prefer predict_expected_purchases or estimate_customer_lifetime_value).

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_customer_clv"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "PredictCLVInput": {
      -    "properties": {
      -      "future_t": {
      -        "default": 12,
      -        "description": "Number of future periods to forecast",
      -        "maximum": 104,
      -        "minimum": 1,
      -        "title": "Future T",
      -        "type": "integer"
      -      },
      -      "model_id": {
      -        "description": "Fitted CLV model ID",
      -        "title": "Model Id",
      -        "type": "string"
      -      },
      -      "top_n_customers": {
      -        "anyOf": [
      -          {
      -            "maximum": 10000,
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "If set, return only the top N customers by expected purchases",
      -        "title": "Top N Customers"
      -      }
      -    },
      -    "required": [
      -      "model_id"
      -    ],
      -    "title": "PredictCLVInput",
      -    "type": "object"
      -  }
      -}
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / config / $ref
      Removed value: -"#/$defs/PredictCLVInput"
    • addedInput schema / properties / config / properties
      Added value: +{
      +  "future_t": {
      +    "default": 12,
      +    "description": "Number of future periods to forecast",
      +    "maximum": 104,
      +    "minimum": 1,
      +    "title": "Future T",
      +    "type": "integer"
      +  },
      +  "model_id": {
      +    "description": "Fitted CLV model ID",
      +    "title": "Model Id",
      +    "type": "string"
      +  },
      +  "top_n_customers": {
      +    "default": null,
      +    "description": "If set, return only the top N customers by expected purchases",
      +    "title": "Top N Customers",
      +    "type": "integer"
      +  }
      +}
    • addedInput schema / properties / config / required
      Added value: +[
      +  "model_id"
      +]
    • addedInput schema / properties / config / title
      Added value: +"PredictCLVInput"
    • addedInput schema / properties / config / type
      Added value: +"object"
  2. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds the prerequisite that a fitted BG/NBD model must exist and that results are per-customer rather than aggregate, but says nothing about cost, latency, or what the per-customer output rows contain.

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

Conciseness5/5

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

Two sentences, zero filler, and the deprecation warning is placed where it will be read immediately after the purpose statement. Nothing is repeated from the name or title.

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 nested-config prediction tool with no output schema and zero parameter coverage in the description, the agent knows what it produces and that it is deprecated but not the shape of the response or how top_n_customers alters it. Adequate to attempt a call, incomplete for interpreting results.

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% and the description mentions no parameters at all — not future_t, not top_n_customers, not the nested config envelope. It doesn't clarify that top_n_customers truncates the result set or that future_t bounds the forecast horizon, so the agent must read the nested schema for every parameter.

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

Purpose5/5

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

States a specific verb and resource ('Generate per-customer CLV predictions') plus the required input artifact ('from a fitted BG/NBD model'), which distinguishes it from estimate_customer_lifetime_value and predict_expected_purchases. An agent can tell what this tool produces without opening the schema.

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

Usage Guidelines4/5

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

The parenthetical explicitly routes the agent away from this tool toward predict_expected_purchases or estimate_customer_lifetime_value, which is real usage guidance. It does not say when this tool remains the right choice (e.g., legacy pipelines or BG/NBD-specific output), so the routing is one-directional.

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