Skip to main content
Glama
AskBase

AskBase

Official

create_collection

Create a collection in a knowledge base to organize and store related content. Requires a write-scoped API key; specify a knowledge base ID when the project has several.

Instructions

Create a collection. Collections live in a knowledge base: if the project has exactly one it's used, if it has none one is created; with several, pass knowledge_base_id. Needs an API key with the 'write' scope.

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_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCollection name
slugNoURL-friendly id: lowercase letters, digits, hyphens (generated if omitted)
descriptionNoWhat the collection holds
knowledge_base_idNoKnowledge base to put it in (see list_knowledge_bases)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description takes on the behavioral burden and discloses two important non-obvious traits: the tool may automatically create a knowledge base when none exists, and it requires an API key with the 'write' scope. It does not describe return behavior, but an output schema exists to cover that.

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 short sentences, front-loaded with the action, followed by the key knowledge-base resolution rule and the authentication prerequisite. There is no redundant wording.

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 simple create operation with full schema coverage and an output schema, the description covers the important prerequisites and the otherwise non-obvious knowledge-base selection behavior. Nothing essential for correct invocation is missing.

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 already 100%, so the baseline is 3, but the description adds meaningful semantics for knowledge_base_id by explaining exactly when it must be supplied versus when the project's existing or automatically created knowledge base is used.

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: 'Create a collection.' It is immediately distinguishable from list_collections and other read-oriented siblings, though it does not explicitly name an alternative tool.

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 clear conditional guidance for knowledge_base_id: if the project has exactly one knowledge base it is used automatically, if none exists one is created, and if several exist the caller must pass knowledge_base_id. It also states the required write scope, though it does not explicitly discuss when not to use this tool.

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