Skip to main content
Glama

update knowledge

update_knowledge
Destructive

Replace text or Q&A and retrain, or set excluded on a URL to disable/re-enable it as evidence. Read the source first and preserve unrelated facts. Use refresh_knowledge to recrawl a changed page. Files must be replaced in the dashboard.

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>",
      "source_type": "<source_type>",
      "source_id": "<source_id>"
    },
    "name": "update_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
answerNo
excludedNoURL sources only: true disables this page as evidence; false enables it again.
questionNo
source_idYes
chatbot_idYesSelected chatbot ID or demo token.
source_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds genuinely new behavioral context: the call triggers a retrain, replacing means unrelated facts are lost unless preserved, and file sources cannot be updated here. It stops short of saying whether retraining is synchronous or what the response confirms.

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?

Four short imperative sentences, each carrying distinct information: what it does, the safety warning, the alternative, and the unsupported case. Nothing is repeated from the schema 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?

For a destructive, multi-mode mutation tool with an output schema, this covers the modes, the retrain consequence, the preservation requirement, and the routing to refresh_knowledge or the dashboard. The missing piece is an explicit per-source_type parameter map, which matters given the low schema coverage.

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 only 29%, so the description must compensate; it partially does by implying the text field for text sources and question/answer for Q&A, and by scoping excluded to URL sources. It never states the source_type-to-field mapping explicitly, and source_id and chatbot_id remain undocumented in both places.

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 description names concrete operations (replace text, replace Q&A, set excluded on a URL) plus the retrain side effect, so the verb and resource are unambiguous. It also explicitly distinguishes itself from refresh_knowledge, letting an agent pick between them without opening either 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?

It gives real operating guidance: read the source before updating, preserve unrelated facts, use refresh_knowledge for a recrawled page, and use the dashboard for files. It does not say when to prefer add_knowledge_text / add_qa over this update tool, which is the one obvious gap.

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