random_fact

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

Get a random trivia fact about a number. Returns the fact and the randomly chosen number. Use when you want surprising facts without specifying one.

Example call

Arguments

{}

curl

curl -X POST https://gateway.pipeworx.io/numbersapi/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: number, fact, type, found

FieldTypeDescription
numbernumber | stringThe randomly chosen number
factstringRandom trivia fact about the number
typestringType of fact
foundbooleanWhether a fact was found
Full JSON Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": [
        "number",
        "string"
      ],
      "description": "The randomly chosen number"
    },
    "fact": {
      "type": "string",
      "description": "Random trivia fact about the number"
    },
    "type": {
      "type": "string",
      "description": "Type of fact"
    },
    "found": {
      "type": "boolean",
      "description": "Whether a fact was found"
    }
  },
  "required": [
    "number",
    "fact",
    "type",
    "found"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026