Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Validate Dataset

validate_dataset
Read-onlyIdempotent

Run MMM-specific data quality, panel-shape, and identifiability checks before fitting to catch dataset issues early and confirm the data is ready for model training.

Instructions

Run MMM-specific data quality, panel-shape, and identifiability checks. This must pass before fitting.

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": {
      "dataset_id": "<dataset_id>",
      "date_column": "<date_column>",
      "target_column": "<target_column>",
      "channel_columns": "<channel_columns>"
    },
    "name": "validate_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimsNo
dataset_idYes
date_columnYes
target_columnYes
user_overridesNoOptional user overrides for semantic interpretation
channel_columnsYes
control_columnsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / control_columns / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / control_columns / type
      Added value: +"array"
    • removedInput schema / properties / dims / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / dims / type
      Added value: +"array"
    • addedInput schema / properties / user_overrides
      Added value: +{
      +  "default": null,
      +  "description": "Optional user overrides for semantic interpretation",
      +  "title": "User Overrides",
      +  "type": "object"
      +}
  2. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive, closed-world operation, so the safety profile needs no restating. The description adds that the checks are MMM-specific and gating, but does not say what a failure looks like, whether results are cached, or what severity levels exist.

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, no filler, with the substantive scope statement front-loaded and the gating constraint second. Nothing is wasted.

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 seven parameters, four of them required, a nested overrides object, and no output schema, the description is too thin. It never explains how the required column parameters feed the checks or what the agent receives back, which is exactly where the missing output schema leaves a gap.

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 only 14% of seven parameters; only user_overrides carries an inline description. The description says nothing about the roles of dataset_id, date_column, target_column, channel_columns, dims, or control_columns, so an agent must infer the schema mapping to the panel-shape check unaided.

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 ('Run') and a concrete class of checks ('MMM-specific data quality, panel-shape, and identifiability checks'), which distinguishes it from a generic inspect_dataset call. It does not explicitly contrast itself with sibling validation tools such as cross_validate_mmm, but the scope is clear enough to act on.

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?

'This must pass before fitting' gives a clear prerequisite condition tied to the fitting workflow, which is real guidance. However, it says nothing about when to re-run after data changes, how it relates to inspect_dataset or cross_validate_mmm, or what to do on failure.

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