Entertainment
Data source: In-memory curated collection
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/riddles/
claude_desktop_config.json
{
"mcpServers": {
"gnist-riddles": {
"url": "https://context.gnist.ai/mcp/riddles/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/riddles/" \
-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": "get_riddle_answer", "arguments": {"riddle_id": 1}}}'
REST API
API Root
https://context.gnist.ai/rest/riddles/
5 endpoints available:
GET /rest/riddles/get_random_riddleGET /rest/riddles/get_riddle_answerGET /rest/riddles/search_riddlesGET /rest/riddles/list_riddle_categoriesGET /rest/riddles/report_feedback
Shell
curl "https://context.gnist.ai/rest/riddles/get_riddle_answer?riddle_id=1" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/riddles/get_riddle_answer",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"riddle_id": 1
},
)
print(resp.json())
Command Line
Command
gc riddles
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
get_random_riddleGet a random riddle WITHOUT the answer.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | any | optional | Filter by category (logic, wordplay, math, lateral-thinking, classic). Omit for any. |
difficulty | any | optional | Filter by difficulty (easy, medium, hard). Omit for any. |
get_riddle_answerReveal the answer to a specific riddle.
| Parameter | Type | Required | Description |
|---|---|---|---|
riddle_id | integer | required | The ID of the riddle to reveal the answer for. |
search_riddlesSearch for riddles by keyword.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search keyword — matches question, hint, or category. |
max_results | any | optional | Maximum number of results (default: 20, max: 100). |
list_riddle_categoriesList all available riddle 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") |