Skip to main content
Glama

Update Widget Style Draft

webinarstack.webinars.widget_style_update
Idempotent

Update a tenant-owned webinar's widget style draft with a JSON merge patch; send only the keys you change. The live widget does not change until you call webinarstack.webinars.widget_style_publish. This changes the widget's style object only. It is not page-builder authoring: it cannot add, remove or edit blocks or form fields. Writable in this version: the modal options host.modalWidth (integer 320-1200), host.modalPosition (center, drawer-right or sheet-bottom), host.modalChrome (frame or surface), host.overlayColor (a colour), host.overlayOpacity (0 to 1 in steps of 0.05), host.overlayBlur (integer 0-24), host.modalAnimation (none, fade, scale, slide-up or slide-right; skipped for visitors who prefer reduced motion), host.closeStyle (inside or floating; floating falls back to inside on drawers, sheets and phones) and host.mobileModal (inset, fullscreen or sheet; decides the layout below 640px), and the trigger options host.triggerColor, host.triggerStyle (solid, soft, outline or dark), host.triggerShape (rounded-sm, rounded or pill), host.triggerSize (md, lg or xl), host.triggerIcon (none, arrow or play) and host.triggerFont (system or inherit). An absent host.triggerColor follows the brand. host.modalWidth and host.triggerColor override the embed-card values, and a snippet data-* attribute still wins. The form options are also writable: surface (bg, maxWidth, borderWidth, borderColor, radius, shadow, padding), typography (headingFont, bodyFont, headingScale, headingWeight, align), header (logoPlacement, kickerStyle, trustStyle), fields (labelStyle, fieldStyle, fieldBorder, fieldRadius, fieldSize, fieldBg), button (buttonStyle, buttonShape, buttonWidth, buttonSize, buttonIcon, buttonColor), session picker (sessionStyle), countdown (countdownStyle) and layout (blockSpacing, blockTitle). Colour values accept hex (#rgb, #rrggbb), rgb() or rgba(), and some colours also take a keyword (bg: transparent, borderColor: auto, fieldBg: auto or translucent). An absent headingFont or bodyFont follows the webinar theme font. The dark and transparent options are writable too: surface (card, flat, glass or none), colorScheme (light or dark), textTone (auto, dark or light), layout (stacked or split) and, for the split layout, panelBg (brand, deep or a colour) and panelTone (auto, light or dark). null removes an option so it falls back to its default. Two combinations are refused after the patch is merged with the draft. A surface of none needs a textTone of dark or light: "textTone must be dark or light when surface is none." A surface of glass is for modal widgets only: "surface glass is available for modal widgets only." Because the check runs on the merged style, a patch of surface none passes when the draft already has textTone dark or light. A PATCH of colorScheme sets only the scheme and leaves the background and border colours as they are. To switch the scheme and also swap the default background and border colours (white and automatic for light, dark values for dark), use the colour scheme switch operation, POST /v1/webinars/{id}/widget/color-scheme. Layout changes go through the layout operation, POST /v1/webinars/{id}/widget/layout, which moves the blocks between the brand panel and the form side and sets the layout option in one write. A style PATCH that changes layout without the blocks moving is refused. Last write wins. Responses include updatedAt. An editor tab that is open on this widget can autosave over a draft written through the API.

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": {
      "webinarId": "<webinarId>",
      "style": "<style>"
    },
    "name": "webinarstack.webinars.widget_style_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleYesRFC 7396 merge patch for the widget style object. Send only the keys you change; null removes an option.
webinarIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • addedInput schema / properties / style / properties / colorScheme
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: light, dark. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / closeStyle
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: inside, floating. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / mobileModal
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: inset, fullscreen, sheet. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / modalAnimation
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: none, fade, scale, slide-up, slide-right. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / modalChrome
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: frame, surface. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / modalPosition
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: center, drawer-right, sheet-bottom. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / overlayBlur
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Integer 0 to 24. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / overlayColor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hex (#rgb, #rrggbb) or rgb()/rgba() colour with integer channels; text drawn on it is picked for contrast, judging a translucent rgba() as if over a white page. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / overlayOpacity
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Number 0 to 1. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / triggerFont
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: system, inherit. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / triggerIcon
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: none, arrow, play. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / triggerShape
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: rounded-sm, rounded, pill. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / triggerSize
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: md, lg, xl. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / host / properties / triggerStyle
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: solid, soft, outline, dark. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / layout
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: stacked, split. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / panelBg
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Hex (#rgb, #rrggbb) or rgb()/rgba() colour with integer channels, or one of: brand, deep; text drawn on it is picked for contrast, judging a translucent rgba() as if over a white page. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / panelTone
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: auto, light, dark. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / surface
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: card, flat, glass, none. Send null to remove it and restore the default (D-09)."
      +}
    • addedInput schema / properties / style / properties / textTone
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "One of: auto, dark, light. Send null to remove it and restore the default (D-09)."
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare idempotent=true and destructiveHint=false; the description goes far beyond that with merge-patch semantics, last-write-wins, the fact that an open editor tab can autosave over an API-written draft, and post-merge validation with the exact refusal messages. Also discloses that responses include updatedAt and that validation runs against the merged style, not just the patch.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action, publish gating and sibling routing are front-loaded, but the middle is a very long run-on enumeration of every writable option and its allowed values that largely duplicates the input schema's enums. The genuinely novel content (validation refusals, precedence, null semantics) is buried inside that list rather than separated out.

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 nested-object merge-patch tool with no output schema and many interrelated options, the definition covers validation rules, precedence, cross-endpoint alternatives, and concurrency behavior (autosave overwrite). Nothing material an agent needs to call this safely appears to be 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?

Well beyond the 50% schema coverage: it explains null-removal and default fallback, colour formats (hex/rgb/rgba plus keywords per field), that absent triggerColor follows the brand and absent headingFont/bodyFont follows the theme, and the precedence chain (snippet data-* > modalWidth/triggerColor > embed card). Some of the option enumeration simply restates enum values already present in the schema, which caps it below a 5.

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?

Opening clause states a specific verb and resource ('Update a tenant-owned webinar's widget style draft with a JSON merge patch') and immediately scopes it against the live widget via the publish sibling. It also carves out what it is not ('not page-builder authoring: it cannot add, remove or edit blocks or form fields'), which makes it distinguishable from design/layout tools without opening their schemas.

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 routing is provided: use widget_style_publish to make it live, use the colour scheme switch endpoint to also swap default background/border colours, and use the layout operation when blocks must move between the brand panel and the form. It also states a hard exclusion ('A style PATCH that changes layout without the blocks moving is refused'), so the agent knows when this tool is the wrong choice.

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