This runs on a temporary development URL that can stop working at any time, so it is left out of the directory and agents' search.
work-1-uasqwlsdyivaesfu.prod-runtime.all-hands.dev/kpi_score
Score weighted KPIs to 0..100 with higher/lower-is-better normalisation.
POST
https://work-1-uasqwlsdyivaesfu.prod-runtime.all-hands.dev/kpi_scoreUptime0.0% of 1 check in 30 days
30 days agoToday
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://work-1-uasqwlsdyivaesfu.prod-runtime.all-hands.dev/kpi_score", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"metrics":[{"name":"uptime","value":99.5,"target":99.9,"weight":1,"direction":"higher"}]}),
});
console.log(await res.json());Example input
{
"metrics": [
{
"name": "uptime",
"value": 99.5,
"target": 99.9,
"weight": 1,
"direction": "higher"
}
]
}