GnistAI GnistAI
Log in

Random Facts

Curated database of 150+ interesting facts across 12 categories — science, history, nature, space, and more.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Reference

Data source: In-memory curated collection

MCP 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"}}}'

API REST API

API Root https://context.gnist.ai/rest/random-facts/

5 endpoints available:

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())

OpenAPI Spec  ·  Full API Docs

CLI 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_fact
Get a random interesting fact.
ParameterTypeRequiredDescription
categoryanyoptionalFilter by category (e.g. Science, History, Space). Omit for any category.
get_random_facts
Get multiple random facts at once.
ParameterTypeRequiredDescription
countanyoptionalNumber of random facts to return (default: 5, max: 50).
categoryanyoptionalFilter by category (e.g. Science, History, Space). Omit for any category.
search_facts
Search for facts by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch keyword — matches fact text, category, or source.
max_resultsanyoptionalMaximum number of results (default: 20, max: 100).
list_fact_categories
List all available fact categories.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related