Reference
Data source: In-memory curated collection
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/random-facts/
claude_desktop_config.json
{
"mcpServers": {
"gnist-random-facts": {
"url": "https://context.gnist.ai/mcp/random-facts/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/random-facts/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_facts", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/random-facts/
5 endpoints available:
GET /rest/random-facts/get_random_factGET /rest/random-facts/get_random_factsGET /rest/random-facts/search_factsGET /rest/random-facts/list_fact_categoriesGET /rest/random-facts/report_feedback
Shell
curl "https://context.gnist.ai/rest/random-facts/search_facts?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/random-facts/search_facts",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc random-facts
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
get_random_factGet a random interesting fact.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | any | optional | Filter by category (e.g. Science, History, Space). Omit for any category. |
get_random_factsGet multiple random facts at once.
| Parameter | Type | Required | Description |
|---|---|---|---|
count | any | optional | Number of random facts to return (default: 5, max: 50). |
category | any | optional | Filter by category (e.g. Science, History, Space). Omit for any category. |
search_factsSearch for facts by keyword.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search keyword — matches fact text, category, or source. |
max_results | any | optional | Maximum number of results (default: 20, max: 100). |
list_fact_categoriesList all available fact categories.
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |