Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Predict Mmm

predict_mmm
Read-onlyIdempotent

Generate out-of-sample posterior predictive forecasts for future media spend and control schedules using an approved marketing mix model; rejected models are blocked.

Instructions

Generate out-of-sample posterior predictive forecasts on an approved MMM for future media spend and control schedules. Rejected models are blocked.

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

Input Schema

NameRequiredDescriptionDefault
configYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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 a closed world, so the safety profile is covered. The description adds one genuine behavioral fact beyond that — that rejected models are gated out — but says nothing about compute cost, whether the random seed makes results reproducible, or what the forecast output looks like.

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, both substantive, with the action and scope front-loaded before the gating constraint. There is no filler or restatement of the title.

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

Completeness4/5

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

For a single-nested-object prediction tool whose annotations already cover safety, the description gives purpose, scope and the key precondition. With no output schema present, one more clause on the shape of the returned forecast intervals would close the remaining gap.

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, so the description has to carry the load, and it does only partially: 'future media spend and control schedules' clarifies what the nested future_periods rows should contain. model_id, hdi_prob, random_seed and include_last_observations are left entirely to their self-explanatory names and schema defaults.

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?

The description names a specific verb and object ('Generate out-of-sample posterior predictive forecasts') plus the resource ('an approved MMM') and the input domain ('future media spend and control schedules'). That is enough to distinguish it from fit_mmm or cross_validate_mmm, though it never names the siblings it is not.

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?

'on an approved MMM' and 'Rejected models are blocked' imply the precondition that a model must already be fitted and accepted, which is real usage context. It stops short of stating when to reach for this versus get_channel_contributions or get_incremental_roas, so the alternative-selection guidance is only implied.

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