Skip to main content
Glama

widgets_create

Create a new livechat widget for your website.

The widget will be created with default settings. You can customize theme, auto-reply mode, and more.

Use this when user wants to add a chat widget to their site.

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

Input Schema

NameRequiredDescriptionDefault
nameYesName for the widget (e.g., 'Website Chat', 'Support Widget')
positionNoWidget position on screenbottom-right
allow_voiceNoMaster switch for voice — set true to show the mic so visitors can talk to the agent. Everything else voice-related is inert until this is on. The mic also needs a voice-capable agent in the workspace: one with an enabled incoming_call trigger. OMIT to leave voice off (the default).
context_modeNoWhat the widget tells the agent about the visitor's page: - 'page' (default): the widget reads the page itself (title, description, headings, a text excerpt). - 'site': only the data the site's own code hands over through window.DialogBrainLiveChat.getContext / setContext; no page text is sent. Pick when the site asks for it or its pages are rendered by script. - 'both': both.page
display_modeNoVisual mode of the widget. Pick exactly one: - 'chat' (default): full chat panel + voice mic — use for support / sales / general. - 'voice_only': mic-only bubble that launches a voice call directly — pick only when the user explicitly asks for a voice-only widget (e.g. 'just a voice button', 'no chat, just call'). - 'headless': no UI; customer drives via window.DialogBrain JS API — pick only when the user explicitly says 'embed in our own design' / 'no widget chrome'.chat
header_titleNoTitle shown in chat headerChat with us
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
primary_colorNoPrimary color for widget theme (hex, e.g., '#2563eb')#2563eb
auto_reply_modeNoAuto-reply mode: 'draft' (review before sending) or 'auto' (send immediately)draft
voice_button_labelNoLocalized aria-label and hover tooltip for the voice-only mic bubble (only used when display_mode='voice_only'). ≤ 100 chars. Defaults to 'Talk to agent' if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / context_mode
      Added value: +{
      +  "default": "page",
      +  "description": "What the widget tells the agent about the visitor's page:\n- 'page' (default): the widget reads the page itself (title, description, headings, a text excerpt).\n- 'site': only the data the site's own code hands over through window.DialogBrainLiveChat.getContext / setContext; no page text is sent. Pick when the site asks for it or its pages are rendered by script.\n- 'both': both.",
      +  "enum": [
      +    "page",
      +    "site",
      +    "both"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  3. Added
  4. Removed
  5. Changed1 schema field changed
    • addedInput schema / properties / allow_voice
      Added value: +{
      +  "description": "Master switch for voice — set true to show the mic so visitors can talk to the agent. Everything else voice-related is inert until this is on. The mic also needs a voice-capable agent in the workspace: one with an enabled incoming_call trigger. OMIT to leave voice off (the default).",
      +  "type": "boolean"
      +}
  6. Changed2 schema fields changed
    • addedInput schema / properties / display_mode
      Added value: +{
      +  "default": "chat",
      +  "description": "Visual mode of the widget. Pick exactly one:\n- 'chat' (default): full chat panel + voice mic — use for support / sales / general.\n- 'voice_only': mic-only bubble that launches a voice call directly — pick only when the user explicitly asks for a voice-only widget (e.g. 'just a voice button', 'no chat, just call').\n- 'headless': no UI; customer drives via window.DialogBrain JS API — pick only when the user explicitly says 'embed in our own design' / 'no widget chrome'.",
      +  "enum": [
      +    "chat",
      +    "voice_only",
      +    "headless"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / voice_button_label
      Added value: +{
      +  "description": "Localized aria-label and hover tooltip for the voice-only mic bubble (only used when display_mode='voice_only'). ≤ 100 chars. Defaults to 'Talk to agent' if omitted.",
      +  "type": "string"
      +}
  7. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already disclose that this is a non-read-only, non-destructive, non-idempotent operation. The description adds that the widget is created with default settings and can be customized later, but it does not add much beyond that, such as return behavior or permission requirements.

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 short and front-loaded with the primary action. The second and third sentences are useful but include slightly vague phrasing such as 'and more,' which keeps it from being maximally concise.

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

Completeness3/5

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

For a 10-parameter creation tool with no output schema, the description is adequate but thin. The schema compensates for parameter detail, but the description does not mention what the tool returns or key behavioral caveats like voice requiring a capable agent.

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 description coverage is 100%, so the input schema already documents all 10 parameters in detail, including enums and defaults. The description only generally mentions theme and auto-reply mode customization, adding little meaning beyond the schema.

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 states a specific verb and resource: 'Create a new livechat widget for your website.' This clearly identifies the operation. It does not explicitly differentiate from sibling tools such as widgets_update or widgets_get, so it falls short of a 5.

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?

The description gives a clear usage cue: 'Use this when user wants to add a chat widget to their site.' It does not state when not to use the tool or name alternatives like widgets_update, but the intended context is unambiguous.

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