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
| Field | Type | Description |
|---|---|---|
number | number | string | The randomly chosen number |
fact | string | Random trivia fact about the number |
type | string | Type of fact |
found | boolean | Whether 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.