Skip to main content
Glama
MCP Server RAG

MCP Server RAG

by atengk

rag_create_kb

Creates a new knowledge base namespace and its underlying vector store collection, letting you organize documents by name, owner, and public or private visibility.

Instructions

创建新的知识库命名空间与底层向量存储集合。

Args:
    name: 知识库名称,全局唯一标识(仅限字母、数字、下划线、连字符)
    description: 知识库的详细描述说明信息
    owner: 知识库所属创建者标识,默认 ``"default"``
    visibility: 知识库可见性范围(``"public"`` 或 ``"private"``),默认 ``"public"``

Returns:
    dict[str, Any]: 创建结果状态与说明

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": "rag_create_kb"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
ownerNodefault
visibilityNopublic
descriptionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does add real behavioral context: it discloses that creation provisions an underlying vector-store collection (a side effect beyond metadata), that `name` is a globally unique identifier, and the defaults for `owner` and `visibility`. It omits what happens on a duplicate name (error vs overwrite), permission requirements, and whether creation is reversible.

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?

The purpose sentence is front-loaded and the Args/Returns block is a compact, scannable listing with no filler. Slightly verbose in that each parameter repeats its type-implied role, but nothing is wasted.

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 four-parameter creation tool with an output schema (so return values need not be explained) and no annotations, the definition covers purpose, every parameter's constraints, and the vector-store side effect. The remaining gaps are failure-mode behavior on duplicate names and required permissions.

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 description coverage is 0%, so the description must compensate, and it largely does: it documents all four parameters, gives the character-set restriction on `name` (letters, digits, underscore, hyphen) and its global-uniqueness role, states the `"public"`/`"private"` enum values for `visibility`, and gives defaults for `owner` and `visibility`. Only length/format bounds and `description` semantics beyond 'detailed description' are left thin.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: creating a new knowledge-base namespace plus the underlying vector-store collection, which tells an agent this is a provisioning operation rather than an index/query one. It does not name or contrast any sibling (e.g. rag_list_kbs, rag_delete_kb), so the distinction is inferable from the tool name rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied by the verb 'create'; there is no explicit statement of when to call this versus alternatives, and no note that an existing name must be listed via rag_list_kbs first. The uniqueness constraint on `name` hints at the pre-check workflow but never states it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.