Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Get Incremental Roas

get_incremental_roas
Read-onlyIdempotent

Returns total and marginal incremental ROAS with posterior uncertainty from PyMC-Marketing's official API, replacing ad-hoc LLM calculations.

Instructions

Return total and marginal iROAS from PyMC-Marketing's official incrementality API, including posterior uncertainty. No ad-hoc LLM ROAS calculation.

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

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.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so safety and repeatability are covered. The description adds that results include posterior uncertainty and that values come from the official API rather than an LLM estimate. It says nothing about error behavior when a model lacks incrementality output, or about cost/latency of posterior computation.

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, front-loaded with the return value and followed by a usage caveat. There is essentially no wasted wording, though the second sentence reads more as a warning than as structured guidance.

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?

A single-parameter read tool with annotations and no output schema would need little text, but the one parameter is entirely unexplained and the shape of 'posterior uncertainty' is left vague. An agent can call it, but may pass a wrong model_id or misread the response.

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 only parameter, model_id, is undocumented in both schema and description. With low coverage the description is expected to compensate, yet it gives no hint about what model_id refers to, where to obtain it, or what happens with an unfit model.

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 ('Return total and marginal iROAS') and pins the source to PyMC-Marketing's official incrementality API. It implicitly separates itself from ad-hoc ROAS estimates, but never names a sibling such as get_channel_contributions or get_response_curves, so differentiation relies on the reader inferring behavior of tools not described here.

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?

Users are told to prefer this over ad-hoc LLM ROAS calculation, which is a real usage signal. There is no statement of prerequisites (e.g. the model must have been fitted with incrementality results), no when-not guidance, and no alternative output path if the call fails.

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