Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Register Dataset

register_dataset

Registers marketing datasets for MMM or CLV analysis and returns a stable reference; accepts raw CSV, Base64, URL, or server path.

Instructions

Register a marketing dataset for MMM or CLV analysis and return a stable dataset reference. For chat sessions (Claude.ai, web clients), pass raw CSV text directly in 'content' with 'filename'. Supports binary/parquet in 'content_base64', remote download in 'url', or server paths in 'path'.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "register_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublicly accessible HTTP or HTTPS URL to download and ingest the dataset from.
pathNoPath to a file on the server filesystem (server-side only; client sandbox paths are rejected).
contentNoDirect CSV or tabular plain-text data. Recommended for Claude.ai, ChatGPT, and remote sessions.
filenameNoOptional filename (e.g. 'campaigns.csv') to preserve file format and extension metadata.
content_base64NoBase64-encoded file bytes for binary, gzipped, or parquet datasets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / content
      Added value: +{
      +  "default": null,
      +  "description": "Direct CSV or tabular plain-text data. Recommended for Claude.ai, ChatGPT, and remote sessions.",
      +  "title": "Content",
      +  "type": "string"
      +}
    • addedInput schema / properties / content_base64
      Added value: +{
      +  "default": null,
      +  "description": "Base64-encoded file bytes for binary, gzipped, or parquet datasets.",
      +  "title": "Content Base64",
      +  "type": "string"
      +}
    • addedInput schema / properties / filename
      Added value: +{
      +  "default": null,
      +  "description": "Optional filename (e.g. 'campaigns.csv') to preserve file format and extension metadata.",
      +  "title": "Filename",
      +  "type": "string"
      +}
    • addedInput schema / properties / path / default
      Added value: +null
    • addedInput schema / properties / path / description
      Added value: +"Path to a file on the server filesystem (server-side only; client sandbox paths are rejected)."
    • addedInput schema / properties / url
      Added value: +{
      +  "default": null,
      +  "description": "Publicly accessible HTTP or HTTPS URL to download and ingest the dataset from.",
      +  "title": "Url",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "path"
      -]
  2. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare non-readOnly, openWorld, non-idempotent and non-destructive, so the safety profile is covered. The description usefully discloses that a stable dataset reference is returned, but says nothing about what happens on repeated registration of the same data (the non-idempotent hint implies duplicates), nor about size/format limits on ingestion.

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?

Three sentences, zero padding, with the core action and return value front-loaded before the ingestion-mode guidance. Every sentence carries information an agent needs to pick a call path.

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?

Covers purpose, all four ingestion routes, and the return shape for a five-parameter tool with no output schema. The notable gap is that zero parameters are required, yet the tool clearly needs at least one source; the description never states that one-of url/path/content/content_base64 must be supplied or what happens if none is.

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 coverage is 100%, so each parameter is already documented, setting the baseline at 3. The description does add mild decision logic by pairing each mode with a session type, but this largely restates the schema's own 'Recommended for Claude.ai' notes rather than adding new semantics.

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 and resource ('Register a marketing dataset') plus the analysis contexts it serves (MMM, CLV) and what it returns ('a stable dataset reference'). It does not explicitly contrast itself with siblings such as inspect_dataset or validate_dataset, so the boundary of the workflow stage is left implicit.

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

Usage Guidelines4/5

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

Gives concrete when-to-use guidance per ingestion mode: chat/web sessions should use 'content' with 'filename', binary/parquet goes in 'content_base64', remote data via 'url', server files via 'path'. It lacks an explicit 'use this before inspect_dataset/validate_dataset' routing statement or a warning about which mode not to use.

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