Skip to main content
Glama

Create a knowledge base

create_knowledge_base

Make an empty knowledge base. Add sources with add_knowledge_source, then attach it to an agent with set_agent_knowledge.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
descriptionNoWhat it holds, for the person.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds only the 'empty' state and the sequencing context; it says nothing about name uniqueness, permissions, or what identifier comes back. Some added value, but thin for a mutating tool.

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 short sentences, front-loaded with the purpose and followed by the next steps. Every clause carries information; there is no filler or redundancy.

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?

For a simple two-parameter create tool with annotations and no output schema, the description covers purpose and workflow adequately. However, it omits the required 'name' parameter entirely and does not state what is returned or what happens if a KB with that name already exists, given idempotentHint=false.

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?

Two parameters with only 50% schema description coverage: 'name' has no description in the schema at all, and the description here never mentions it or its 120-character limit. The description parameter is documented only in the schema as 'What it holds, for the person.' The prose does not compensate for the coverage gap.

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 and resource: 'Make an empty knowledge base.' The word 'empty' usefully distinguishes this from any tool that would populate a KB, and the sibling names add_knowledge_source and set_agent_knowledge are named for the follow-on work. No explicit statement of what it is not, so a 4 rather than a 5.

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?

Provides a clear workflow: create empty, add sources with add_knowledge_source, then attach with set_agent_knowledge. That tells an agent when to reach for this tool and what to do next. It stops short of exclusion guidance (e.g. when to reuse an existing KB via list_knowledge_bases instead).

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