Skip to main content
Glama

Pitchlane

Create a Pitchlane webhook subscription

create_webhook

Subscribe a URL to a Pitchlane event: Pitchlane POSTs a JSON body to webhook_url each time trigger happens, in any of the user's campaigns or, with campaign_id, in that one only. Subscribe only a URL the user gave and explicitly wants these events sent to: deliveries carry their campaign and video data. Check list_webhooks first: the same URL and trigger can be subscribed twice and would then get every event twice. The answer holds the subscription's signing secret (whsec_…), returned this once and never again: give it to the user and tell them to store it now. Deliveries carry webhook-id, webhook-timestamp and webhook-signature headers, which the receiving endpoint verifies with that secret. Triggers: VIDEO_CREATED: a video was added. VIDEO_UPDATED: adding a video with upsert changed an existing one. VIDEO_RENDERED: a video finished rendering and can be shared. VIDEO_UNRENDERABLE: a video cannot be rendered (invalid website or lead, or the page could not be reached). VIDEO_VIEWED / VIDEO_STARTED / VIDEO_FINISHED: a prospect opened, started playing or watched a video to the end, every time; the FIRST_ variants fire only the first time for each video. CAMPAIGN_READY: a created or changed campaign was processed and videos can be made from it. CAMPAIGN_FAILED: its setup or processing failed.

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": {
      "trigger": "<trigger>",
      "webhook_url": "<webhook_url>"
    },
    "name": "create_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
triggerYesThe event to send. See the tool's description for what each one means.
campaign_idNoSend only this campaign's events: its id, as list_campaigns returns it. Leave it out to send the event for every campaign of the account, present and future.
webhook_urlYesThe full URL Pitchlane sends each event to, e.g. `https://example.com/hooks/pitchlane`. Only one the user gave for this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false; the description supplies the concrete consequences behind those flags — duplicate subscriptions deliver every event twice, and the `whsec_…` signing secret is returned exactly once and never again. It also discloses the outbound delivery contract (`webhook-id`, `webhook-timestamp`, `webhook-signature` headers) that the receiving endpoint must verify, which is behavior no structured field conveys.

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: purpose and scoping in sentence one, safety constraints next, then secret handling, delivery headers, and finally the trigger glossary. Dense but every sentence carries load; the long enum tail is unavoidable given the schema's deferral, though the trigger block could be slightly tightened.

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 three-parameter mutation with no output schema, the definition covers what an agent most needs and structured fields cannot supply: that a secret is in the response and must be surfaced to the user immediately, the duplicate-subscription hazard, and the meaning of every trigger. Nothing required to call it correctly or report its result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 `trigger` parameter's schema explicitly defers to the description ("See the tool's description for what each one means") and the description defines all twelve enum values, including the FIRST_ variant semantics and the VIDEO_UPDATED upsert nuance. It also restates the campaign_id scope decision as an actionable choice (omit it to include future campaigns).

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 opening sentence gives a specific verb and resource ("Subscribe a URL to a Pitchlane event") and immediately scopes it: fires on `trigger` across all campaigns, or only `campaign_id` when supplied. An agent can distinguish this from `list_webhooks` or `create_webhook_secret` 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?

Explicit when-to-use and when-not guidance: "Subscribe only a URL the user gave and explicitly wants these events sent to" plus "Check list_webhooks first" because duplicate URL+trigger pairs cause double delivery. It names the sibling to consult and states the precondition (user-supplied URL, explicit intent) rather than leaving it implied.

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