Skip to main content
Glama

Create knowledge base

create_knowledge_base

Make a knowledge base: a Vault folder whose files agents search (retrieve steps, an agent's knowledge). Its folder is knowledge/ unless one is named; files already there are indexed. Its index uses the defaults, which a person changes on the Knowledge screen. Fill it with add_knowledge_file, add_knowledge_pages or add_knowledge_note.

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": {
      "name": "<name>"
    },
    "name": "create_knowledge_base"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoHow `urls` are read: each a page, a sitemap's pages, or a site crawled from it.
nameYesWhat it holds, e.g. 'Price list'.
urlsNoPublic web pages it is filled from once made, as add_knowledge_pages takes them.
folderNoA Vault folder; omit for knowledge/<name>.
descriptionNoWhat agents find in it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "How `urls` are read: each a page, a sitemap's pages, or a site crawled from it.",
      +  "enum": [
      +    "page",
      +    "sitemap",
      +    "site"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / urls
      Added value: +{
      +  "description": "Public web pages it is filled from once made, as add_knowledge_pages takes them.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent creation, and the description adds real behavior beyond them: the default folder path knowledge/<name>, the fact that pre-existing files there get indexed as a side effect, and that index settings are fixed at defaults only a person can change on the Knowledge screen. It omits what happens on a duplicate name, which is the main behavior an agent needs given idempotentHint=false.

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?

Four short sentences, front-loaded with the definition before the operational details, with no filler. The telegraphic pronoun style ('Its folder is...', 'Its index uses the defaults') is compact but slightly clipped.

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 5-parameter creation tool with no output schema, the description covers what is created, where it lands, how files get indexed, and what to do next. It stops short of saying what the call returns or how a duplicate name is handled, which is the remaining gap.

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 description coverage is 100%, so the baseline is 3. The description echoes the folder default already documented in the schema and adds only a timing nuance for urls ('filled from once made'), which is minor added meaning rather than new semantics.

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 ('Make a knowledge base') and immediately defines the resource in domain terms: 'a Vault folder whose files agents search (retrieve steps, an agent's knowledge)'. That definition plus the pointer to the add_knowledge_* fill tools makes it distinguishable from siblings without opening a 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?

Routes the agent forward explicitly: 'Fill it with add_knowledge_file, add_knowledge_pages or add_knowledge_note', and the urls parameter covers the seed-at-creation path. It does not state when-not to use it (e.g. versus update_knowledge_base on an existing base) or how name collisions behave, so it is clear context rather than full when/when-not 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.