Skip to main content
Glama

Plan a content campaign (without creating anything)

plan_campaign

Plan a run of content the way Autopilot does — WITHOUT creating anything — so you can go through it with the user and change it first. The plan comes from what is working right now in the brand’s niche (Instagram reels on its topic) and, lightly, from what already worked on its own account; each idea has a goal (save, share, follow or lead), a format ("treatment", with how it is built) and, when it models a niche reel, that reel. Costs 25 AI credits. After the user agrees: for each idea, plan_content (its idea, hook and key points as the topic) → generate_image → create_post as a DRAFT on its suggested date; for a reel, get_reel_playbook with that idea. Or, if they just want it done, run_autopilot. For a single post or carousel, plan_content is enough. SPENDS AI CREDITS ONLY WITH confirm: true. Call it first without confirm: nothing runs and nothing is charged, you get the quote (what it will do and the credits). Tell the user, in your own words, exactly that — including the options you chose, so they can change them — and wait for a clear yes before calling again with the same arguments and confirm: true. One yes covers the plan they approved (e.g. every line of an approved voice-over with the chosen voice); anything new or different needs a new yes.

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": {
      "accountIds": "<accountIds>"
    },
    "name": "plan_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
whenNoWhen the pieces go: today, tomorrow, this_week, next_week, this_month or next_month. Default today.
countNoHow many ideas (1-20). Each one becomes a piece per account. For a week, 3-5 is typical.
topicNoOptional brief: a launch, a theme, a date. Leave it out to let the plan come from what is working in the brand’s niche and on its own account — usually the better choice.
confirmNotrue ONLY after the user said yes to the quote (what it does and the credits). Without it nothing runs and nothing is charged.
formatsNoAllowed formats. Default: whatever the accounts’ networks support.
accountIdsYesAccount ids from list_accounts (the ones to plan for).
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false. The description adds cost (25 AI credits), the two-phase quote-then-confirm protocol, that nothing runs or is charged without confirm, and what the plan contains (goal per idea, format treatment, referenced niche reel). That is far more than the annotations convey.

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?

Purpose and the no-write constraint are front-loaded, and the workflow/alternatives are ordered logically. It is long for a tool description and restates the credits-and-confirm rule three times ('Costs 25 AI credits', 'SPENDS AI CREDITS ONLY WITH confirm: true', 'nothing runs and nothing is charged'), which is mild redundancy rather than wasted space.

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 an 8-parameter, credit-spending, open-world planner with no output schema, the description covers everything an agent needs: what the plan returns, what it costs, how to quote it, how to get consent, and what to call next per format. No material gap remains.

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 when/count/topic/formats/accountIds/workspaceId/idempotencyKey are already documented by the schema; the description adds no syntax or defaults for them. The one addition beyond the schema is the confirm loop semantics (same arguments plus confirm: true after approval), which is real but limited.

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 (plan a run of content) and immediately scopes it: 'WITHOUT creating anything' and 'the way Autopilot does'. It also names what the output is made of (goal, format/treatment, modeled niche reel), so an agent distinguishes it from plan_content and run_autopilot without opening a 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?

Explicit routing: 'For a single post or carousel, plan_content is enough' and 'if they just want it done, run_autopilot,' plus the downstream chain plan_content → generate_image → create_post-as-draft and get_reel_playbook for reels. The confirm gate sequence (call first without confirm, then same args with confirm: true after a clear yes) is spelled out with a when-not condition ('anything new or different needs a new yes').

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