Skip to main content
Glama

Add knowledge source

add_knowledge_source

Adds a website or a document to the facts the AI looks up while drafting reply suggestions: FAQs, prices, shipping and return policies, ingredients, product sheets. Not for tone, style or brand-voice guides, do's and don'ts, persona or wording rules: those only work as instructions (save_instruction), because the AI retrieves knowledge by topic and never reads a style guide while writing. A mixed document splits into facts here and rules as instructions. type "website": replient.ai crawls the pages listed in the sitemap (limited to the given path when the URL has one) in the background, usually within a few minutes; list_knowledge_sources reports progress. Links from those pages become links the AI may use in replies. Social networks, file-sharing sites and private or local addresses are rejected. An account can crawl about 10,000 page sections per week; at most 10 websites per hour. type "document": an FAQ, price list, policy or product sheet as text or Markdown (text), or a .pdf, .docx, .csv, .txt or .md file (contentBase64, up to 5 MB, at most 300,000 characters of text). PDFs without selectable text (scanned, or exported as images) are not supported; spreadsheets go in as .csv. The document is trained during the call and URLs inside it become links the AI may use (urlsInDocument); when the call fails, nothing is saved. At most 20 documents per hour. Over MCP, files travel as text (fileName ending in .md, or .csv for a table); other files are uploaded on the brand's Learning page (learningUrl from list_knowledge_sources).

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": {
      "brand": "<brand>",
      "type": "<type>"
    },
    "name": "add_knowledge_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoThe website to learn from, e.g. "https://www.example.com" or a section like "https://www.example.com/help".
textNoDocuments: plain text or Markdown, at most 300,000 characters. Either this or contentBase64.
typeYes"website": crawl a website. "document": upload a file or text.
brandYes
fileNameNoDocuments: file name with extension, e.g. "shipping-faq.md". Supported: .txt, .md, .markdown, .csv, .pdf, .docx.
contentBase64NoDocuments: the file bytes, base64-encoded, at most 5 MB before encoding. Either this or text.

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 cover only the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false); the description goes well beyond by disclosing background crawl timing, quota limits (10,000 sections/week, 10 websites/hour, 20 documents/hour), rejected source classes, the 5 MB / 300,000-character ceilings, and the failure semantics ("when the call fails, nothing is saved"). It also explains the MCP-specific transport constraint for files.

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 purpose and the critical exclusion, and nearly every sentence adds operative information. However it is a single dense paragraph with no breaks, so the crawl rules, document rules and quotas run together and are harder to scan than they need to be.

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?

No output schema exists, and the description compensates by pointing to list_knowledge_sources for progress and learningUrl. For a non-idempotent, quota-limited ingestion tool it covers timing, limits, failure behavior and alternatives, leaving little an agent would need to guess.

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?

Adds real meaning beyond the 83%-covered schema: how path-scoped URLs limit crawling, that the document is trained during the call, that URLs inside a document become usable links, and that files must travel as text over MCP with .md or .csv. Some content (extension lists, size caps) repeats what the schema already documents, which keeps it from a 5.

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 ("Adds a website or a document to the facts the AI looks up while drafting reply suggestions") and immediately narrows the content type with concrete examples. It explicitly names the sibling save_instruction and the boundary between the two, so an agent can route 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use (FAQs, prices, shipping/return policies, ingredients, product sheets) and explicit when-not-to-use (tone, style, brand-voice, do's and don'ts, persona, wording rules -> save_instruction), plus the mixed-document split rule. It also covers prerequisites and constraints per type, which is stronger than typical guidance.

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