Skip to main content
Glama

Teach the bot

add_knowledge

Add knowledge to a bot: a web page/site address (type "url") or text such as an FAQ, price list, policies or the contents of a document (type "text"). The bot answers from this.

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": {
      "bot_id": "<bot_id>",
      "type": "<type>"
    },
    "name": "add_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
textNoFor text: the content (up to ~500,000 characters).
typeYes
titleNoFor text: a short title, e.g. "FAQ".
bot_idYesThe bot id, like b_AbC123xyz789 (from create_bot or list_my_bots).
edit_keyNoThe bot's edit key, like bsk_… (from create_bot). Not needed when the user is signed in and the bot is in their account. Keep it private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / bot_id / description
      Previous value: -"The bot id, like b_AbC123xyz789 (from create_bot)."New value: +"The bot id, like b_AbC123xyz789 (from create_bot or list_my_bots)."
    • changedInput schema / properties / edit_key / description
      Previous value: -"The bot's edit key, like bsk_… (from create_bot). Keep it private."New value: +"The bot's edit key, like bsk_… (from create_bot). Not needed when the user is signed in and the bot is in their account. Keep it private."
    • changedInput schema / required
      Previous value: -[
      -  "bot_id",
      -  "edit_key",
      -  "type"
      -]New value: +[
      +  "bot_id",
      +  "type"
      +]
  2. 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=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the mutating and external-fetch nature is known. The description adds one genuine behavioral fact: "The bot answers from this," clarifying the content's effect at inference time. It says nothing about crawl depth for URLs, processing latency, or whether re-adding the same content duplicates it — relevant gaps for a non-idempotent write.

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 sentences, front-loaded with the action and resource, then the mode distinction and outcome. No redundant restatement of the title or annotations.

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 non-idempotent, open-world write with no output schema, the definition covers what to supply but not what happens afterward — whether URL ingestion crawls the whole site, how long indexing takes, what a repeat call does, or what a success result looks like. Adequate to invoke, thin for predicting consequences.

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 67%, and the description usefully expands the type enum: url means a web page or an entire site address (implying site-level fetching that the schema does not state), and text means document-like content such as FAQs, price lists, or policies. The remaining parameters (bot_id, edit_key, title) are already documented in the schema, so the description adds meaning where it matters most.

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?

"Add knowledge to a bot" gives a specific verb and resource, and the two input modes (type "url" for a page/site address, type "text" for FAQ/pricing/policies/document contents) make the operation concrete. It does not distinguish itself from the sibling update_bot, which an agent might reasonably confuse with adding new knowledge content.

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 implicitly tells the agent which type value to choose based on the source material, which is useful mode-selection guidance. It gives no explicit when-to-use or when-not-to-use guidance relative to update_bot or chat_with_bot, and no prerequisites beyond what the schema states.

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