Skip to main content
Glama

Pitchlane

Start a bulk campaign render

render_campaign
Destructive

Start a durable asynchronous bulk render of a Pitchlane campaign (returns a RenderJob; poll get_render_job for dispatch or get_render_job_progress for actual rendering). Can spend credits for eligible videos, including videos already stored without a render; call preview_campaign_render first to confirm cost and eligibility. An import or recovery job can be waiting. Only one bulk render of a campaign queues at a time: while one is, this is refused with render_request_already_queuing (its job is activeRenderJob in get_rendering_progress). Selection is deterministic: oldest created first, or video_ids order for scope: "videos". It decides which videos limit or on_insufficient_credits: "partial" keeps, not the order the renderer finishes them in.

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>"
    },
    "name": "render_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional maximum number of eligible videos to queue. Selection is deterministic: oldest created first, or `video_ids` order for `scope: "videos"`. It decides which videos `limit` or `on_insufficient_credits: "partial"` keeps, not the order the renderer finishes them in.
scopeNoWhich videos to select: `unrendered` (default), `retry_failed`, `unrendered_and_retry_failed`, `videos` (explicit `video_ids` list), or `import` (one `import_id`).unrendered
import_idNoRequired when `scope` is `import`.
video_idsNoRequired when `scope` is `videos` (1–1,000 video ids, evaluated in this order).
campaign_idYesThe campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`.
on_insufficient_creditsNo`fail` (default): refuse if credits cannot cover all selected videos. `partial`: queue as many selected videos as remaining credits allow, in selection order, and defer the rest.fail

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 already flag a destructive, open-world write, but the description adds the credit-spend consequence (including videos stored without a render), the concurrency guard and its error code, the possibility of a pending import or recovery job, and the deterministic selection rule. These are real behavioral traits beyond what the annotations carry.

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?

Front-loaded with purpose, return type, and the polling path, then constraints and error behavior. It is dense and some phrasing is duplicated verbatim from the limit parameter description, but no sentence is filler.

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 mutation with no output schema, the description covers return value, follow-up calls, cost implications, concurrency conflicts, and selection semantics — everything needed to invoke it correctly.

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 documents each parameter, and the description partially restates the limit text. It still adds meaning by explaining how limit and on_insufficient_credits: partial interact with selection order and how that differs from completion order, which is not obvious from the schema alone.

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: a durable asynchronous bulk render of a Pitchlane campaign, and names the return type (RenderJob). Together with the sibling reference to render_video and preview_campaign_render, an agent can tell what this tool does and what it is not.

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?

Explicitly routes the agent: call preview_campaign_render first to confirm cost and eligibility, then poll get_render_job for dispatch or get_render_job_progress for rendering. It also states the exclusion condition — a bulk render is refused with render_request_already_queuing while another queues, and that job is visible as activeRenderJob in get_rendering_progress.

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