Skip to main content
Glama

Создать или настроить базу знаний

knowledge_save

Create a new knowledge base or update its settings: manage AI vector provider, activation, chunk size, overlap, similarity threshold, and result count.

Instructions

Без параметра base создаёт базу, с параметром — меняет её настройки. Для поиска базе нужно подключение к ИИ-сервису, умеющему считать векторы. Подключение можно сменить или снять (provider=null) только у пустой базы: векторы разных моделей несопоставимы. После правки размера куска старые материалы нужно пересобрать через knowledge_reindex.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
baseNoКакую базу менять. Не указывайте, чтобы создать новую.
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.
nameNoНазвание базы.
top_kNoСколько фрагментов подмешивать в ответ. По умолчанию 4.
activeNoВключена ли база. Выключенная не ищет.
providerNoПодключение к ИИ-сервису для векторов: название или идентификатор. null — отвязать сервис от базы; после этого поиск не работает, пока не выбран новый.
min_scoreNoПорог близости: ниже него фрагмент не берётся. По умолчанию 0.25.
chunk_sizeNoРазмер куска в символах. По умолчанию 900.
descriptionNoДля чего она.
chunk_overlapNoНахлёст между кусками. По умолчанию 120.
Behavior4/5

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

Annotations already say readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true, so the mutation nature is declared. The description adds meaningful behavioral constraints not captured in the machine-readable annotations: created vs updated behavior depending on `base`, the empty-base restriction for changing/removing provider because vectors from different models are incompatible, and the need to rebuild chunks after changing chunk size via knowledge_reindex. No contradiction between description and annotations.

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?

The description is compact: three sentences, each carrying important operational information. It front-loads the primary create/update distinction, then adds the critical constraints. No filler.

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?

Given 10 parameters, 100% schema coverage, an output schema absent, and annotation hints present, the description is reasonably complete. It tells the agent the key conditional behavior, the vector-service requirement, the empty-base restriction, and the reindex follow-up. A minor gap: it doesn't explain what happens regarding the `active` flag or defaults, but those are covered by the schema. The open-world hint and no required parameters align with the flexible create-or-update nature.

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?

The schema descriptions already cover 100% of parameters, so the baseline is 3. The description adds value by explaining the crucial conditional behavior of `base` (omit to create, specify to update), which is not fully captured by the parameter description alone, and by relating `provider` to the vector-service requirement and `chunk_size` to the reindex action. However, it doesn't describe each parameter individually; the schema does that.

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 clearly states a specific action: with no `base` parameter it creates a knowledge base, with `base` it modifies its settings. This distinguishes it from sibling knowledge tools like knowledge_list, knowledge_reindex, knowledge_search, knowledge_delete, and knowledge_add_document. The verb is explicit ('создаёт', 'меняет') and the resource (base of knowledge) is named.

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

Usage Guidelines5/5

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

The description explicitly explains when to use it without `base` (create) versus with `base` (configure), and it references the sibling `knowledge_reindex` for the case when chunk_size is changed. It also gives conditions: provider can be changed or removed only on an empty base, and the AI-vector-service connection requirement for search. This is clear enough for an agent to select this tool and avoid mistakes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/uk-kd/operbots-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server