GnistAI GnistAI
Log in

Jokes

Curated joke database with 120 jokes across 8 categories — get random jokes, search, or browse by category.

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

Data source: In-memory curated collection

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/jokes/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-jokes": {
      "url": "https://context.gnist.ai/mcp/jokes/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/jokes/" \
  -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_jokes", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/jokes/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/jokes/search_jokes?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/jokes/search_jokes",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc jokes

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

get_random_joke
Get a random joke.
ParameterTypeRequiredDescription
categoryanyoptionalFilter by category (e.g. Programming, Dad Jokes, Science, Math). Omit for any category.
get_random_jokes
Get multiple random jokes.
ParameterTypeRequiredDescription
countanyoptionalNumber of jokes to return (1-20, default 5).
categoryanyoptionalFilter by category. Omit for any category.
search_jokes
Search for jokes by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch keyword — matches joke text, punchline, or category.
max_resultsanyoptionalMaximum number of results (default: 20, max: 100).
list_joke_categories
List all available joke categories.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related