ClockNext: create unit
clocknext_create_unitCreate a metered usage unit for fixed-cost events, pricing each event flat or tiered, and identified by a stable agentKey for accurate billing.
Instructions
Create a unit type: a metered usage unit reported against a lowercased stable agentKey (the key you send when recording unit usage) — its durable identity, unique org-wide. Units are for FIXED-COST / non-LLM events (an upload, an export, a seat) — one event = one unit, no tokens. Price it FLAT (a single flatPrice per event, default 0) or tiered — pricingType SLAB or VOLUME with tiers (1–50, ordered; only the last tier may have upTo:null). PREFER the dashboard (https://payments.clocknext.com/units) for the live price preview; use this tool as the fallback. A plan meters it via a UNIT component referencing this unit's id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unit name. | |
| tiers | No | SLAB/VOLUME only: 1–50 tiers, ordered; only the last may have upTo:null. | |
| agentKey | Yes | Lowercased stable key consumption is reported against (sent as `agentKey` when recording unit usage). The unit's durable identity — unique org-wide, chars [a-z0-9._-]; a rename never changes it. | |
| isActive | No | Whether the unit is active/sellable. | |
| flatPrice | No | FLAT only: price per event. Defaults to 0. | |
| description | No | Optional human-readable description. | |
| pricingType | Yes | FLAT = a single per-event price; SLAB/VOLUME = tiered pricing. |