Skip to main content
Glama

Salesbot - B2B outreach LinkedIn MCP Server with CRM and email

create_campaign

Create a NEW campaign (saved as 'draft' — it does NOT start sending until the user activates it in the app). BEFORE calling, ask the user which campaign type they want unless they already said it — never choose it yourself: 1. Outreach with 2 messages: visit → connect (48 h) → message 1 (24 h) → message 2 (7 days) 2. Outreach with 1 message: visit → connect (24-48 h) → message 1 (48 h) 3. Nurturing – 3 messages: visit → connect (24-48 h) → messages after 24 h, 5 days, 7 days 4. Connection only: visit → connect (12-48 h), no messages 5. Existing connections – 3 messages: messages now, after 5 days, after 7 days (1st-degree connections only) 6. One-off message to existing connections: one message (1st-degree connections only). Confirm the planned steps with the user first. Provide a name, the profile_id to send from, and an ordered list of steps. Each step has an action ('connect', 'message' or 'visit'), an optional delay_hours (wait before this step), and AI/template settings for messages. Returns the new campaign_id. Use add_contacts_to_campaign next to add leads.

MESSAGE PLACEHOLDERS (for ai_template / when use_ai is false, also cleaned up after AI):

  • {oslovení} or [Oslovení]/[Jméno] → Czech vocative greeting (e.g. 'pane Nováku' / first-name vocative like 'Petře')

  • {{first_name}} or {jméno}/{jmeno} or [Name]/[first_name] → contact first name

  • {{company}} or {firma} or [Firma]/[Company] → company name ({firma} = sender company from sender_context; {{company}}/[Firma] = lead's company)

  • {{jmeno_5p}} → Czech first-name vocative ('Petře'); {{prijmeni_5p}} → Czech surname vocative without 'pane' ('Kubíčku', women unchanged)

  • Language: when the sample/prompt is English (or the prompt says 'in English'), Czech salutation rules are off and all name variables give plain names ('Hi Petr,')

  • Also: {{last_name}}, {{full_name}}, {{position}}, {{location}}, {{headline}} Prefer {{first_name}} / {{company}} / {oslovení} in new templates; square brackets like [Jméno] and [Firma] are supported aliases.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesCampaign name
stepsYesOrdered campaign steps
profile_idYesUUID of the user_profile to send from
daily_limitNoMax actions per day for this campaign. Optional.
descriptionNoOptional description
sender_contextNoContext about the sender used by the AI when writing messages. Optional.
message_languageNoLanguage of the messages. 'cs' = Czech salutation ("Dobrý den, pane Kubíčku,"), 'en' = English ("Hi Petr," / "Dear Mr. Kubíček,"). Ask the user when unclear; omitted = decided from the sample message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / message_language
      Added value: +{
      +  "description": "Language of the messages. 'cs' = Czech salutation (\"Dobrý den, pane Kubíčku,\"), 'en' = English (\"Hi Petr,\" / \"Dear Mr. Kubíček,\"). Ask the user when unclear; omitted = decided from the sample message.",
      +  "enum": [
      +    "cs",
      +    "en"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / steps / items / properties / ai_prompt / description
      Previous value: -"Instructions for the AI message"New value: +"Instructions for the AI message. The campaign's sender_context (\"About me\") is NOT added automatically — write {{o_mne}} in the prompt where the AI should use it. Links written in the prompt or ai_template are kept exactly, in the place where they are written."
  3. Changed2 schema fields changed
    • changedInput schema / properties / steps / items / properties / ai_template / description
      Previous value: -"Template / style sample. Placeholders: {oslovení}, {{first_name}}, {jméno}, {{company}}, {firma}, [Jméno], [Firma], etc. When use_ai is false (or AI falls back), placeholders are replaced automatically."New value: +"Sample message. Placeholders: {oslovení}, {{first_name}}, {jméno}, {{company}}, {firma}, [Jméno], [Firma], etc. When use_ai is false (or AI falls back), placeholders are replaced automatically. How it is used depends on message_mode."
    • addedInput schema / properties / steps / items / properties / message_mode
      Added value: +{
      +  "description": "'template' = ai_template IS the message: sent word for word, the AI only fills its fields (e.g. [Firma] → \"Škoda Auto\" per the ai_prompt). 'creative' = the AI writes a new message per lead from ai_prompt and uses ai_template only as a style example. Default: 'creative' when both ai_prompt and ai_template are given, otherwise 'template'.",
      +  "enum": [
      +    "template",
      +    "creative"
      +  ],
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / steps / items / properties / ai_template / description
      Previous value: -"Fallback / non-AI template text"New value: +"Template / style sample. Placeholders: {oslovení}, {{first_name}}, {jméno}, {{company}}, {firma}, [Jméno], [Firma], etc. When use_ai is false (or AI falls back), placeholders are replaced automatically."
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, destructive=false, idempotent=false), and the description adds genuinely new behavior: the campaign is persisted as a draft and sends nothing until activation, which is the single most consequential fact for an agent. It does not restate the idempotency annotation, so a call under that hint is not fully explained, keeping it below 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 description is long, but it is front-loaded with the most important instruction (ask the user for the type) before the reference material. The placeholder gloss largely restates what the ai_template schema field already lists, which is the main place words could be trimmed.

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 7-parameter, non-idempotent creation tool with no output schema, the description is complete: it names the required inputs, explains the step object structure, and even states the return value ('Returns the new campaign_id') that the absent output schema would otherwise have to carry.

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 100%, so the baseline is 3, but the description adds real semantic value beyond the schema: it maps the six campaign types to concrete ordered step sequences and explains placeholder resolution ({oslovení} vs {{first_name}}, language-dependent salutation rules). Some placeholder material duplicates the ai_template field description, so it is not a clean 5.

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?

States a specific verb and resource ('Create a NEW campaign') and immediately qualifies the outcome ('saved as draft — it does NOT start sending until the user activates it'). This distinguishes it cleanly from siblings like start_campaign and update_campaign_settings without opening any schema.

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?

Gives explicit pre-call instructions ('BEFORE calling, ask the user which campaign type they want unless they already said it — never choose it yourself') and a confirmation step ('Confirm the planned steps with the user first'). It also routes to the correct follow-up sibling ('Use add_contacts_to_campaign next to add leads'), covering both when-to-use and what-to-do-after.

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.