Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Query Viz Spec

query_viz_spec

Evaluate a visualization spec or handle with optional viewport zoom and cross-filter selections, apply update or overlay modes, and optionally record a new handle revision.

Instructions

Evaluate a visualization spec ('viz:' handle or encoded_spec) with optional viewport zoom ranges and cross-filter SelectionState predicates. Supports 'update' and 'overlay' cross-filter modes and optionally records a new handle revision.

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": "query_viz_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
actorNoagent
handleNo
viewportNo
selectionsNo
encoded_specNo
record_stateNo
cross_filter_modeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and idempotentHint=false; the description is consistent with that by noting that record_state 'optionally records a new handle revision', a real side effect worth surfacing. It stops short of saying what evaluation produces, whether it mutates shared state by default, or what errors occur on a stale handle.

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 dense sentences with the core action front-loaded and no filler. The jargon ('SelectionState predicates') is compact rather than padded, though it assumes familiarity the definition never establishes.

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 an 8-parameter, mutable, nested-object tool with no output schema, the definition explains inputs but never says what an evaluation returns (rendered spec, computed data, or a handle) or how failures are reported. That leaves a meaningful gap for an agent that must decide whether to call it at all.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema coverage and 8 bare-titled parameters, the description carries the burden and does well: it defines the handle format ('viz:<n>'), the encoded_spec alternative, viewport zoom ranges, selections as cross-filter SelectionState predicates, record_state's revision effect, and the two cross_filter_mode values ('update'/'overlay') that the schema does not enumerate. It leaves 'note' and 'actor' unexplained, keeping it from a 5.

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 uses a specific verb ('Evaluate') plus resource ('visualization spec') and clarifies the two input forms (a 'viz:<n>' handle or an encoded_spec). It does not distinguish itself from the similarly named siblings create_viz_spec or read_viz_state, so an agent must infer the boundary.

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 text lists capabilities but never states when to choose this tool over create_viz_spec or read_viz_state, nor any prerequisites or exclusions. The only selection guidance is internal (handle vs encoded_spec), which is input choice rather than tool choice.

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