Skip to main content
Glama

Pitchlane

Preview a bulk campaign render

preview_campaign_render
Read-only

Dry-run a bulk render for a Pitchlane campaign without spending credits or queueing videos. Returns how many videos are eligible, how many would queue vs be skipped or deferred, estimated video and LinkedIn credits, remaining balance, canProceed, and any blockers (such as an unapproved test video or insufficient credits). On metered plans, the final video credit charge depends on actual rendered duration. Unlimited renders use zero video credits; applicable LinkedIn credits still apply. When canProceed is false, the render would be refused even if willQueueCount is positive: stop, tell the user which blockers apply and what would clear them, and do not start the render.

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": "preview_campaign_render"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional maximum number of eligible videos to select. 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.3/5.0
Behavior5/5

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

Annotations already establish readOnlyHint=true and destructiveHint=false, but the description goes further: it discloses that no credits are consumed and nothing is queued, explains metered-vs-unlimited credit semantics, and enumerates the returned fields (eligible count, queue/skip/defer counts, estimated credits, remaining balance, canProceed, blockers). That is substantial behavioral context beyond the annotations.

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 the dry-run guarantee, then return contents, then credit caveats, then the action rule for canProceed=false. The credit-mechanics sentences are slightly dense but each carries decision-relevant information; minor trimming possible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description admirably documents the return shape and the blockers concept, and it resolves the safety-critical case of a positive queue count with canProceed=false. For a 6-parameter tool with two enums and credit interactions, this is close to sufficient, though the interplay of limit and on_insufficient_credits could be restated.

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 coverage is 100% and the schema already documents each parameter with enums and defaults, so the description adds essentially no parameter-level meaning. The field names it mentions (canProceed, willQueueCount) are response fields, not inputs. Baseline 3 is appropriate.

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?

The description opens with a specific verb+resource ('Dry-run a bulk render for a Pitchlane campaign') and immediately distinguishes this tool from an actual render by stating it spends no credits and queues no videos. That differentiates it cleanly from render_campaign without needing to name it.

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?

It implies the preview-then-render workflow and gives concrete conditional guidance: when canProceed is false, stop, inform the user of blockers, and do not start the render. What's missing is an explicit pointer to the sibling that performs the real render.

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