Skip to main content
Glama

Knowledge base: Create collection

kb_create_collection

Create a knowledge-base collection (a named namespace, e.g. 'product-docs' or 'client-x-research') in the caller's workspace. Ingest documents into it with kb_ingest_text / kb_ingest_document and search it with kb_search. Additive and low-risk. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses the critical non-obvious behavior: the tool is PROPOSED and never performed directly, returns status='confirmation_required' along with an action_id and plan_token, and only writes after confirm_action. It also characterizes the effect as 'additive and low-risk,' which aligns with and enriches destructiveHint=false rather than merely restating it.

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?

Three tight sentences, front-loaded with the action and the object definition, then workflow pointers, then the confirmation contract. The capitalized CONFIRMATION label makes the most failure-prone detail scannable, and no sentence is filler.

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?

For a two-parameter create tool with no output schema, the description covers the otherwise-missing return shape (status, action_id, plan_token) and the follow-up call needed to complete the write. Nothing an agent needs to invoke this correctly—or to know it must not treat the call as final—is absent.

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 0%, so the description must carry parameter meaning, and it only partially does. The name examples imply 'name' is a short namespace label, but the 'description' parameter is never mentioned, and no format or length expectations are given for either field.

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 gives a specific verb and resource ("Create a knowledge-base collection") and then defines what a collection is via a concrete gloss ("a named namespace") plus examples ('product-docs', 'client-x-research'). It also scopes it to "the caller's workspace," which disambiguates it from the many other create_* siblings.

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 explicitly routes the agent into the intended workflow: ingest with kb_ingest_text / kb_ingest_document and search with kb_search, which tells an agent what to do next rather than calling a wrong create variant. It stops short of stating exclusions (e.g., when to consult kb_list_collections first or how it relates to kb_delete_collection), so it is clear context but not 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.

Resources