Skip to main content
Glama

The-Y CRM

Web chat: embed code

get_webchat_embed_code
Read-only

Returns the embed code for the website and the link to the chat page. With several brands, choose the brand with brand_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_webchat_embed_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
brand_idNoID of the brand (from get_account_overview or get_webchat_embed_code); empty = default brand

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that both an embed snippet and a chat page link come back, which is useful since there is no output schema, but it says nothing about prerequisites (e.g., whether web chat must be enabled first) or failure behavior.

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

Conciseness5/5

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

Two short sentences, front-loaded with what is returned and followed by the only conditional decision the caller faces. No redundant restatement of the title or wasted wording.

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?

For a one-optional-parameter read tool with no output schema, the description covers what is returned and how the optional parameter selects a brand. It could note that web chat must be configured/enabled before the embed code is meaningful, which is the only meaningful gap.

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% and the single brand_id parameter already documents 'empty = default brand'. The sentence about choosing a brand when several exist reinforces the parameter's purpose but adds little syntax or meaning beyond the schema, so the baseline of 3 applies.

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 names a specific verb and resource: returns the embed code for the website plus the link to the chat page. That is concrete enough to distinguish it from siblings like set_webchat_enabled or get_account_overview, though it does not explicitly contrast itself with any named alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the tool is for retrieving website integration snippets. The one conditional hint, 'With several brands, choose the brand with brand_id,' gives real selection guidance, but there is no statement of when this tool is needed versus setup or configuration siblings such as set_webchat_enabled.

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.