Array integer mode

array-integer-mode · version 1.0.0 · Numbers & math · free, no key needed

Return the most frequent canonical integers, listing every mode in first-seen order.

Use when you need to: array integer mode · mode of integer strings · most frequent integers.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "values": [
    "2",
    "1",
    "2",
    "3",
    "1",
    "2"
  ]
}

Response:

{
  "result": {
    "modes": [
      "2"
    ],
    "count": 3
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "array-integer-mode",
  "version": "1.0.0",
  "input": {
    "values": [
      "2",
      "1",
      "2",
      "3",
      "1",
      "2"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/array-integer-mode/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"values":["2","1","2","3","1","2"]}'

The machine-readable contract is at /v1/tools/array-integer-mode/versions/1.0.0.

CLI

node cli.mjs run array-integer-mode 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.