three.ws Billing
v0.1.3An agent's account economics — plan quotas, metered usage, invoices, receipts, and earnings.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_billing_summary My plan, quotas, and current usage
Your account's plan tier, the quota ceilings for that tier, and live usage measured against them — the "how much of my plan is left?" call. Returns `plan` (e.g. free | pro), `quotas` (max_avatars, max_bytes_per_avatar, max_total_bytes, mcp_calls_per_day — or null when the tier has no metered ceilings), and `usage` (avatar_count, total_bytes of avatar storage, agent_count, mcp_calls_24h tool calls in the last 24 hours, llm_calls_month LLM calls since the start of this UTC month). Each tool returns a `remaining` map computed from quotas − usage so an agent can see headroom at a glance. Res…
query_usage My metered usage / invoice statement for a period
Your metered usage rolled up into an invoice statement for a billing period — what you were charged for, broken down by action. Returns `period_label` + `period` ({from,to} ISO), `line_items` (one per billed action: action id, human label, count, units, gross_usd, fee_usd, gross/fee/net atomics in USDC 6dp, discount_bps holder-tier discount applied), `totals` (charge_count, gross_usd, fee_usd, net_usd, currency), and `reconciliation` (total / reconciled / unreconciled / all_reconciled — whether every charge maps to a real settlement). Defaults to the current UTC calendar month. Pass `perio…
| Parameter | Type | Description |
|---|---|---|
from | string | Window start, ISO-8601 (e.g. 2026-06-01T00:00:00Z). Ignored when `period` is set. |
period | string | A calendar month as YYYY-MM (e.g. 2026-06). Takes precedence over from/to. Omit for the current month. |
to | string | Window end (exclusive), ISO-8601. Ignored when `period` is set. |
export_billing_history Export my billing history as CSV
Export a billing period's usage line items as a ready-to-save CSV — the same charges query_usage returns, in spreadsheet form. Returns `filename` (suggested download name, e.g. three-ws-invoice-2026-06.csv), `content_type` (text/csv), `csv` (the full CSV text, columns: action,label,count,units,gross_usd,fee_usd,discount_bps with a trailing TOTAL row), `row_count`, and `preview` (the first few parsed rows as objects for a quick look). Same period selection as query_usage: pass `period` (YYYY-MM) or `from`/`to` (ISO-8601); defaults to the current UTC calendar month. Requires THREE_WS_SESSION.…
| Parameter | Type | Description |
|---|---|---|
from | string | Window start, ISO-8601. Ignored when `period` is set. |
period | string | A calendar month as YYYY-MM (e.g. 2026-06). Takes precedence over from/to. Omit for the current month. |
preview_rows | integer | How many parsed line-item rows to include in `preview` (0–100, default 5). The full CSV is always returned in `csv`. |
to | string | Window end (exclusive), ISO-8601. Ignored when `period` is set. |
get_receipt Get one receipt (per-charge or per-purchase)
Fetch a single itemized receipt you own, in one of two forms. Pass `event_id` (numeric, from a usage line item) for a per-CHARGE receipt: action, label, units, gross_usd / fee_usd / net (with USDC atomics), discount_bps + discount_percent, and a `settlement` block (kind, ref, tx_signature, network, explorer_url, token_price_usd) plus issued_at. Pass `purchase_id` (UUID) instead for the cryptographically SIGNED receipt JSON of a confirmed skill purchase (receipt + signature + issued_at). Supply exactly one. Returns the `receipt` object and which `kind` ("charge" | "purchase") it is. Requires TH…
| Parameter | Type | Description |
|---|---|---|
event_id | Numeric usage-event id for a per-charge receipt (from a query_usage line item). Mutually exclusive with purchase_id. | |
purchase_id | string | UUID of a confirmed skill purchase for its signed receipt JSON. Mutually exclusive with event_id. |
get_fee_info Current platform fee rate
The current three.ws platform fee rate — the cut taken on marketplace sales, so an agent can reason about net vs gross before a charge settles. Returns `fee_bps` (basis points, e.g. 250 = 2.5%) and `fee_percent` (the same rate as a human string, e.g. "2.5"). Public — needs no session or credential. Read-only.