Skip to main content
Glama

Test knowledge base

test_knowledge_base
Read-onlyIdempotent

Ask a knowledge base one question and get the answer an agent would ground on it, with its sources, as the workspace's Test does. Nothing is saved and no call is made.

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>",
      "knowledge_base_id": "<knowledge_base_id>",
      "question": "<question>"
    },
    "name": "test_knowledge_base"
  }
}

Input Schema

NameRequiredDescriptionDefault
questionYes
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.
knowledge_base_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the bar is lower, yet the description still adds real value: nothing is persisted and no downstream call is made, which rules out side effects an agent might otherwise worry about. It also discloses the return shape (answer plus sources), which is meaningful because no output schema exists.

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?

Two tight sentences with the core action front-loaded and the no-side-effects guarantee immediately after. The clause 'as the workspace's Test does' is slightly redundant with the title but does orient the reader to a familiar UI concept, so it largely earns its place.

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?

With no output schema, the description takes on the job of describing the return and does so: an answer plus its sources. It also covers the side-effect profile and the conceptual model of agent grounding. The only real gap is per-parameter meaning for the question and knowledge_base_id fields.

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 description coverage is 50%: project_id and organization_id are documented in the schema, while question and knowledge_base_id carry no descriptions. The description only indirectly clarifies 'question' by saying one question is asked, and adds nothing about knowledge_base_id or the organization_id defaulting behavior beyond what the schema already states.

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 concrete verb and resource: ask one question of a knowledge base and receive the answer plus sources. It also distinguishes itself implicitly from retrieval-style siblings by framing the result as what an agent would ground on and by invoking the workspace's Test semantics. It stops short of naming a sibling tool, so the differentiation is inferred rather than explicit.

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?

Usage is implied rather than stated: the phrase 'as the workspace's Test does' plus 'Nothing is saved and no call is made' tells an agent this is a dry-run/preview path. There is no explicit when-to-use versus alternatives guidance and no named alternative such as get_knowledge_base for reading a KB directly, leaving the agent to infer selection.

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.