Skip to main content
Glama

List knowledge bases

list_knowledge_bases
Read-onlyIdempotent

List this workspace's knowledge bases (id, name, description, folder, status, top_k): searchable folders of documents. A retrieve step searches them by id (retrieve_kb_ids); an ingest step adds records to one (ingest_kb_id). Only active ones can be used.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_knowledge_bases"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral context: results are scoped to the current workspace and only active knowledge bases are usable. It doesn't state whether inactive ones are returned at all, which is the one ambiguity left.

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?

Two tight sentences, front-loaded with the verb and resource, then the returned fields, then the definition and downstream usage. No filler or redundant restatement of the title.

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 zero-parameter read-only list tool with no output schema, the definition does what the missing output schema would have done by naming the returned fields, and it flags the active-only constraint. Nothing needed to select or invoke it correctly 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?

The tool has zero parameters, so the baseline is 4. The description instead supplies semantics for the ids it produces, naming retrieve_kb_ids and ingest_kb_id as the consumers, which is useful cross-tool context beyond the empty schema.

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 ('List this workspace's knowledge bases') and immediately defines the domain object as 'searchable folders of documents.' The parenthetical enumerates the returned fields (id, name, description, folder, status, top_k), making it clearly distinct from list_knowledge_documents or search_knowledge.

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?

Explains the downstream role of the returned ids: 'A retrieve step searches them by id (retrieve_kb_ids); an ingest step adds records to one (ingest_kb_id).' It also gives the constraint 'Only active ones can be used,' which tells the agent how to filter results. It does not explicitly contrast with sibling listing tools (e.g., list_knowledge_documents), so it stops short of a 5.

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.