Data source: In-memory curated collection
https://context.gnist.ai/mcp/jokes/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (5)
get_random_jokeGet a random joke.
Returns a joke with setup and punchline. For single-type jokes, the full joke is in the setup field.
Optionally filter by category — use list_joke_categories() to see valid categories.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | any | optional | Filter by category (e.g. Programming, Dad Jokes, Science, Math). Omit for any category. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_random_joke",
"arguments": {}
}
}get_random_jokesGet multiple random jokes.
Returns a list of unique random jokes. Optionally filter by category.
| Parameter | Type | Required | Description |
|---|---|---|---|
count | any | optional | Number of jokes to return (1-20, default 5). |
category | any | optional | Filter by category. Omit for any category. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_random_jokes",
"arguments": {}
}
}search_jokesSearch for jokes by keyword.
Searches across setup text, punchlines, and categories. Case-insensitive.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search keyword — matches joke text, punchline, or category. |
max_results | any | optional | Maximum number of results (default: 20, max: 100). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "search_jokes",
"arguments": {
"query": "example"
}
}
}list_joke_categoriesList all available joke categories.
Returns the category names that can be used to filter random jokes.
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "list_joke_categories",
"arguments": {}
}
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
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"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/jokes/",
headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "search_jokes",
"arguments": {
"query": "example"
}
}
},
)
print(resp.json())