Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Get Channel Contributions

get_channel_contributions
Read-onlyIdempotent

Retrieve posterior channel contribution summaries from a fitted PyMC-Marketing model to analyze marketing channel impact with honest, data-backed estimates.

Instructions

Return posterior channel contribution summaries from the fitted PyMC-Marketing model. Does not fabricate estimates.

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": {
      "model_id": "<model_id>"
    },
    "name": "get_channel_contributions"
  }
}

Input Schema

NameRequiredDescriptionDefault
model_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.4.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, closed-world operation. The description adds only that results come from a fitted PyMC-Marketing model and that estimates are not fabricated, without covering output shape, model readiness requirements, or error behavior.

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?

The description is two short sentences and is front-loaded with the action and result. The second sentence is somewhat defensive, but the definition is still compact and easy to scan.

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

Completeness3/5

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

For a simple read-only tool with one required parameter and no output schema, the description gives a basic sense of the returned summaries. However, it leaves model_id semantics and returned summary structure underspecified, so an agent would need to infer important invocation details.

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?

There is one required parameter, model_id, with 0% schema description coverage. The description does not explain model_id format, where to obtain it, or what happens if the model is not fitted, so it does not compensate for the missing schema documentation.

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 gives a specific verb and resource: return posterior channel contribution summaries from the fitted PyMC-Marketing model. That is clear enough to distinguish the general purpose, but it does not explicitly differentiate this from sibling tools such as get_incremental_roas or get_response_curves.

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 provides no when-to-use guidance, no exclusions, and no alternatives. It implies that the model must be fitted, but it does not say when an agent should choose this tool over related model-output tools.

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