Skip to main content
Glama

Create a knowledge base

workbench_kb_create

Creates an empty knowledge base. Recipe 'docs' (default) for reference material an agent searches at runtime; 'tabular' for spreadsheet-style data queried with SQL; 'graph' for entity/relationship extraction. After creating, add content with workbench_kb_add_documents, then give an agent flow a search tool over it with workbench_flows_attach_knowledge_base (before publishing the flow). May return needs_confirmation.

Input Schema

NameRequiredDescriptionDefault
nameYesKnowledge base name (1-200 chars).
recipeNoDefault 'docs'.
workspaceNoWorkspace slug override.
approvalIdNoApproval id from a prior needs_confirmation envelope.
visibilityNoWho can see it: PRIVATE (only the user), WORKSPACE (every member, the default), or SHARED (specific people, granted afterwards). Say 'make it private' → PRIVATE.
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the write/non-destructive/openWorld profile, so the bar is lower, and the description adds genuinely new behavior: the tool may return a `needs_confirmation` envelope, which explains the approvalId parameter path. It does not state permission requirements, name-collision behavior, or default visibility (left to the schema).

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 sentences, front-loaded with the core action, then recipe selection, then the follow-up pipeline. Every clause carries unique information; the trailing note about needs_confirmation is terse but operationally relevant rather than 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?

With six parameters, no output schema, and only weak annotations, the description covers creation semantics, variant choice, follow-up steps, and the deferred-confirmation path. It omits what the call returns (e.g. the new KB identifier) and any naming/permission constraints, which an agent would still need to guess.

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 83%, so baseline is 3, and the description earns above that by explaining what each recipe produces ('tabular' data queried with SQL, 'graph' entity/relationship extraction) and by tying the confirmation envelope to the approvalId flow. name, workspace, and description parameters gain no further meaning from the description.

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?

States a specific verb and resource ('Creates an empty knowledge base') and immediately differentiates the three variants of that resource via recipe semantics. An agent can distinguish this from workbench_kb_add_documents, workbench_kb_get, or workbench_kb_search without opening any schema.

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?

Gives concrete downstream pipeline guidance: add content with workbench_kb_add_documents, then attach to an agent flow with workbench_flows_attach_knowledge_base before publishing. It does not say when *not* to use this tool (e.g. if a KB already exists, or workspace constraints), so it stops short of full routing 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