Skip to main content
Glama

Create a chatbot for a website

create_chatbot

Create an AI chatbot trained on a website and return links to try it, embed it, and keep it.

The chatbot is a free demo: it crawls up to 5 pages of the site, answers 10 messages, and expires after 8 days unless somebody claims it. To claim it, open the returned claim_url, sign up or log in, and the chatbot moves into that account permanently. Someone already connected to their account can use claim_chatbot instead.

Training runs in the background and usually takes a minute or two. The links work immediately; answers improve once training finishes. Call get_chatbot with the returned token to check progress.

No account or API key is needed for this. If the person already has a ChatbotGen account, an API key (Settings → Account) makes this create the chatbot directly in their account instead, with no claim step.

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

Input Schema

NameRequiredDescriptionDefault
nameNoName for the chatbot. Defaults to a name derived from the domain.
languageNoLanguage the chatbot answers in. Defaults to "en".
website_urlYesPublic website address, such as example.com or https://example.com. Use the full domain, not a business name or search phrase. Must be reachable from the internet.
instructionsNoExtra instructions for the chatbot — tone, what to promote, what to refuse. Appended to the system prompt.

Output Schema

NameRequiredDescriptionDefault
modeNo
nameNo
tokenNoDemo mode only — the polling token.
usageNo
limitsNo
sourcesYes
websiteNo
chat_urlYesShareable page to chat with the bot
trainingYes
claim_urlNoDemo mode only — where a human signs up to keep the chatbot. 7 days.
chatbot_idYes
expires_atNo
widget_urlNoStandalone widget page
instructionsNo
dashboard_urlNoAccount mode only — manage it here.
embed_snippetYesScript tag for the customer's site
whatsapp_test_availableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the mutation/open-world profile; the description adds the substantive behavior an agent needs — demo caps (5 pages, 10 messages, 8-day expiry), the multi-step claim flow via the returned claim_url, background training that completes after the links already work, and the no-auth/API-key branching. That is materially more than readOnlyHint=false and openWorldHint=true convey, and it does not contradict them.

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?

Front-loaded with the outcome and return links, then layered detail on the demo limits, claim flow, and aliasing — a sensible order for an agent scanning for decision-relevant facts. It is multi-paragraph and somewhat long, with the API-key condition restated, but nearly every sentence carries operational information.

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?

The tool is a non-idempotent, open-world create with an output schema, and the description covers the gaps that matter: auth requirements, demo constraints, expiry, the claim handoff, and where to check training status. Return-value shape is left to the output schema, which is appropriate.

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 100%, so the baseline is 3, but the description adds contextual meaning the schema cannot: which parameter value matters (a real, internet-reachable site) and how the API-key path changes what gets created and returned. It does not document name/instructions/options beyond the schema, keeping it just above baseline.

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?

The first sentence gives a specific verb and resource ("Create an AI chatbot trained on a website") plus the concrete return value (try/embed/claim links). It names the related siblings it is not — claim_chatbot for users already connected and get_chatbot for progress checks — so an agent can separate it from neighbors without opening 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 claim_chatbot when someone is already authenticated, call get_chatbot with the returned token to poll training, and skip the claim step entirely if an API key is present. It also states the no-account case, which is the key precondition an agent must know before deciding whether this tool applies.

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