Skip to main content
Glama

Pitchlane

Add prospects to a campaign

add_videos
Destructive

Add prospects (leads) to a Pitchlane campaign: one video is made per lead row, 1 to 500 per call. Each row is keyed exactly as get_campaign's import_fields.add_videos_columns lists (the campaign's mapped column names, e.g. First Name, not variable names unless the two are the same; see import_fields.example_row). If that is null the campaign is not set up for this yet: add the first lead with create_or_update_video. Rows that fail are skipped and listed in variableIssues by row index; duplicates of existing leads are skipped. Make the test video first, from one lead with create_or_update_video, and add the rest here once the user has approved it. render: all asks to render every video this call adds (needs an approved test video and uses credits; poll the returned job_id with get_render_job, or inspect the render error); none only stores them, to render later with render_campaign or render_video. The answer keeps the leads imported apart from the render request.

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": {
      "campaign_id": "<campaign_id>",
      "leads": "<leads>",
      "render": "<render>"
    },
    "name": "add_videos"
  }
}

Input Schema

NameRequiredDescriptionDefault
leadsYesThe leads, one object per prospect, keyed by get_campaign's `import_fields.add_videos_columns`, e.g. [{"First Name":"Ada","Company URL":"https://example.com"}]. `originalRowIndex` may give the row's number in the user's data.
renderYes`all`: ask to render every video this call adds (needs an approved test video and credits; confirm with the user first). `none`: store only; render them later with render_campaign or render_video.
campaign_idYesThe campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`.
title_templateNoA template for the videos' titles, e.g. `Video for {{first_name}}`. It also becomes the campaign's title template.
duplicate_fieldNoThe lead field that makes a row a duplicate of an existing video, e.g. `email`. The campaign's own setting when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare a destructive, non-idempotent write, and the description adds behavior the agent could not infer: failed rows are skipped and reported in `variableIssues` by row index, duplicates are silently skipped, and `render: all` consumes credits and returns a job_id to poll with get_render_job. It also describes what the response preserves ('the leads imported apart from the render request').

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?

Long and dense, but front-loaded with the core action and ordered logically (keying, failure handling, test-video workflow, render mode, response). The `render` semantics appear in both the description and the schema, a redundant pass that keeps it short of a 5.

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 and no annotations covering return shape, yet the description explains the result (skipped rows in `variableIssues`, job_id to poll) and the preconditions (approved test video, credits). For a 5-parameter mutation with a domain-specific keying convention, nothing an agent needs to call it correctly is missing.

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 schema already defines all five parameters; the description still adds cross-tool meaning by tying `leads` keys to get_campaign's `import_fields.add_videos_columns` and `example_row`. The `render` enum values are explained beyond the enum labels, though the definitions largely repeat the schema text.

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 ('Add prospects (leads) to a Pitchlane campaign'), plus the unit of work ('one video is made per lead row, 1 to 500 per call'). This distinguishes it from the single-lead sibling create_or_update_video and from render_campaign without opening 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 Guidelines5/5

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

Gives explicit sequencing ('Make the test video first, from one lead with create_or_update_video, and add the rest here once the user has approved it') and a branch condition (`import_fields` null → use create_or_update_video). It also routes deferred rendering to render_campaign/render_video, so both when-to-use and when-not-to-use are covered.

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