Skip to main content
Glama

Train a chatbot on a web page

add_knowledge_url

Add one web page to a chatbot's knowledge. The page is fetched, extracted, and embedded in the background — no need to call anything else afterwards.

Use this for a page the original crawl missed, or a page on a different site (a docs host, a help centre, a pricing page). Demo chatbots accept up to 5 pages in total.

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": {
      "chatbot_id": "<chatbot_id>",
      "url": "<url>"
    },
    "name": "add_knowledge_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic page address, such as example.com/faq or https://example.com/faq. Use a full domain, not a search phrase.
chatbot_idYesThe token or chatbot_id returned by create_chatbot.

Output Schema

NameRequiredDescriptionDefault
nameNo
addedYes
messageNo
sourcesYes
trainingNo
source_idNo
chatbot_idYes
source_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: processing is asynchronous and backgrounded, so no subsequent call is required, and demo chatbots cap at 5 pages total — a quota an agent cannot infer from structured fields. The annotations already flag openWorldHint=true and idempotentHint=false, but the description doesn't say what happens when the same URL is added twice, which is the one meaningful gap for a non-idempotent tool.

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?

Three short paragraphs, front-loaded with the action and its asynchronous nature, then usage triggers, then the quota constraint. Every sentence carries information an agent would otherwise lack; nothing is repeated from the title or annotations.

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?

Return values needn't be explained because an output schema exists, and the description covers the async model, quota limit, and selection criteria. It's nearly complete for a two-parameter tool — only duplicate-URL behavior and failure modes (unreachable or non-public page) are unstated.

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 coverage is 100%, so both url and chatbot_id are already documented, including the 'full domain, not a search phrase' constraint and where chatbot_id comes from. The description adds only weak context ('a page on a different site') and no format or validation detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource ('Add one web page to a chatbot's knowledge') and immediately clarifies the mechanism — the page is fetched, extracted, and embedded. The resource type (a web page) inherently separates it from add_knowledge_text and add_qa, so an agent can pick it without opening the schema.

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?

Gives clear positive conditions: a page the original crawl missed, or a page on a different site such as a docs host, help centre, or pricing page. It also notes no follow-up call is needed. What's missing is an explicit exclusion — e.g. 'use add_knowledge_text for raw content instead' — but the trigger conditions are concrete enough to guide selection.

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