Skip to main content
Glama
PyMC Marketing MCP

PyMC Marketing MCP

by funnelscript

Read Viz State

read_viz_state
Read-onlyIdempotent

Retrieve zoomed viewports, brushed filters, cross-filter mode, revision, and filtered row counts for a visualization handle or encoded spec without transferring raw data or screenshots.

Instructions

Read back the active InteractionState (zoomed viewports, brushed ClauseFilter predicates, cross_filter_mode, revision) and filtered row counts for a 'viz:' handle or encoded_spec without transferring raw dataset rows or screenshots.

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

Input Schema

NameRequiredDescriptionDefault
handleNo
encoded_specNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description still adds real behavioral context: it discloses that no raw dataset rows or screenshots are transferred, which tells the agent the response is a lightweight state payload rather than data retrieval, and it enumerates the state fields returned.

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?

A single front-loaded sentence that states the resource, the return contents, the accepted inputs, and the key behavioral constraint. Dense but every clause carries information; no filler or restatement of the tool name.

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?

With no output schema, the description correctly takes on the job of describing return values by enumerating the InteractionState components and filtered row counts. It also clarifies the payload boundary (no raw rows or screenshots). Only the error/empty-state behavior for an invalid or stale handle is unaddressed.

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 description coverage is 0% and both parameters ('Handle', 'Encoded Spec') carry only titles, so the description must compensate. It does give a format hint for the handle ('viz:<n>'), but leaves encoded_spec's format unexplained and never states whether the two arguments are alternatives or which takes precedence, nor that both are optional.

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 names a specific verb+resource ('Read back the active InteractionState') and enumerates exactly what is returned (zoomed viewports, brushed ClauseFilter predicates, cross_filter_mode, revision, filtered row counts). It also states the two accepted addressing forms ('viz:<n>' handle or encoded_spec). It stops short of naming a sibling such as query_viz_spec to disambiguate, so it is clear but not fully differentiated.

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?

Usage is implied by the input context ('for a viz:<n> handle or encoded_spec') and by the negative constraint about not pulling raw rows or screenshots, which hints at when this is preferable to a data-returning call. However, there is no explicit when-to-use / when-not-to-use statement and no referenced alternative tool.

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