random_fact

Pack: uselessfacts · 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/random_fact for the schema, then POST the same URL with its arguments for the data.

Return one random trivia fact in English from the Useless Facts API at uselessfacts.jsph.pl. Returns the fact text with its id, the attributed source name, source URL, and a permalink. Use it for an amusing filler fact, an icebreaker line, or a fact-of-the-moment prompt.

Example call

Arguments

{}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('random_fact', {});

Response shape

Always returns: id, fact, source, source_url, permalink

FieldTypeDescription
idstringUnique identifier for the fact
factstringThe useless fact text
sourcestringSource of the fact
source_urlstringURL to the source
permalinkstringPermanent link to the fact
Full JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the fact"
    },
    "fact": {
      "type": "string",
      "description": "The useless fact text"
    },
    "source": {
      "type": "string",
      "description": "Source of the fact"
    },
    "source_url": {
      "type": "string",
      "description": "URL to the source"
    },
    "permalink": {
      "type": "string",
      "description": "Permanent link to the fact"
    }
  },
  "required": [
    "id",
    "fact",
    "source",
    "source_url",
    "permalink"
  ]
}

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 uselessfacts pack
{
  "mcpServers": {
    "uselessfacts": {
      "url": "https://gateway.pipeworx.io/uselessfacts/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026