Skip to main content
Glama

Get agent knowledge bases

get_agent_knowledge_bases
Read-onlyIdempotent

Read which knowledge bases an AI agent searches.

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>",
      "agent_id": "<agent_id>"
    },
    "name": "get_agent_knowledge_bases"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYes
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

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety and idempotency are covered structurally and "Read" merely echoes that. The description adds only that the scope is an agent's searchable knowledge bases, without saying whether results include ids, names, or search settings.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with zero filler or repetition. It is efficient, though its brevity sits close to under-specification rather than being a model of structured clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description is the only place that could say what is returned (a list of knowledge base references, presumably), and it does not. For a simple read tool with annotations covering its safety profile, this is adequate but leaves a meaningful gap around return shape and the undocumented agent_id input.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no meaning to any of the three parameters. Schema coverage is only 67%, and the key parameter agent_id carries no schema description at all, so the definition leaves the most important input semantically undefined.

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?

States a specific verb ("Read") and a specific resource ("which knowledge bases an AI agent searches"), which is much more precise than a bare name restatement. It does not, however, name or distinguish itself from the obvious sibling set_agent_knowledge_bases or list_knowledge_bases.

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

Usage Guidelines2/5

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

The sentence gives no when-to-use, when-not-to-use, or alternative tool guidance. An agent must infer on its own that this is the read counterpart to set_agent_knowledge_bases and not the same thing as list_knowledge_bases.

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.