Skip to main content
Glama

Create knowledge base

create_knowledge_base

Create an empty knowledge base in a project (name 1 to 120 characters). Add text with add_knowledge_document and attach the base to an AI agent with set_agent_knowledge_bases; an agent searches the bases attached to it during calls and agent chat tests.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
project_idYesThe workspace project the knowledge base belongs to.
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/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 mutation, so the bar is lower. The description adds meaningful behavior beyond that: the base is created empty, and the agent only sees bases explicitly attached to it, which explains the downstream effect of creation. It does not warn that repeated calls will create duplicate bases despite idempotentHint=false, which is the one notable omission.

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 followed by the workflow handoff. Every clause carries information; nothing is padding.

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 three-parameter creation tool with no output schema, the description covers what is created and how the result is consumed downstream. The remaining gap is what the call returns (presumably an id needed for add_knowledge_document and set_agent_knowledge_bases), which an agent would have to infer.

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 67%, so project_id and organization_id semantics are already documented in the schema. The description's parenthetical 'name 1 to 120 characters' merely restates minLength/maxLength from the schema, adding no new meaning. Baseline 3 is appropriate for a mid-coverage schema with no compensating detail.

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 states a specific verb and resource ('Create an empty knowledge base in a project') and qualifies the result as empty, which distinguishes it from any read or update operation on the same resource. It is immediately clear this is the creation entry point for the knowledge-base workflow.

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 concrete next-step routing: text goes in via add_knowledge_document and attachment happens via set_agent_knowledge_bases, which tells the agent where this tool sits in the sequence. It stops short of saying when not to create a base (e.g., duplicates, or that list_knowledge_bases should be checked first), so it is strong context rather than explicit 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.