Skip to main content
Glama
florenciakabas

xai-toolkit

retrieve_business_context

Retrieve relevant business documents and protocols from the knowledge base to provide actionable guidance after model predictions. Returns ranked chunks with source provenance for informed decision-making.

Instructions

Retrieve relevant business context from the knowledge base.

Searches loaded business documents (e.g., clinical protocols, operational
rules) for sections relevant to the query. Returns ranked chunks with
source provenance for the Glass Floor presentation pattern.

Use this AFTER an explainability tool to find actionable business guidance.
For example, after explain_prediction returns a high-probability malignant
classification, call this with a query like 'high risk malignant biopsy'
to retrieve the relevant clinical protocol sections.

The provenance_label is always 'ai-interpreted' — any synthesis from
these chunks by the LLM is NOT deterministic and must be clearly
distinguished from grounded tool outputs.

Args:
    query: Natural language search query (e.g., 'high risk biopsy referral').
    top_k: Maximum number of chunks to return (default: 5).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
top_kNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florenciakabas/xai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server