Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Fit Bass Model

fit_bass_model

Fit a Bayesian Bass diffusion model to adoption or sales counts over time to estimate innovation, imitation, market potential, and peak adoption.

Instructions

Fit a Bayesian Bass diffusion model on product adoption/sales counts over time to estimate innovation (p), imitation (q), market potential (m), and peak adoption.

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

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 declare readOnlyHint=false and idempotentHint=false, implying a stateful, stochastic training job, but the description never mentions compute cost, sampling runtime, non-determinism despite random_seed, or whether the fitted model is persisted for later use. Beyond naming the estimation target, it adds little behavioral context the annotations don't already imply.

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; the parenthetical abbreviations are compact and informative. It is efficient, though it spends its limited length on output naming rather than the inputs an agent must supply.

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?

A nested-object tool with 8 config parameters, three estimation methods (mcmc/advi/map), and no output schema needs more: the agent gets no sense of runtime, method tradeoffs, or what a 'fit' returns or where it goes. The description covers the what but not the how or the cost.

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

Parameters3/5

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

Schema description coverage is 0% at the top level, and the nested config has 8 settings (draws, tune, chains, method, random_seed, time_col, value_col, dataset_id), yet the description explains none of them — only the two schema-described columns have any documentation, and that documentation comes from the schema, not the description. The p/q/m/peak adoption names refer to outputs, not parameters, so they don't compensate for the coverage gap.

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 (Fit) and resource (Bayesian Bass diffusion model) plus the target quantities (p, q, m, peak adoption), so the agent knows exactly what modeling task this performs. It doesn't name a sibling such as predict_bass_adoption, so the fit-vs-predict distinction must be inferred from the names alone.

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 description says what the model does but gives no when-to-use guidance: no prerequisites (e.g. sufficient time periods, count data shape), no exclusion of the prediction sibling, and no note on choosing between this and other fit_* model tools.

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