ozon_call_method
Execute Ozon API calls with built-in safety guards for read, write, and destructive operations, plus automatic subscription and rate-limit handling.
Instructions
Execute a real call against the Ozon API.
SAFETY MODEL — read methods just work; write/destructive methods
require explicit confirmation flags. Each method's safety class is
visible in ozon_describe_method (safety field).
safety="read": no flag needed
safety="write": requires confirm_write=True
safety="destructive": requires BOTH confirm_write=True AND i_understand_this_modifies_data=True
SUBSCRIPTION GATE — when the method requires a higher tariff than the current cabinet tier, the call is refused locally and no HTTP request is sent. Saves quota on calls that would 403 anyway.
RATE LIMITS — 429 responses are retried up to MAX_RETRIES times honouring Retry-After. Slow endpoints (e.g. /v1/analytics/turnover/ stocks at 1 req/min) are serialised via a per-process semaphore.
On any failure returns a structured OzonError envelope —
agents should inspect error_type and decide.
Args: operation_id: e.g. "FinanceAPI_FinanceTransactionListV3" params: request body matching the method's request_schema confirm_write: required when method.safety == "write" or "destructive" i_understand_this_modifies_data: extra confirmation for destructive cabinet_tier: override the cached cabinet tier (e.g. "PREMIUM_PLUS")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| cabinet_tier | No | ||
| operation_id | Yes | ||
| confirm_write | No | ||
| i_understand_this_modifies_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||