Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Create Viz Spec

create_viz_spec

Build and validate renderer-agnostic visualization dashboard specifications for registered datasets or fitted MMM models; persist a compact handle and return downsampled series and sparklines.

Instructions

Create and validate a declarative, renderer-agnostic visualization dashboard spec referencing registered datasets or fitted MMM models. Persists a compact handle (e.g. 'viz:1') and returns LTTB-downsampled series and Unicode sparklines.

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": {
      "figures": "<figures>"
    },
    "name": "create_viz_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
actorNoagent
stateNo
layoutNo
figuresYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

The annotations already declare this is a write operation, non-idempotent, non-destructive, and closed-world. The description adds useful behavioral context beyond those annotations: it validates the spec, persists a compact handle such as 'viz:1', and returns LTTB-downsampled series and Unicode sparklines. It does not explain validation-failure behavior or duplication semantics, but the annotation coverage reduces the burden.

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, front-loaded with the core action and followed by persistence and return behavior. There is no wasted wording and the most important information appears first.

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?

The tool has a required nested array of figure objects and four optional parameters, with no output schema and no schema descriptions. The description covers purpose and return behavior at a high level, but it is not complete enough to tell an agent how to construct the required figures or use the other parameters correctly.

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 description does not explain any of the five parameters. The required 'figures' array is central to invocation, yet its object shape is not described; 'layout', 'state', 'actor', and 'note' are also unaddressed. The description gives only a high-level notion of what the spec contains.

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 states a specific verb and resource: create and validate a declarative visualization dashboard spec. It also clarifies that the spec references registered datasets or fitted MMM models, which helps distinguish it from read/query siblings. However, it does not explicitly name query_viz_spec or read_viz_state as alternatives.

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?

The prerequisite context is implied by 'referencing registered datasets or fitted MMM models', so an agent can infer this is for constructing visualization specs from existing data or models. But there is no explicit when-to-use guidance, no mention of when not to use it, and no routing to query_viz_spec or read_viz_state.

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