Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Simulate Budget

simulate_budget
Read-onlyIdempotent

Evaluates a proposed budget scenario by sampling posterior channel and dimension-cell responses, returning projected outcomes while rejecting blocked models. Use it to test spend changes before committing.

Instructions

Evaluate the exact requested channel or dimension-cell scenario with posterior response sampling. 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": "simulate_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "BudgetCellChange": {
      -    "properties": {
      -      "channel": {
      -        "title": "Channel",
      -        "type": "string"
      -      },
      -      "dimensions": {
      -        "additionalProperties": {
      -          "anyOf": [
      -            {
      -              "type": "string"
      -            },
      -            {
      -              "type": "integer"
      -            },
      -            {
      -              "type": "number"
      -            },
      -            {
      -              "type": "boolean"
      -            }
      -          ]
      -        },
      -        "title": "Dimensions",
      -        "type": "object"
      -      },
      -      "type": {
      -        "enum": [
      -          "relative",
      -          "absolute"
      -        ],
      -        "title": "Type",
      -        "type": "string"
      -      },
      -      "value": {
      -        "title": "Value",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "value",
      -      "channel"
      -    ],
      -    "title": "BudgetCellChange",
      -    "type": "object"
      -  },
      -  "BudgetChange": {
      -    "properties": {
      -      "type": {
      -        "enum": [
      -          "relative",
      -          "absolute"
      -        ],
      -        "title": "Type",
      -        "type": "string"
      -      },
      -      "value": {
      -        "title": "Value",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "value"
      -    ],
      -    "title": "BudgetChange",
      -    "type": "object"
      -  },
      -  "BudgetSimulationInput": {
      -    "properties": {
      -      "cell_changes": {
      -        "items": {
      -          "$ref": "#/$defs/BudgetCellChange"
      -        },
      -        "maxItems": 1000,
      -        "title": "Cell Changes",
      -        "type": "array"
      -      },
      -      "changes": {
      -        "additionalProperties": {
      -          "$ref": "#/$defs/BudgetChange"
      -        },
      -        "title": "Changes",
      -        "type": "object"
      -      },
      -      "model_id": {
      -        "title": "Model Id",
      -        "type": "string"
      -      },
      -      "planning_periods": {
      -        "default": 8,
      -        "maximum": 260,
      -        "minimum": 1,
      -        "title": "Planning Periods",
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "model_id"
      -    ],
      -    "title": "BudgetSimulationInput",
      -    "type": "object"
      -  }
      -}
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / config / $ref
      Removed value: -"#/$defs/BudgetSimulationInput"
    • addedInput schema / properties / config / properties
      Added value: +{
      +  "cell_changes": {
      +    "items": {
      +      "properties": {
      +        "channel": {
      +          "title": "Channel",
      +          "type": "string"
      +        },
      +        "dimensions": {
      +          "additionalProperties": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "number"
      +              },
      +              {
      +                "type": "boolean"
      +              }
      +            ]
      +          },
      +          "title": "Dimensions",
      +          "type": "object"
      +        },
      +        "type": {
      +          "enum": [
      +            "relative",
      +            "absolute",
      +            "set_spend",
      +            "add_spend",
      +            "multiply_spend",
      +            "percent_change"
      +          ],
      +          "title": "Type",
      +          "type": "string"
      +        },
      +        "value": {
      +          "title": "Value",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "value",
      +        "channel"
      +      ],
      +      "title": "BudgetCellChange",
      +      "type": "object"
      +    },
      +    "maxItems": 1000,
      +    "title": "Cell Changes",
      +    "type": "array"
      +  },
      +  "changes": {
      +    "additionalProperties": {
      +      "properties": {
      +        "type": {
      +          "enum": [
      +            "relative",
      +            "absolute",
      +            "set_spend",
      +            "add_spend",
      +            "multiply_spend",
      +            "percent_change"
      +          ],
      +          "title": "Type",
      +          "type": "string"
      +        },
      +        "value": {
      +          "title": "Value",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "value"
      +      ],
      +      "title": "BudgetChange",
      +      "type": "object"
      +    },
      +    "title": "Changes",
      +    "type": "object"
      +  },
      +  "model_id": {
      +    "title": "Model Id",
      +    "type": "string"
      +  },
      +  "planning_periods": {
      +    "default": 8,
      +    "maximum": 260,
      +    "minimum": 1,
      +    "title": "Planning Periods",
      +    "type": "integer"
      +  }
      +}
    • addedInput schema / properties / config / required
      Added value: +[
      +  "model_id"
      +]
    • addedInput schema / properties / config / title
      Added value: +"BudgetSimulationInput"
    • addedInput schema / properties / config / type
      Added value: +"object"
  2. First observedv0.4.0

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is covered. The description adds two pieces of genuine behavioral context beyond that: results come from posterior response sampling (a stochastic method), and rejected models are blocked (a failure precondition). It does not say what "rejected" means or how the block surfaces.

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?

Two short sentences with no filler, and the scenario-sampling behavior is front-loaded. It is efficient, though the terseness borders on under-specification rather than genuine conciseness.

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 tool with a nested config object, a 1000-item cell_changes array, an enum of change types, and no output schema, two sentences leave the agent without enough to construct a valid call or interpret the response. The stochastic-sampling note helps, but the parameter-level gaps dominate.

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 wraps a nested object with model_id, changes, cell_changes, planning_periods and a six-value change-type enum. The description only alludes to "channel or dimension-cell scenario," giving no meaning for model_id, planning periods, or the relative/absolute/set_spend/add_spend/multiply_spend/percent_change semantics.

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

Purpose3/5

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

"Evaluate the exact requested channel or dimension-cell scenario with posterior response sampling" implies a what-if evaluation on a user-specified scenario rather than an optimization, which is a partial differentiator from optimize_budget. But the verb "Evaluate" is generic and the description never plainly says it runs a budget simulation against a fitted model, nor does it name a sibling 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 Guidelines2/5

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

There is no explicit when-to-use guidance and no comparison to optimize_budget or submit_budget_optimization_job, which are the obvious alternatives for budget work. The only contextual hint is "Rejected models are blocked," which gestures at a precondition without stating how to check or avoid it.

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