Skip to main content
Glama

get_knowledge_base

Retrieve UE5 reference docs and textbook extracts for any topic to ground implementations and prevent hallucination. Call it before building AI, animation, UI, or gameplay systems.

Instructions

Retrieve knowledge base content for a given topic.

Returns the full content of the matching reference doc(s) plus relevant book extracts from 4 UE5 textbooks. This is the primary anti-hallucination tool — always call this before implementing a system.

Args: topic: Topic to retrieve. Use list_knowledge_base_topics() to see all options. Examples: "ai", "blueprints", "animation", "ui", "materials", "gameplay", "input", "data", "communication", "components"

MANDATORY RULE: Call this tool before implementing ANY UE5 system. Before AI systems → get_knowledge_base("ai") Before animation → get_knowledge_base("animation") Before UI/HUD → get_knowledge_base("ui") Before gameplay → get_knowledge_base("gameplay") Before materials → get_knowledge_base("materials") Before input → get_knowledge_base("input") Before data/structs → get_knowledge_base("data") Before communication → get_knowledge_base("communication")

KB: see knowledge_base/00_AGENT_KNOWLEDGE_BASE.md#overview Example: get_knowledge_base(topic="Example")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses that the operation is a retrieval ('Retrieve'), describes what is returned (reference docs plus book extracts from 4 UE5 textbooks), and sets an explicit usage expectation. It does not describe failure modes or size/performance caveats, but for a read-only knowledge lookup the behavior is well covered.

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?

The description is somewhat long but well structured: a clear first sentence, return semantics, parameter guidance, and an explicit rule block with useful mappings. The 'KB: see...' pointer and example block add minor redundancy, but the organization keeps the important information front-loaded.

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?

Given a single parameter, no annotations, and an output schema that presumably defines the return shape, the description is nearly complete: it covers what the tool returns, how to choose the topic, and when it must be called. The only small gap is not explicitly differentiating it from search_knowledge_base, and the 'Example' topic call could mislead an agent into thinking 'Example' is a valid topic.

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 input schema provides only a bare string type with 0% description coverage, so the description must compensate. It does so with concrete example topics and a pointer to list_knowledge_base_topics() for the full option set. The lone example call uses topic='Example', which is slightly ambiguous, but the overall parameter guidance is strong.

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 opens with a specific verb-resource pair: 'Retrieve knowledge base content for a given topic.' It then clarifies the exact return value ('full content of the matching reference doc(s) plus relevant book extracts') and positions itself as the 'primary anti-hallucination tool,' making its role unmistakable even among many sibling tools.

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?

The description gives explicit when-to-use guidance with a MANDATORY RULE and concrete mappings from UE5 systems to topic values. It says to use list_knowledge_base_topics() for all options, but it does not explicitly contrast this with the sibling search_knowledge_base or state when not to use this tool, so it falls just 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.

Deploy Server

Other Tools