Skip to main content
Glama

What a campaign brought and cost

get_campaign_result
Read-only

For one campaign on the curve (a marker with a campaign, see list_markers): the visits that came through its links since its first visit, the visits that reached each goal, the revenue tied to it, the cost its owner gave, the cost per visit and per conversion, and the result (revenue minus cost) when both exist in the same currency. When its links name at least two ads (utm_content), by_ad compares them. For a goal with a value its owner gave, an estimated revenue and an estimated result, always apart from the real ones. When its payments' products are known, sold gives each product, its payments and its net amount. It counts what happened during those visits only: someone who came back later on their own to buy is not in it.

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": {
      "site": "<site>",
      "marker": "<marker>"
    },
    "name": "get_campaign_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
markerYesThe campaign marker's id, from list_markers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses the attribution rule that only visits through the campaign's links count and later self-driven purchases are excluded, which is essential for interpreting the numbers. It also flags currency matching for result computation and separates estimated from real revenue/result, details not available in annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Nearly all content is substantive, but it is delivered as one long run-on sentence with a heavy comma-separated clause list, making it harder to scan than a short structured breakdown. The core scope is front-loaded, yet the conditional behaviors (by_ad, estimated values, sold) blur into the same block.

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 carries the full burden of explaining return values and does so thoroughly, covering conditional branches and caveats for a fairly complex analytics tool. Minor gaps remain, such as what is returned when a campaign has no visits or when currency/cost data is absent.

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 coverage is 100% and both parameters are documented there, including that marker comes from list_markers. The description adds no new syntax, format, or constraint information about site or marker beyond what the schema already states, so the baseline of 3 applies.

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 names a specific verb-and-resource pair, one campaign's result, and enumerates the exact outputs (visits, goal visits, revenue, cost, cost per visit/conversion, result). It also distinguishes its scope from adjacent tools by directing the agent to list_markers for the campaign marker and by naming conditional sections (by_ad, sold).

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?

It clearly establishes the precondition that the marker must be a campaign marker and points to list_markers to obtain it, which is the main usage gate. It gives no explicit when-not guidance or named alternative for aggregate or cross-campaign views, leaving that inference to the agent.

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.

Resources