Skip to main content
Glama

Get the embed code of a chatbot

get_chatbot_embed_code
Read-onlyIdempotent

Get the embed code of a chatbot

The code that puts the chatbot on a website, as the dashboard offers it: scriptCode adds a floating chat button before </body>, iframeCode places the chat inside a container, publicUrl is a direct link to the chat. Only chatbots of your own account.

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

Input Schema

NameRequiredDescriptionDefault
chatbotIdYeschatbotId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description earns credit for disclosing the shape of the return value — three distinct artifacts with their insertion semantics ('adds a floating chat button before </body>', 'places the chat inside a container') — which is substantive since there is no output schema. It stops short of covering failure modes, such as what happens when the chatbot id does not exist or is not in the caller's account.

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?

Two sentences, front-loaded with the purpose and followed by the three return artifacts in a single readable run. The opening clause restates the title verbatim, which is minor waste, but nothing else is padded.

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-parameter read tool with full schema coverage and declared annotations, this covers what an agent needs: what it fetches, who owns the resource, and what the three returned fields are used for in practice. The absence of any error or ownership-failure note is the only remaining 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% for the single parameter, so the schema already carries the burden and baseline 3 applies. The description adds only the ownership constraint on which chatbotIds are valid; it offers no format or sourcing detail beyond that.

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?

Names a specific verb and resource (get the embed code of a chatbot) and then enumerates exactly what that means: scriptCode, iframeCode, publicUrl, each with a one-clause explanation of where the snippet belongs. An agent can immediately tell this apart from get_chatbot or get_chatbot_settings without opening a schema.

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?

The description scopes the tool with 'Only chatbots of your own account,' which tells the agent what is in-bounds, but it never states when to reach for this versus get_chatbot or another read tool. Usage is implied by the resource name rather than explained.

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.