How It Works
Agent generates nonce
Before calling a tool, the agent creates a unique nonce to prevent receipt fabrication.
Gate issues receipt
The gate signs a consumption attestation with the nonce, cost, and platform fee.
Consumption Attestations
A consumption attestation is a signed receipt issued by a gate after tool execution:Usage
- TypeScript
- Python
Pricing Constraints
Define pricing in your permission catalog:| Constraint | Type | Description |
|---|---|---|
core:pricing:per_call_cents | integer | Cost per tool call in cents |
core:pricing:per_minute_cents | integer | Cost per minute for time-based billing |
core:pricing:currency | string | ISO 4217 currency code (e.g., “USD”) |
core:pricing:model | string | ”per_call”, “per_minute”, “subscription”, “usage” |
core:pricing:free_tier_calls | integer | Free calls before billing starts |
SLA Constraints
Define service level guarantees:| Constraint | Type | Description |
|---|---|---|
core:sla:uptime_basis_points | integer | Uptime guarantee (9999 = 99.99%) |
core:sla:response_time_ms | integer | Average response time |
core:sla:p99_response_ms | integer | 99th percentile response time |
Platform Fees
Platform fees use ceiling rounding (always rounds up):Enable Commerce
TypeScript
Python
Types Reference
- TypeScript
- Python
Service Discovery
Find services by price, capability, or SLA:- TypeScript
- Python