Jokes Search Jokes
jokes_search_jokesSearch jokes by keyword or phrase. Returns matching jokes with categories, types, 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": {
"query": "programmer",
"amount": 10,
"category": "Programming"
},
"name": "jokes_search_jokes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keyword or phrase to search for within joke text. | |
| amount | No | Number of jokes to return. Defaults to 5. | |
| category | No | Limit search to a category. One of: Any, Programming, Misc, Dark, Pun, Spooky, Christmas. Defaults to "Any". | |
| safe_mode | No | When true (the default), only return jokes JokeAPI flags as safe. Set false to include Dark and other unsafe-flagged categories. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jokes | Yes | Array of matching jokes | |
| query | Yes | Search query used | |
| total | Yes | Total number of matching jokes | |
| category | Yes | Category searched |