math_fact

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

Get mathematical properties about a number (e.g., 16, 256)—prime factors, sequences, mathematical significance. Returns math-focused trivia.

Parameters

NameTypeRequiredDescription
numbernumberyesThe number to get a mathematical fact about (e.g., 1729)

Example call

Arguments

{
  "number": 16
}

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":"math_fact","arguments":{"number":16}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('math_fact', {
  "number": 16
});

More examples

{
  "number": 1729
}

Response shape

Always returns: number, fact, type, found

FieldTypeDescription
numbernumber | stringThe number the mathematical fact is about
factstringMathematical property or trivia about the number
typestringType of fact (math, etc.)
foundbooleanWhether a mathematical fact was found
Full JSON Schema
{
  "type": "object",
  "properties": {
    "number": {
      "type": [
        "number",
        "string"
      ],
      "description": "The number the mathematical fact is about"
    },
    "fact": {
      "type": "string",
      "description": "Mathematical property or trivia about the number"
    },
    "type": {
      "type": "string",
      "description": "Type of fact (math, etc.)"
    },
    "found": {
      "type": "boolean",
      "description": "Whether a mathematical 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