number_fact
Pack: numbersapi · Endpoint: https://gateway.pipeworx.io/numbersapi/mcp
Get trivia facts about a specific number (e.g., 42, 1729). Returns the fact text and number.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
number | number | yes | The number to get a fact about (e.g., 42) |
Example call
Arguments
{
"number": 42
}
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":"number_fact","arguments":{"number":42}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('number_fact', {
"number": 42
});
More examples
{
"number": 1729
}
Response shape
Always returns: number, fact, type, found
| Field | Type | Description |
|---|---|---|
number | number | string | The number the fact is about |
fact | string | Trivia fact text about the number |
type | string | Type of fact (trivia, math, date, etc.) |
found | boolean | Whether a fact was found for the number |
Full JSON Schema
{
"type": "object",
"properties": {
"number": {
"type": [
"number",
"string"
],
"description": "The number the fact is about"
},
"fact": {
"type": "string",
"description": "Trivia fact text about the number"
},
"type": {
"type": "string",
"description": "Type of fact (trivia, math, date, etc.)"
},
"found": {
"type": "boolean",
"description": "Whether a fact was found for the number"
}
},
"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.