Skip to main content
Glama

Ask The Knowledge Base

ask_knowledge_base
Read-only

Ask a natural-language question and get an answer grounded in the workspace's published articles, with citations. This is the retrieval endpoint to use for support-bot integrations — it answers from the knowledge base rather than from the model's own knowledge. Draws on the add-on's AI credit pool.

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

Input Schema

NameRequiredDescriptionDefault
localeNoAnswer language; defaults to the KB's
historyNoOptional. Only for a follow-up: the previous question(s) asked with this tool and the answers it gave, oldest first, so a question like "and for admins?" keeps its subject. Never send other parts of the chat. Omit for a new question.
questionYes

Output Schema

NameRequiredDescriptionDefault
answerNo
citationsNo
noMatchesNo
matchedCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false, so safety and variability are covered structurally. The description adds two genuinely useful facts beyond them: answers carry citations, and each call consumes the add-on's AI credit pool (a cost signal). It says nothing about latency, freshness of the index, or what happens when no article matches, which matters for an open-world non-idempotent read.

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?

Three front-loaded sentences with no filler; purpose first, then contrast with model knowledge, then cost. The middle sentence is mildly redundant with the first ('grounded in articles' vs 'answers from the knowledge base rather than the model's own knowledge') but it reinforces a distinction that matters.

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?

An output schema exists, so return shape need not be explained, and the tool is a simple 3-parameter retrieval call. Still, for an open-world, non-idempotent, credit-consuming query tool, the description omits any behavior for the empty-result or insufficient-credit cases.

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

Parameters3/5

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

Schema coverage is 67% and the schema itself already documents locale and gives a detailed explanation of history, including the maxItems cap and follow-up semantics. The description adds no parameter-level meaning beyond that, so the schema carries the load and a baseline 3 is appropriate.

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 concrete verb and resource: 'Ask a natural-language question and get an answer grounded in the workspace's published articles, with citations.' It also distinguishes itself from the CRUD siblings by framing itself as 'the retrieval endpoint' for support-bot integrations, so an agent can tell it apart without opening the schema.

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?

Gives clear usage context — retrieval for support-bot integrations, answering from the KB rather than the model's own knowledge. It stops short of explicit when-not-to-use guidance or naming a sibling retrieval alternative, so it is clear but not exhaustive.

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