Percent compute

percent-compute · version 1.0.0 · Money & pricing · free, no key needed

Exact percentage of, ratio, change, increase, decrease and reverse percentage, rounded once at a chosen scale.

Use when you need to: what is 20 percent of 150 · percentage increase from 20 to 25 · increase a number by 20 percent.

Decide before calling

Read the versioned contract and the supported scope below. Reuse percent-compute@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 percent-compute@1.0.0 for what is 20 percent of 150. 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:

{
  "mode": "of",
  "percent": "20",
  "value": "150",
  "scale": 2,
  "rounding": "half_even"
}

Response:

{
  "result": {
    "result": "30.00",
    "exact": true,
    "mode": "of"
  }
}

How to call it

MCP

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

{
  "id": "percent-compute",
  "version": "1.0.0",
  "input": {
    "mode": "of",
    "percent": "20",
    "value": "150",
    "scale": 2,
    "rounding": "half_even"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/percent-compute/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"mode":"of","percent":"20","value":"150","scale":2,"rounding":"half_even"}'

The machine-readable contract is at /v1/tools/percent-compute/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.