Skip to main content
Glama

Live: show offer

show_offer

Displays an offer banner under the video for live webinar viewers, linking a CTA button with tracked clicks and replacing any existing offer.

Instructions

Show an offer banner under the video of every viewer: one of the webinar's CTA buttons (page.ctas, see get_page; add one with update_page). The button opens the CTA URL through the click tracker, so clicks show up as cta.clicked in watch_live and in the funnel. Replaces an offer already shown. headline (max 80) is the line above the button; default the CTA label. Only while the webinar is live (status live); otherwise error not_live. delivered false (with warning) means it was saved but LiveKit did not take it: do not retry, that would do it twice. Max 30 live actions per 10 s per key (rate_limited). Example: {webinar_id, cta_key: "book-demo", headline: "Book a demo this week"}

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": {
      "webinar_id": "<webinar_id>",
      "cta_key": "<cta_key>"
    },
    "name": "show_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
cta_keyYesKey of a CTA in page.ctas, e.g. "book-demo"; an unknown key fails with invalid_request listing the known keys
dry_runNotrue: validate and show what would happen without changing anything
headlineNoLine above the button, max 80 chars; default the CTA label
webinar_idYesWebinar id (UUID) from list_webinars or create_webinar
idempotency_keyNoAny unique string; retrying with the same key and arguments within 24 h returns the first answer instead of doing it twice

Output Schema

NameRequiredDescriptionDefault
dataNo
resultYes
statusNo
changesNo
dry_runNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

No annotations are provided, yet the description carries a lot of the load: offer replacement, click tracking into cta.clicked, the not_live failure, the delivered=false warning with the explicit instruction not to retry and risk doing it twice, and a rate-limit of 30 live actions per 10 seconds per key. The only meaningful gap is that it doesn't say how this interacts with an audience that is already watching the live stream.

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?

The description is packed but well front-loaded: the core effect comes first, followed by side effects, then failure modes, then limits. The example at the end is useful, and the density is appropriate for an action with this many edge cases.

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?

With an output schema present and a fully documented input schema, the description covers everything else the agent needs: when the call is allowed, what it replaces, where the click shows up, the error codes, and the retry and idempotency rules.

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 already 100%, so the baseline is 3; the description adds a worked example showing how webinar_id and cta_key are used together, and it points to page.ctas and get_page as the place to see valid keys. The headline and dry_run parameters are not explained further here, but the schema covers them in detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: it shows an offer banner under the video for every viewer, using one of the webinar's page.ctas buttons, and states that it opens the CTA URL through the click tracker. This is precise, but it does not mention hide_offer, the one sibling that removes the offer, so differentiation relies on the reader inferring 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 gives a clear precondition: only while the webinar is live, otherwise an error with the code not_live; it also notes that a call replaces an existing offer instead of stacking one on top of it. It doesn't say when to prefer hide_offer or how to handle the delivered=false case by switching tools, but the operational context is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.