Skip to main content
Glama

Launch a campaign

launch_campaign

Creates the campaign and makes it live at once, charging its flat price from your balance (quote_campaign tells you the price). open_link returns shareUrl — the link to put in front of the people you want to hear from; it closes at responseCap or on expiry. targeted sends one invitation per address in cohortEmails from clearvoyance.ai (a sandbox account gets inviteLinks back instead and nothing is emailed). The flat price for the campaign's size is charged from your balance in full at launch, whatever it receives; it is not refunded for fewer answers. Refused with INSUFFICIENT_BALANCE (shortfallCents) if the balance does not cover the tier, or INVALID_CAMPAIGN (problems[]) if the quote would fail.

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": {
      "apiKey": "<apiKey>",
      "kind": "<kind>",
      "title": "<title>",
      "description": "<description>",
      "questions": "<questions>"
    },
    "name": "launch_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesopen_link: a share link anyone can answer, closing at responseCap — put it in your own post-purchase email. targeted: we email one invitation per address in cohortEmails.
titleYesShown to participants, e.g. 'How was your order?'
apiKeyYesYour Clearvoyance API key (cv_live_… or cv_test_…), from create_account
giftTextNoShown to a participant after answering: a promo code, a thank-you, a link. Optional.
questionsYes1–10 questions participants answer by voice or text. No links or phone numbers.
cohortSizeNotargeted only, instead of cohortEmails: pay for this many people (10–200) now and add each one later with invite_person, one call per order, ticket or sign-up.
minPercentNotargeted only: results unlock once this share of the list has answered. Floored at 50.
senderNameNoWho is asking, as participants see it (your shop or product name). Required for open_link.
descriptionYesWhat you want to learn. Steers the AI analysis; participants do not see it.
responseCapNoopen_link only: 10, 50, 100 or 200 — the link closes at that many answers. Sets the tier: $4.99 / $17.99 / $29.99 / $49.99.
cohortEmailsNotargeted only: the addresses to invite now (10–200). Duplicates are folded. The list is discarded once every invitation is queued; only hashes are kept.
expiresInDaysNo1–42. Default 14 for open_link, 7 for targeted.

Output Schema

NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / cohortEmails / description
      Previous value: -"targeted only: the addresses to invite (10–200). Duplicates are folded. The list is discarded once every invitation is queued; only hashes are kept."New value: +"targeted only: the addresses to invite now (10–200). Duplicates are folded. The list is discarded once every invitation is queued; only hashes are kept."
    • addedInput schema / properties / cohortSize
      Added value: +{
      +  "description": "targeted only, instead of cohortEmails: pay for this many people (10–200) now and add each one later with invite_person, one call per order, ticket or sign-up.",
      +  "type": "integer"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: flat price charged in full at launch, no refund for fewer answers, sandbox accounts get inviteLinks and no email is sent, cohort lists discarded with only hashes retained, and named error codes with payload fields (INSUFFICIENT_BALANCE/shortfallCents, INVALID_CAMPAIGN/problems[]). That covers cost, side effects, and failure modes well. It stops short of stating irreversibility of a live launch or how close_campaign interacts.

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?

All sentences carry information and the launch/billing/error ordering is sensible. However, it reads as one dense block covering link mode, email mode, billing, then errors, without separators, which makes it harder to scan than a short bulleted or line-broken form would 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?

Covers the critical gaps for a paid, non-idempotent, open-world launch: cost timing, non-refundability, sandbox divergence, and both refusal codes. Return-shape detail is unnecessary given the output schema. It remains slightly incomplete on post-launch lifecycle (editing, closing, re-launching) that an agent must know before committing funds.

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 already 100%, yet the description still earns credit by explaining cross-parameter relationships: responseCap sets the price tier, cohortSize substitutes for cohortEmails, minPercent gates results. The description supplies the causal logic linking parameters that the per-field schema text leaves implicit.

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?

States a specific verb+resource with a distinguishing qualifier: "Creates the campaign and makes it live at once," which separates it from a plain create. It also names the kind taxonomy (open_link vs targeted). The one gap is that it never names its closest sibling create_campaign to draw the create-vs-create-and-launch line 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?

Points the agent to quote_campaign for pricing, which is useful routing. The kind choice is described in the body, but only via the schema's own wording. There is no statement of when to launch versus stage a draft, nor any "do not use this if…" exclusion, so usage is implied rather than prescribed.

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