Stats histogram

stats-histogram · version 1.0.0 · Other utilities · free, no key needed

Count decimal-string values in caller-supplied fixed bins and return below- and above-range totals.

Use when you need to: build a fixed bin histogram · count values in numeric ranges · bucket decimal string values.

Decide before calling

Read the versioned contract and the supported scope below. Reuse stats-histogram@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use stats-histogram@1.0.0 for build a fixed bin histogram. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

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

Response:

{
  "result": {
    "standard_version": "packet-r90-fixed-bin-histogram-1.0.0",
    "counts": [
      2,
      2
    ],
    "below": 0,
    "above": 0
  }
}

How to call it

MCP

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

{
  "id": "stats-histogram",
  "version": "1.0.0",
  "input": {
    "values": [
      "0",
      "1",
      "2",
      "3"
    ],
    "bin_edges": [
      "0",
      "2",
      "3"
    ]
  }
}

HTTP (no key)

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

The machine-readable contract is at /v1/tools/stats-histogram/versions/1.0.0.

CLI

node cli.mjs run stats-histogram 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.