Zum Inhalt springen
The Consortium

Risks Index APIOperational

grx_build

Build a composite on your own data

Request

Ausprobieren

Available · MCP tool grx.build · No credits

https://api.risksindex.com

POST/v1/build

curl -s -X POST "https://api.risksindex.com/v1/build" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <a-unique-key-per-attempt>" \
  -d '{}'
const res = await fetch("https://api.risksindex.com/v1/build", { method: "POST", headers: { "Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>" }, body: "{}" });
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.risksindex.com/v1/build", data="{}".encode(), method="POST", headers={"Content-Type": "application/json", "Idempotency-Key": "<a-unique-key-per-attempt>"})
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": {
    "design": {},
    "quality": [
      "…"
    ],
    "results": [
      "…"
    ],
    "replication": {},
    "warnings": [
      "string"
    ]
  },
  "meta": {
    "authority": "string",
    "state": "string",
    "provenance": "…",
    "coverage": {
      "status": "full",
      "records": 0,
      "dimensions": {}
    },
    "review": {}
  }
}

Normalise, weight, aggregate and quantify uncertainty for indicators and units you send, following the OECD/JRC Handbook. Scores are bounded 0 to 10, aggregation is declared per level (arithmetic, geometric, geometric-complement), outliers use the skewness and kurtosis rule, and uncertainty is a seeded Monte Carlo with Sobol indices. The whole design is in the answer. Open and free; nothing is stored. Illustrative, never an Index value, rating or advice. Over MCP the tool is listed only with a Passport token (the kit allows anonymous GET tools only). Availability: Available.

Parameters

Parameters

  • Idempotency-Keyoptional

    header · string

    Optional. A value of your own (a UUID is fine) that makes this write safe to retry: the same caller, key and request within 24 hours gets the first answer again, with the header Idempotent-Replayed: true, and the work is not done twice. It applies to a request that carries a credential.

Answers

Responses

  • 200

    Records with provenance, coverage and links

  • 400Problem, RFC 9457

    Bad request body. Codes: BAD_BUILD, BAD_JSON

  • 401

  • 404Problem, RFC 9457

    Not found. Codes: NOT_FOUND

  • 409

  • 413Problem, RFC 9457

    Body too large. Codes: TOO_LARGE

  • 414

  • 422

  • 429Problem, RFC 9457

    Rate limited. Codes: RATE_LIMITED

  • 500Problem, RFC 9457

    Internal error. Codes: INTERNAL

Loslegen

Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.