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

NameTypeRequiredDescription
numbernumberyesThe 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

FieldTypeDescription
numbernumber | stringThe number the fact is about
factstringTrivia fact text about the number
typestringType of fact (trivia, math, date, etc.)
foundbooleanWhether 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.

Regenerated from source · build May 9, 2026