Skip to main content
Glama
AB Tasty MCP Server

AB Tasty MCP Server

Official
by flagship-io

Get Campaign

decision_api_get_campaign

Retrieve a specific campaign by ID for a visitor using their context to return the campaign variation and modifications for targeted delivery.

Instructions

Get a specific campaign by its ID for a visitor with their context. Returns campaign variation and modifications.

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": {
      "visitor_id": "<visitor_id>",
      "campaign_id": "<campaign_id>",
      "context": "<context>",
      "trigger_hit": "<trigger_hit>"
    },
    "name": "decision_api_get_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextYesThe visitor context (key-value pairs for targeting)
visitor_idYesThe unique identifier for the visitor
campaign_idYesThe unique identifier for the campaign
trigger_hitYesWhether to send a hit to analytics (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral disclosure burden. It says the tool returns campaign variation and modifications, but it does not disclose that trigger_hit controls whether an analytics hit is sent, nor does it describe permissions, side effects, or error behavior.

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?

The description is two efficient sentences with the purpose and return content front-loaded. There is no redundant or filler wording.

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?

The schema is fully documented and the description states the basic return content, but there is no output schema and no annotations. For a get tool with a side-effecting trigger_hit parameter, the definition omits important behavioral context.

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 100%, so the input schema already documents all four parameters clearly. The description reinforces that campaign_id identifies the campaign and that visitor context is involved, but it adds little parameter semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: it gets a specific campaign by ID for a visitor with context. It also adds what the result contains: campaign variation and modifications. This clearly distinguishes it from a plural list-style sibling such as get_campaigns.

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

Usage Guidelines4/5

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

The description gives clear context for use: a known campaign ID and a visitor context are required. It does not explicitly name alternatives or exclusions, but the scope is specific enough to guide selection.

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