Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Analyze Interrupted Time Series

analyze_interrupted_time_series

Estimate Bayesian causal impact and counterfactuals for a product launch, campaign, or pricing intervention using multivariate interrupted time series.

Instructions

Estimate Bayesian Multivariate Interrupted Time Series (MVITS) causal impact and counterfactuals for a product launch, campaign, or pricing intervention.

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": "analyze_interrupted_time_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior2/5

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

Annotations only declare it is not read-only, not destructive, not idempotent and closed-world; they say nothing about cost or execution model. The description omits that this fits a Bayesian sampler (potentially long-running), that method choices trade speed against accuracy, and whether the call returns inline results or a job/artifact reference.

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?

One front-loaded sentence with no filler and no repetition of the title. It is dense with an unexplained acronym (MVITS) but nothing is wasted; it is under-specified rather than over-written.

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

Completeness2/5

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

For a nested-config Bayesian modeling tool with no output schema and no parameter descriptions, a single sentence cannot be complete. An agent still lacks the data requirements, runtime expectations, return shape, and meanings of the sampling parameters needed to invoke it correctly.

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 0% and the single top-level parameter is a nested config with roughly eleven inner fields. The description never clarifies intervention_date straddling, what treated_col vs control_cols mean behaviorally, or how draws/chains/tune/method/hdi_prob/saturated_market affect results, leaving the bulk of configuration meaning undocumented.

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?

Specific verb ('Estimate') plus a named method and outputs ('Bayesian Multivariate Interrupted Time Series causal impact and counterfactuals'), with the domain named (product launch, campaign, pricing intervention). An agent can tell what it produces, though no sibling (e.g. fit_mmm, calibrate_mmm, get_incremental_roas) is named to differentiate it.

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

Usage Guidelines3/5

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

The phrase 'for a product launch, campaign, or pricing intervention' implies the scenario in which this tool applies, but there is no explicit when-not guidance, no prerequisites (dataset must exist with a pre/post time window), and no pointer to alternatives for simpler lift or incrementality questions.

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