Skip to main content
Glama

Create a campaign

create_campaign

Write a new campaign from a short brief: who to email, where, and what you offer them. Pipefire writes the email sequence (two subject-line versions), starts finding and verifying the businesses, and saves it as a DRAFT. Nothing sends until you launch it. Read it with get_campaign. Takes up to a minute.

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": {
      "audience": "<audience>",
      "country": "<country>"
    },
    "name": "create_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCampaign name. Defaults to audience and place.
buyerNoWho opens the email inside that business. Example: "the practice owner".
offerNoWhat you want the email to argue, in your own words. Example: "we fix their Google reviews in 30 days".
placeNoCity, region or state. Example: "Leeds" or "Ohio". Leave out for a whole-country online search.
countryYesTwo-letter country code. Example: "GB", "US", "SE".
audienceYesWho to email, as a type of business. Example: "dentists" or "commercial roofing companies".

Output Schema

NameRequiredDescriptionDefault
linkYesLink to the new campaign, where it is read and launched in the Pipefire console.
statusYesAlways draft: nothing sends until the user launches it.
campaignIdYesThe campaign id, for the other campaign tools.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "campaignId": {
      +      "description": "The campaign id, for the other campaign tools.",
      +      "type": "integer"
      +    },
      +    "link": {
      +      "description": "Link to the new campaign, where it is read and launched in the Pipefire console.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "const": "draft",
      +      "description": "Always draft: nothing sends until the user launches it.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "campaignId",
      +    "status",
      +    "link"
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), the description discloses meaningful behavior: output lands in DRAFT state, nothing is sent until an explicit launch, an email sequence with two subject-line variants is auto-generated, and the call can take up to a minute. It does not state that repeat invocations create duplicate campaigns (relevant given idempotentHint=false) or what happens on partial lead-discovery failure.

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?

Four short sentences, front-loaded with the core action, then the side effects, then the safety guarantee, then the follow-up tool and latency caveat. No sentence is redundant with the name or title.

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 six-parameter write tool with full schema coverage, rich annotations, and an output schema, the description covers what an agent needs before calling: state of the result (DRAFT), that nothing is sent, expected duration, and how to verify afterwards. Return values are correctly left to the output schema.

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 description coverage is 100%, so the schema already documents all six parameters with examples and length bounds. The description's "who to email, where, and what you offer them" loosely maps to audience, place, and offer but adds no format, default, or constraint detail beyond what the schema states, so baseline 3 applies.

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?

"Write a new campaign from a short brief" names a specific verb and resource, then enumerates the concrete sub-effects: generating an email sequence with two subject-line versions, starting lead discovery/verification, and persisting as a DRAFT. It explicitly points to get_campaign for reading, so an agent can separate the create path from the read path without inspecting either schema.

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?

Usage conditions are clear — this is the entry point when you want a new campaign built from audience/place/offer, and the description directs the agent to get_campaign to inspect the result. It does not address when not to use it (for example, adding leads to an existing campaign via request_lead_list/lead_sourcing, or that repeat calls create additional campaigns), so the guidance is strong but not exhaustive.

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.