Skip to main content
Glama

campaigns_pipeline

The 'why is my campaign empty?' endpoint. Returns what one autopilot tick would do right now — computed as a dry run, so it writes nothing and spends nothing — plus the recent history of what it actually did.

sizing carries the arithmetic. The deficit is bounded by two independent ceilings: remaining_add_quota (the campaign's daily enrolment cap) and remaining_send_capacity (mailbox slots left after already-queued messages). Leads already on hand (ready_in_target) and already bought and still enriching (in_flight_upstream) are then subtracted.

blockers[] is the actionable part — each has a stable code and, where relevant, the object_sqid to go fix.

availability answers "are the campaign's lists used up?": per segment on the chain, how many leads are ready, still processing, filtered out by qualification, or already used.

Method: GET /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/pipeline/

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": {
      "sqid": "<sqid>"
    },
    "name": "campaigns_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
historyNoRecent autopilot passes to include (0–50, default 10).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and mostly does: it declares the call is a computed dry run that writes nothing and spends nothing, exposes the HTTP method and path, and explains that blockers carry stable codes plus object_sqid targets. Missing are any notes on authorization scope or cost/latency of computing a live tick, which is why this falls short of a 5.

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 hook is front-loaded and the body is organized into labeled blocks (`sizing`, `blockers[]`, `availability`) that each map to a distinct question an agent would ask. It is dense but every paragraph carries information; the trailing Method line is compact and useful rather than filler.

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?

Since there is no output schema, the description must explain return values and it does so thoroughly for a read-only diagnostic: the two independent ceilings bounding the deficit, the subtraction of in-flight leads, and the per-segment availability breakdown. The only shortfall is that neither parameter's behavior nor the shape of the history payload is elaborated.

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 only 50%: `history` is documented in the schema, while `sqid` is undocumented there and is only implicitly identified as the campaign identifier via the GET path shown at the end. The description does allude to 'recent history' without stating the 0-50 range or what changes with a larger window, so it adds some but not sufficient semantic value.

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 gives a concrete, memorable framing ('why is my campaign empty?') and states precisely what the call returns: a dry-run simulation of one autopilot tick plus its recent execution history. That is far more specific than the name or title, though it never names a sibling (e.g. campaigns_preflight or campaigns_stats) to differentiate itself explicitly.

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

Usage Guidelines3/5

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

The 'why is my campaign empty?' hook implies the diagnostic context in which to reach for this tool, and the dry-run framing tells the agent it is safe to call for inspection. However, there is no explicit when-not guidance and no named alternative for adjacent questions such as 'what will actually be sent' or 'how many leads exist overall', leaving routing to inference.

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.