Skip to main content
Glama

Get a campaign

flow_get_campaign
Read-only

One campaign by id: audience, steps (channel, sender, template, fallback condition), schedule and pacing, and its performance once sent. performance.sent and delivered count messages, each fallback hop as one; sentParts and deliveredParts are the SMS parts they were billed as. rate is delivered over recipients; the breakdown rows give each channel's own rate. performance.cost is in EUR. A manual A/B test awaiting its winner keeps collecting clicks with no end date (settlement.collecting true, settlesAt null) until the winner is picked. On an A/B test, recipientCount is the whole audience, performance.recipients the rounds' contacts until the winner's send exists, then that send's contacts alone, abTest.testRecipientCount every round's contacts and abTest.variants the round a winner is picked from, with each variant's contacts; links[].hops are per sender, so variants on one sender share a hop. link opens the campaign in the portal; preview is each step's message as a recipient sees it, each variable filled with its fallback.

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": {
      "id": "<id>"
    },
    "name": "flow_get_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description then adds genuinely valuable behavioral context - how A/B settlement works (settlement.collecting true, settlesAt null), how recipient counts shift between rounds, and that cost is in EUR - but this is almost entirely return-value semantics rather than invocation behavior, which the taxonomy treats as slightly separate.

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 purpose clause is front-loaded and nearly every sentence carries real information about return semantics rather than filler. It is, however, a dense run-on of dotted field paths (abTest.testRecipientCount, links[].hops) with no structural separation, which makes it harder to scan than it needs to be.

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 takes on the job of explaining the response and does so thoroughly - performance counters, parts billing, per-channel rates, cost currency, A/B variants and links. It falls short only on invocation edge cases such as invalid or archived ids.

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?

There is a single required parameter and schema description coverage is 0%, so the description must carry the burden. "by id" implies the integer identifies the campaign, but it adds nothing about range, whether archived campaigns resolve, or what happens for a nonexistent id. Baseline 3 for a one-parameter tool is appropriate.

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?

"One campaign by id" gives a specific resource and a specific retrieval scope, and the rest of the description enumerates exactly what comes back (audience, steps, schedule, performance). It is clearly distinct from the mutation siblings like flow_update_campaign_draft or flow_pause_campaign, though it never explicitly contrasts itself with them.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, no statement of prerequisites (e.g., that the id must be an existing non-deleted campaign), and no routing to alternatives such as the analytics or list tools. Usage is only inferable from the name and the 'by id' phrasing.

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