Skip to main content
Glama

List knowledge bases

list_knowledge_bases
Read-onlyIdempotent

List the knowledge bases of one project, as GET /v1/knowledge-bases: a page of at most limit bases (default 50, at most 100) from offset, with the total.

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": {
      "project_id": "<project_id>"
    },
    "name": "list_knowledge_bases"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
project_idYesThe workspace project the knowledge base belongs to.
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

The annotations already declare this as a safe, read-only, idempotent, closed-world operation. The description adds useful behavioral detail about pagination, including the default and maximum page size, offset-based paging, and returning a total. It does not discuss ordering or empty results, but it goes meaningfully beyond the 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 a single, front-loaded sentence that identifies the resource, scope, endpoint, and pagination behavior without unnecessary wording. Every element contributes to correct invocation.

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?

For a simple read-only list tool with no output schema, the description covers scope, endpoint, pagination limits, and total-count behavior. The annotations cover safety, and the schema covers required parameters. Minor omissions such as ordering and empty-result behavior do not prevent correct use.

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 coverage is 50%, and the description compensates by explaining that limit and offset define a page of results with a total count. It does not elaborate on organization_id, but the schema already documents that parameter and project_id. The description adds useful paging semantics that the schema alone does not fully convey.

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 states a specific verb, resource, and scope: list knowledge bases of one project. It also names the underlying endpoint, making the operation unambiguous and distinguishable from related tools such as get_knowledge_base or list_knowledge_documents.

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

Usage Guidelines3/5

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

The project-scoped listing context implies when this tool is appropriate, but the description does not explicitly name alternatives or when not to use it. An agent can infer basic usage from the scope and endpoint, but there is no explicit 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.