Skip to main content
Glama

Add, remove or refresh what the chat knows from

manage_knowledge_source
Destructive

Change the chat's knowledge sources. add_note writes a note of business facts the chat answers from (title, content); edit_note changes one (source_id, and the new title and/or content). import_page reads the text of a public web page (url, optional title) into what the chat knows; importing the same address again replaces it. remove deletes one source the owner added (a note, an imported page or an uploaded file; source_id from list_knowledge_sources or list_widget_knowledge); the site's own pages cannot be removed this way, they follow the site. refresh reads one source again. sync_all reads every waiting source now, which can take a minute. Show the owner what a note will say before saving it. Files (PDFs, images) are uploaded in the Knowledge settings.

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": {
      "site_id": "<site_id>",
      "action": "<action>"
    },
    "name": "manage_knowledge_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoimport_page: the public page address
titleNoadd_note / edit_note: the note title; import_page: a name for the page (default: its own title)
actionYes
contentNoadd_note / edit_note: the facts, in plain sentences
site_idYesThe site, from list_sites
source_idNoedit_note / remove / refresh: the source id
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructive and open-world behavior, and the description adds real context on top: re-importing the same address replaces the prior copy (relevant to the non-idempotent hint), sync_all is a long-running operation that 'can take a minute', and remove only applies to owner-added sources. It also flags a workflow constraint ('Show the owner what a note will say before saving it') that annotations cannot express. It does not say whether removal or edit is reversible, which would complete the destructive-behavior picture.

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 one-line purpose, then a single dense paragraph where each clause earns its place by describing one of the six actions. No filler, though the run-on structure of six actions in one paragraph makes it slightly harder to scan than a per-action layout would.

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?

With six actions, seven parameters and no output schema, the description covers every action, the source-id provenance for lookups, the immutability of site pages, the latency of sync_all and the excluded file-upload path. Nothing an agent needs in order to pick the right action and supply its arguments is missing.

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 already 86%, so the baseline is 3; the description goes further by mapping parameters to actions in prose (`title`/`content` for add_note, `source_id` for edit/remove/refresh, `url` for import_page), which removes ambiguity about which fields matter for which action of this multi-action tool. It does not explain `user_goal` or the interaction of `site_id` beyond what the schema states.

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 opening sentence names the resource (the chat's knowledge sources) and the description then enumerates every action with a specific verb and object: add_note writes a note, edit_note changes one, import_page reads a page, remove deletes, refresh re-reads, sync_all re-reads all. An agent can tell this apart from list_knowledge_sources and from the Knowledge settings file uploads without inspecting 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?

Guidance is given per action, including an explicit exclusion ('the site's own pages cannot be removed this way, they follow the site') and a redirect ('Files (PDFs, images) are uploaded in the Knowledge settings'). It also says where source_id comes from (list_knowledge_sources / list_widget_knowledge). It stops short of routing the agent between this tool and knowledge-adjacent siblings such as save_widget_knowledge, so it is strong but not complete.

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