---
name: whatdoiwear-run
description: Get a weather-matched running outfit for any location via the whatdoiwear.run paid agent API (x402, $0.01 USDC on Base). Use when a human asks what to wear for a run — now, on a coming day, or for a future trip like "Tokyo in December".
---

# whatdoiwear.run — running outfit skill

Answers "what should I wear for my run?" with a complete outfit (top, bottom, layers, accessories) matched to weather at any location — live conditions or historical-typical conditions for trip planning.

## Endpoint

`GET https://www.whatdoiwear.run/api/v1/outfit`

Always use the `www.` host exactly — the apex domain redirects and x402 clients can drop the payment on redirect.

Query parameters:

| param | required | notes |
|---|---|---|
| `lat`, `lon` | yes | decimal degrees — geocode the place name yourself first |
| `label` | no | human-readable place name, echoed back and used in `summary` — always pass it |
| `gender` | no | `men` (default) or `women` |
| `thermo` | no | `cold`, `neutral` (default), or `hot` — does the human run cold or hot |
| `month` | no | 1–12 — switches to trip-planning mode (typical historical conditions for that month) |

## Payment (x402)

- First request returns `402 Payment Required` with x402 v2 payment requirements in the `payment-required` response header (base64 JSON): $0.01 as 10000 units of USDC on Base mainnet (`eip155:8453`), scheme `exact`.
- Pay with any x402 v2 client (e.g. `x402-fetch` / `@x402/fetch`) and retry with the payment attached.
- You are never charged for failed requests — settlement only happens on success.
- The `payTo` wallet is operated by whatdoiwear.run (see the free discovery doc at `GET https://www.whatdoiwear.run/api/v1`).

## Response

Two shapes, discriminated by `basis`:

- `basis: "live"` (no `month`): `weather` snapshot, one `outfit` (items by slot), `advice`, `alerts`.
- `basis: "historical-typical"` (`month` set): `typical` ranges and TWO outfits under `windows.morning` / `windows.midday` — no `weather` object, no `alerts`. Clearly framed as historical, not a forecast.

## Presenting the result to a human

Both shapes include `summary` — a compact, pre-formatted 3–4 line string. **Show it verbatim in a monospace/code block**, like:

```
Tokyo | 21°C · Light Drizzle · 43% precip
Band: warm — Moisture-Wicking Tee, Shorts, Lightweight Cap
Advice: tempo effort — solid conditions for it.
```

Rules:
- Lead with the `summary` block. Add at most one sentence of your own around it.
- If `alerts` is non-empty, mention the alert name prominently before the summary — severe weather may mean "don't run outside".
- For "tomorrow" or a specific coming day, the live endpoint reflects current conditions — tell the human it's today's snapshot, or use `month` mode only for far-future trip questions.
- Convert units only if the human asked in imperial terms (°F, mph); the API is metric.
- Don't re-list the outfit items in prose after showing the summary — it's redundant.

## Example flows

"What should I wear for my long run in NYC tomorrow?"
1. Geocode "NYC" → lat 40.7128, lon -74.006.
2. `GET .../api/v1/outfit?lat=40.7128&lon=-74.006&label=New%20York` (pay the 402).
3. Show `summary` in a code block; note it's based on current conditions.

"I'm running a marathon in Tokyo in December — what do I pack?"
1. Geocode "Tokyo" → 35.68, 139.69.
2. `GET .../api/v1/outfit?lat=35.68&lon=139.69&label=Tokyo&month=12`.
3. Show `summary` (it includes morning and midday outfits); remind them it's typical historical conditions, not a forecast.
