search_jokes

Pack: dadjokes · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_jokes for the schema, then POST the same URL with its arguments for the data.

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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the dadjokes pack
{
  "mcpServers": {
    "dadjokes": {
      "url": "https://gateway.pipeworx.io/dadjokes/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026