# Urticaria Activity Score (UAS7)

UAS

Status: LIVE
Price: $0.005 USDC
`GET /api/calc/uas`
HTML: https://magentlab.com/docs/uas
Markdown: https://magentlab.com/docs/uas.md

Not a medical device. Not a diagnosis, dose, or listing recommendation.

## What it computes

Sum Młynek 2008 EAACI/GA2LEN/EDF urticaria activity score over seven consecutive days: each day wheals 0-3 plus pruritus 0-3 (daily UAS 0-6). Return UAS7 (0-42) and mean_daily_uas. This paper published no UAS7 activity bands.

## When to use

When an agent already has seven consecutive days of caller-assigned UAS wheals and pruritus integers (0-3) and needs the published UAS7 and mean daily UAS. magent does not count wheals, grade pruritus, diagnose urticaria, or score angioedema activity (AAS).

## When not to use

- Not a medical device and not a diagnosis of urticaria or a treatment order. magent does not count wheals or grade pruritus. Each of the 14 values is a caller-assigned integer 0-3.
- Młynek 2008 found quality-of-life correlation plateaued from the fourth consecutive day. magent still requires seven complete days and does not impute missing days.
- This is EAACI/GA2LEN/EDF UAS (daily wheals plus pruritus; UAS7 0-42), not angioedema activity (AAS).
- Młynek 2008 published no UAS7 activity-band cutpoints. magent returns UAS7 and mean_daily_uas only.

## Formula

```
UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands
```

## Citation

