Skip to main content
Glama

campaigns_autopilot_run

Forces one autopilot tick: works out how far this campaign is from filling today's quota, restarts enrichment chains that stalled upstream, and pulls fresh prospects from the saved searches feeding its segment.

dry_run defaults to true — the response is identical but nothing is written and no connects are spent. Pass dry_run=false to actually acquire. A live run charges ADD_LEAD_FROM_DISCOVERY per new lead plus whatever the upstream enrichment chain costs, so check billing_balance first.

Enrichment is asynchronous: reconciled[].task_sqids are jobs to poll with jobs_get, and leads pulled now reach the campaign only once their chain and its qualification finish.

Never enables anything on the user's behalf — a paused saved search or a disabled qualification comes back in blockers. Note a saved search's is_enabled is irrelevant here: it gates the hourly scheduled run only. Set its add_limit to 0 to stop autopilot pulling from it.

Typical flow: campaigns_pipeline to see the blockers, fix them, run this with dry_run=true to check the plan, then dry_run=false. Autopilot does all of this by itself every 10 minutes when is_autopilot_enabled is set.

Method: POST /api/v1/workspaces/{workspace_sqid}/campaigns/{sqid}/autopilot-run/

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_autopilot_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes
dry_runNo**Defaults to true.** A dry run returns the identical payload having written nothing and spent no connects. Pass false to actually acquire leads.
max_pullNoCap this pass below the configured per-tick ceiling.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: dry_run defaults to true and spends no connects, a live run charges ADD_LEAD_FROM_DISCOVERY per lead plus upstream enrichment costs, and enrichment is asynchronous so leads only land after qualification. It also discloses that the tool never enables anything on the user's behalf and that disabled searches surface in 'blockers' rather than being auto-fixed.

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?

Front-loaded with the action, then the cost/risk caveat in bold, then async semantics, then guardrails, then a typical flow. Each paragraph covers a distinct decision an agent must make, and the closing Method line is compact and useful for traceability.

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?

There is no output schema, yet the description defines the key return surface an agent needs: 'reconciled[].task_sqids' for polling and 'blockers' for what to fix. It also covers cost, side effects, scheduling interaction, and the 'add_limit' escape hatch, which is unusually complete for a mutating, billable operation.

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

Parameters4/5

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

Schema coverage is 67%, and the description expands the most consequential parameter well beyond the schema — dry_run returns an identical payload with nothing written and no connects spent, which conveys the blast-radius difference. However, 'max_pull' is never mentioned in the description and its schema entry only says it caps below the per-tick ceiling, so the relationship between the two caps is left slightly ambiguous.

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 opening sentence gives a specific verb ('forces one autopilot tick') and enumerates the concrete sub-actions: measuring quota deficit, restarting stalled enrichment chains, and pulling prospects from the segment's saved searches. This is far more than a restatement of the name and lets an agent distinguish it from the scheduled hourly run described later.

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

Usage Guidelines5/5

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

It gives an explicit recommended sequence: 'campaigns_pipeline' to see blockers, fix them, run with dry_run=true, then dry_run=false, and names 'jobs_get' for polling async jobs. It also states the tool is unnecessary when 'is_autopilot_enabled' already handles this every 10 minutes, which is a genuine when-not-to-use signal.

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.