Skip to main content
Glama
getsimba-ai

Simba MCP Server

Official
by getsimba-ai

Get Campaign Report

get_campaign_report
Read-onlyIdempotent

Report campaign spend, impressions, clicks, and platform conversions or value by platform, channel, campaign, or ad set across any date window and granularity.

Instructions

Report the campaign facts over any window, at any grain, by platform, model channel, campaign or ad set.

The same report engine as get_data_report, over the campaign facts: spend, media:impressions, media:clicks, outcome:platform_conversions, outcome:platform_value and, where a source fills them, outcome:last_click_conversions and outcome:last_click_value. These are the PLATFORMS' own attributed numbers, not Simba's incremental attribution.

group_by: "channel" groups by the model channel each campaign counts towards under the model's map (give model_hash); spend of unmapped campaigns appears as its own group, "unmapped", and is never dropped or guessed into a channel. Without model_hash every row is "unmapped".

Returns {granularity, data_through, rows: [{period_start, period_end, group, metric, value, unit}], meta: {basis, aggregation, roles, channels}, as_of, source_versions, currency}. as_of is when the facts were last ingested; source_versions the pipeline versions they came from.

Args: model_hash: The model whose map decides the channels (optional; needed for group_by=channel). start, end: Optional ISO dates (YYYY-MM-DD), inclusive. granularity: "native" (daily, as stored), "week", "month", "quarter" or "year". group_by: "platform", "channel", "campaign" or "adset". Default: one total per period. platform, channel, campaign_id: Filters applied before grouping. metrics: Roles to include, e.g. ["spend", "outcome:platform_conversions"]. Default: all.

Errors carry a code: campaign_facts_empty (404, nothing matches), invalid_report_request (400), report_too_large (413: narrow the window or coarsen the granularity).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
startNo
channelNo
metricsNo
group_byNo
platformNo
model_hashNo
campaign_idNo
granularityNonative

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.14.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), and the description adds substantial context beyond them: the 'unmapped' group guarantee that spend is 'never dropped or guessed into a channel,' the meaning of as_of and source_versions, and the error codes with their HTTP statuses and remediation. This is exactly the extra behavioral detail annotations cannot carry.

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?

Front-loaded with the purpose and sibling contrast, then a Returns block, then an Args block that mirrors the schema. Every sentence carries information, but the return-shape paragraph is partially redundant given an output schema exists, and the Args block, while necessary at 0% coverage, makes the definition long.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, zero-required aggregation tool this is complete: purpose, metric availability caveats ('where a source fills them'), grouping edge case, return shape, defaults, and error taxonomy are all present. An agent has everything needed to call it correctly without further exploration.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry all nine parameters, and it does: model_hash (and its dependency for group_by=channel), start/end inclusivity, granularity semantics, group_by values with the 'unmapped' behavior, filters applied before grouping, and a metrics example with default. It adds meaning the schema cannot express, such as what happens without model_hash.

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?

States a specific verb and resource ('report the campaign facts over any window, at any grain') and pins down the exact metric set (spend, media:impressions, media:clicks, platform conversions/value). It explicitly differentiates itself from siblings by naming get_data_report as the same engine over a different fact table, and from get_campaign_incrementality by noting these are 'the PLATFORMS' own attributed numbers, not Simba's incremental attribution.'

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?

Gives clear context for when to reach for this tool (platform-attributed campaign facts reporting) and contrasts it against incremental attribution, which routes the agent away from get_campaign_incrementality. It also documents the error cases and the remediation ('narrow the window or coarsen the granularity'). It stops short of an explicit 'use X instead when…' rule for get_data_report beyond the fact-table distinction.

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

Deploy Server

Other Tools