[How to assess disease activity in patients with chronic urticaria?](https://doi.org/10.1111/j.1398-9995.2008.01726.x)
Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M
Allergy. 2008;63(6):777-780
DOI: [10.1111/j.1398-9995.2008.01726.x](https://doi.org/10.1111/j.1398-9995.2008.01726.x)

## Worked example

### Day-1 wheals 1 and pruritus 1

Given: `pruritus_d1=1, pruritus_d2=0, pruritus_d3=0, pruritus_d4=0, pruritus_d5=0, pruritus_d6=0, pruritus_d7=0, wheals_d1=1, wheals_d2=0, wheals_d3=0, wheals_d4=0, wheals_d5=0, wheals_d6=0, wheals_d7=0`

1. wheals_d1 1 + pruritus_d1 1; days 2-7 wheals 0 and pruritus 0 as assigned by the caller
2. daily_d1 = 2; UAS7 = 2 (max 42); mean_daily_uas = 2/7 = 0.2857. This paper published no UAS7 activity band.


### All 14 items at published maximum

Given: `pruritus_d1=3, pruritus_d2=3, pruritus_d3=3, pruritus_d4=3, pruritus_d5=3, pruritus_d6=3, pruritus_d7=3, wheals_d1=3, wheals_d2=3, wheals_d3=3, wheals_d4=3, wheals_d5=3, wheals_d6=3, wheals_d7=3`

1. each wheals_d1-d7 and pruritus_d1-d7 is 3 as assigned by the caller
2. each daily UAS = 6; UAS7 = 42 (max 42); mean_daily_uas = 6. No UAS7 activity band.


## Also searched as

- UAS
- UAS7
- Urticaria Activity Score
- UAS-7
- Młynek UAS
- Mlynek 2008 UAS
- EAACI urticaria activity score
- chronic urticaria UAS
- seven-day UAS
- UAS7 score

## Parameters

- `wheals_d1` (integer, required): Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals.
- `wheals_d2` (integer, required): Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals.
- `wheals_d3` (integer, required): Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals.
- `wheals_d4` (integer, required): Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals.
- `wheals_d5` (integer, required): Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals.
- `wheals_d6` (integer, required): Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals.
- `wheals_d7` (integer, required): Caller-assigned Młynek 2008 UAS wheals integer 0-3 for that 24h day: 0 none, 1 mild (<20 wheals/24h), 2 moderate (20-50/24h), 3 intense (>50 wheals/24h or large confluent areas). magent does not count wheals.
- `pruritus_d1` (integer, required): Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch.
- `pruritus_d2` (integer, required): Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch.
- `pruritus_d3` (integer, required): Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch.
- `pruritus_d4` (integer, required): Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch.
- `pruritus_d5` (integer, required): Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch.
- `pruritus_d6` (integer, required): Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch.
- `pruritus_d7` (integer, required): Caller-assigned Młynek 2008 UAS pruritus integer 0-3 for that 24h day: 0 none, 1 mild (present but not annoying), 2 moderate (troublesome, does not interfere with activity or sleep), 3 intense (interferes with activity or sleep). magent does not grade itch.

## Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

Method: `POST /api/calc/uas`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: PREVIEW

- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request:

```json
{
  "items": [
    {
      "pruritus_d1": "1",
      "pruritus_d2": "0",
      "pruritus_d3": "0",
      "pruritus_d4": "0",
      "pruritus_d5": "0",
      "pruritus_d6": "0",
      "pruritus_d7": "0",
      "wheals_d1": "1",
      "wheals_d2": "0",
      "wheals_d3": "0",
      "wheals_d4": "0",
      "wheals_d5": "0",
      "wheals_d6": "0",
      "wheals_d7": "0"
    },
    {
      "pruritus_d1": "1",
      "pruritus_d2": "0",
      "pruritus_d3": "0",
      "pruritus_d4": "0",
      "pruritus_d5": "0",
      "pruritus_d6": "0",
      "pruritus_d7": "0",
      "wheals_d1": "1",
      "wheals_d2": "0",
      "wheals_d3": "0",
      "wheals_d4": "0",
      "wheals_d5": "0",
      "wheals_d6": "0",
      "wheals_d7": "0"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/uas

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/uas",
  "items": [
    {
      "components": [
        {
          "value": 1,
          "factor": "wheals_d1",
          "points": 1,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d2",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d3",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d4",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d5",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d6",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d7",
          "points": 0,
          "present": true
        },
        {
          "value": 1,
          "factor": "pruritus_d1",
          "points": 1,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d2",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d3",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d4",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d5",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d6",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d7",
          "points": 0,
          "present": true
        }
      ],
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "citation": {
        "authors": "Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M",
        "doi": "10.1111/j.1398-9995.2008.01726.x",
        "id": "mlynek-2008",
        "pmid": "18445192",
        "source": "Allergy. 2008;63(6):777-780",
        "title": "How to assess disease activity in patients with chronic urticaria?"
      },
      "formula": "uas",
      "formula_expression": "UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands",
      "max_score": 42,
      "score": 2,
      "mean_daily_uas": 0.2857,
      "daily_d1": 2,
      "daily_d2": 0,
      "daily_d3": 0,
      "daily_d4": 0,
      "daily_d5": 0,
      "daily_d6": 0,
      "daily_d7": 0
    },
    {
      "components": [
        {
          "value": 1,
          "factor": "wheals_d1",
          "points": 1,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d2",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d3",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d4",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d5",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d6",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "wheals_d7",
          "points": 0,
          "present": true
        },
        {
          "value": 1,
          "factor": "pruritus_d1",
          "points": 1,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d2",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d3",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d4",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d5",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d6",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "pruritus_d7",
          "points": 0,
          "present": true
        }
      ],
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "citation": {
        "authors": "Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M",
        "doi": "10.1111/j.1398-9995.2008.01726.x",
        "id": "mlynek-2008",
        "pmid": "18445192",
        "source": "Allergy. 2008;63(6):777-780",
        "title": "How to assess disease activity in patients with chronic urticaria?"
      },
      "formula": "uas",
      "formula_expression": "UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands",
      "max_score": 42,
      "score": 2,
      "mean_daily_uas": 0.2857,
      "daily_d1": 2,
      "daily_d2": 0,
      "daily_d3": 0,
      "daily_d4": 0,
      "daily_d5": 0,
      "daily_d6": 0,
      "daily_d7": 0
    }
  ]
}
```

## Response fields

- `formula` (string): uas
- `formula_expression` (string): Exact expression used
- `score` (integer): Młynek 2008 UAS7: sum of seven daily UAS values (0-42)
- `max_score` (integer): Always 42
- `mean_daily_uas` (number): UAS7 / 7, rounded to four decimal places
- `daily_d1` (integer): Day 1 UAS: wheals_d1 + pruritus_d1 (0-6)
- `daily_d2` (integer): Day 2 UAS: wheals_d2 + pruritus_d2 (0-6)
- `daily_d3` (integer): Day 3 UAS: wheals_d3 + pruritus_d3 (0-6)
- `daily_d4` (integer): Day 4 UAS: wheals_d4 + pruritus_d4 (0-6)
- `daily_d5` (integer): Day 5 UAS: wheals_d5 + pruritus_d5 (0-6)
- `daily_d6` (integer): Day 6 UAS: wheals_d6 + pruritus_d6 (0-6)
- `daily_d7` (integer): Day 7 UAS: wheals_d7 + pruritus_d7 (0-6)
- `components` (array): Per-day caller-assigned wheals and pruritus points
- `citation` (object): Młynek et al. Allergy 2008 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 1,
      "factor": "wheals_d1",
      "points": 1,
      "present": true
    },
    {
      "value": 0,
      "factor": "wheals_d2",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "wheals_d3",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "wheals_d4",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "wheals_d5",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "wheals_d6",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "wheals_d7",
      "points": 0,
      "present": true
    },
    {
      "value": 1,
      "factor": "pruritus_d1",
      "points": 1,
      "present": true
    },
    {
      "value": 0,
      "factor": "pruritus_d2",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "pruritus_d3",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "pruritus_d4",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "pruritus_d5",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "pruritus_d6",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "pruritus_d7",
      "points": 0,
      "present": true
    }
  ],
  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
  "citation": {
    "authors": "Młynek A, Zalewska-Janowska A, Martus P, Staubach P, Zuberbier T, Maurer M",
    "doi": "10.1111/j.1398-9995.2008.01726.x",
    "id": "mlynek-2008",
    "pmid": "18445192",
    "source": "Allergy. 2008;63(6):777-780",
    "title": "How to assess disease activity in patients with chronic urticaria?"
  },
  "formula": "uas",
  "formula_expression": "UAS7 = (wheals_d1 + pruritus_d1) + (wheals_d2 + pruritus_d2) + (wheals_d3 + pruritus_d3) + (wheals_d4 + pruritus_d4) + (wheals_d5 + pruritus_d5) + (wheals_d6 + pruritus_d6) + (wheals_d7 + pruritus_d7); each integer 0-3 (Młynek 2008 EAACI/GA2LEN/EDF UAS: wheals 0 none, 1 mild <20 wheals/24h, 2 moderate 20-50/24h, 3 intense >50/24h or large confluent areas; pruritus 0 none, 1 mild present but not annoying, 2 moderate troublesome without interfering with activity or sleep, 3 intense interferes with activity or sleep); daily UAS 0-6; UAS7 0-42; mean_daily_uas = UAS7 / 7; seven complete days required; no missing-day imputation; this paper published no UAS7 activity bands",
  "max_score": 42,
  "score": 2,
  "mean_daily_uas": 0.2857,
  "daily_d1": 2,
  "daily_d2": 0,
  "daily_d3": 0,
  "daily_d4": 0,
  "daily_d5": 0,
  "daily_d6": 0,
  "daily_d7": 0
}
```

## Errors

- HTTP 400 `invalid_uas`: UAS needs seven consecutive daily wheals and pruritus integers 0-3 (Mlynek 2008). Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [SCORTEN](https://magentlab.com/docs/scorten) — Sum the seven Bastuji-Garin 2000 SCORTEN risk factors from caller-assigned flags and return the 0–7 score and that paper's predicted in-hospital mortality token.
- [RegiSCAR](https://magentlab.com/docs/regiscar) — Sum the ten Kardaun 2007 RegiSCAR DRESS scoring-letter items from caller-assigned flags, eosinophilia grade, and organ count, and return the −4 to 9 total and the published none/possible/probable/definite band.

## Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/docs/mcp

## Guarantees

- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.
