Skip to main content
Glama

Klaviyo MCP by InsightfulPipe

Klaviyo Setup Helper

query_contexts
Read-only

Helper for planning InsightfulPipe Klaviyo data queries.

Step 1: request='accounts' – Retrieve workspace_id, brand_id, other source metadata, AND available_actions (all tables you can query).

Step 2: request='actions_details' with actions=['xxxxxx', 'xxxxxx', 'xxxxxx'] – REQUIRED before querying. Replace with actions from available_actions to get the exact request body, required identifiers, fields, time ranges, and notes for each action.

Optional: request='available_actions' – Standalone call to list all available tables/actions (already included in accounts response).

Optional: request='brands' with brand_id + workspace_id to pull brand guidelines.

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": {
      "request": "<request>"
    },
    "name": "query_contexts"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsNo
requestYes
brand_idNo
platformNo
workspace_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already grant readOnlyHint=true, so the safety profile is covered; the description adds the valuable non-obvious trait that actions_details is a mandatory precondition and that specific data (request body, required identifiers, fields, time ranges, notes) is only obtainable there. It does not discuss error behavior or how to recover from an invalid action id, but with an output schema present the return-shape burden is lifted.

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 step-numbered layout is front-loaded and scannable, with each line corresponding to a request mode. There is mild redundancy in restating that available_actions is already included in the accounts response, but that repetition serves a routing purpose rather than padding.

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?

For a five-parameter, read-only, multi-mode metadata tool with a full output schema, the description covers the workflow, the mandatory ordering, and the optional branches well enough to call it correctly. The unaddressed `platform` parameter and the absence of any guidance on invalid or missing workspace/brand ids are the remaining shortfalls.

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?

Schema description coverage is 0%, so the description has to carry all parameter meaning, and it largely does: it enumerates all four `request` values with their purpose, explains `actions` as an array of identifiers sourced from available_actions, and notes brand_id + workspace_id usage for the brands mode. The `platform` parameter is never mentioned anywhere, which is the one real gap.

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 establishes that this is a setup/metadata-discovery tool for Klaviyo queries rather than a data-returning query tool, and the four request modes (accounts, brands, available_actions, actions_details) define its actual surface. It is specific about resources even though the framing sentence ('Helper for planning...') is a bit soft. It does not explicitly name which sibling it feeds into, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit ordered workflow (Step 1 accounts → Step 2 actions_details) and marks actions_details as REQUIRED before querying, which routes the agent away from premature query calls. It also flags two optional calls and even explains that available_actions is redundant with data already in the accounts response, which is a genuine when-not-to-use signal.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.