Jokes Get Joke
jokes_get_jokeGet a random joke, optionally filtered by category (e.g., 'general', 'programming') or type ('single' or 'twopart'). Returns joke text, category, and content flags.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "single",
"category": "Programming",
"safe_mode": true
},
"name": "jokes_get_joke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Joke type. One of: single, twopart. Omit to allow either type. | |
| category | No | Joke category. One of: Any, Programming, Misc, Dark, Pun, Spooky, Christmas. Defaults to "Any". | |
| safe_mode | No | When true, only return jokes that are flagged safe by JokeAPI. Defaults to true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| joke | No | Full joke text for single-part jokes | |
| safe | Yes | Whether joke is flagged as safe | |
| type | Yes | Joke type | |
| setup | No | Setup text for two-part jokes | |
| category | Yes | Joke category | |
| delivery | No | Punchline for two-part jokes |