search_jokes

Pack: dadjokes · Endpoint: https://gateway.pipeworx.io/dadjokes/mcp

Search dad jokes by keyword or topic. Returns matching jokes with IDs and text.

Parameters

NameTypeRequiredDescription
querystringyesTerm to search for within dad jokes.
limitnumbernoMaximum number of jokes to return. Defaults to 10.

Example call

Arguments

{
  "query": "knock knock"
}

curl

curl -X POST https://gateway.pipeworx.io/dadjokes/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_jokes","arguments":{"query":"knock knock"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_jokes', {
  "query": "knock knock"
});

More examples

{
  "query": "programming",
  "limit": 5
}

Response shape

Always returns: total, query, jokes

FieldTypeDescription
totalnumberTotal number of jokes matching the query
querystringThe search term used
jokesarrayArray of matching jokes
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "Total number of jokes matching the query"
    },
    "query": {
      "type": "string",
      "description": "The search term used"
    },
    "jokes": {
      "type": "array",
      "description": "Array of matching jokes",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the joke"
          },
          "joke": {
            "type": "string",
            "description": "The joke text"
          }
        },
        "required": [
          "id",
          "joke"
        ]
      }
    }
  },
  "required": [
    "total",
    "query",
    "jokes"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "dadjokes": {
      "url": "https://gateway.pipeworx.io/dadjokes/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026