# Standard tools

Standard tools are ready-made functions. Adlass holds the provider key, so no account, connection or grant is needed. Every plan can use them; only credits limit them. `get_context` lists the enabled ones under `tools`.

## tools.audio.transcribe

Transcribes one audio file synchronously.

- Input: exactly one of `url` (public http(s), no login) and `document_id` (with `space_id`). Optional: `space_id`, `language` (ISO 639-1, e.g. `es`), `prompt` (names and terms that help recognition, up to 1000 characters).
- Formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm. Files are limited to 10 MB, about 10 minutes of MP3 at 128 kbit/s and far more for WhatsApp voice notes. The provider gets at most 90 seconds.
- Output: `text`, `languages`, `duration_seconds`, `credits`, `model`, `text_retained`.
- Audio uploaded as a document is only stored: no text extraction, no facts, no credits. Transcribe it with this tool and store the text yourself if you need it (`data.write`).

## Price

13.5 credits per minute, charged by the second, rounded up. 42 seconds cost 9.45 credits. Over MCP and the API each call also counts one `agent.action`. Only success costs; failures and timeouts charge nothing. A call of an unexpected length may take the balance below zero; the next call is then refused. The current rate (`tools.audio.transcribe.minute`) comes from `billing.rates.list`.

With `space_id` the owner of the Space pays and the caller needs write access to it (`document_id` also needs download access). Without it the caller's workspace pays.

## Replay and retries

Writes replay by `idempotency_key`, and the text is not stored. A replay returns the metadata without `text` and charges nothing. If you lost the text, call again with a new key; that charges again. The assistant shortens results above 60,000 characters, about an hour of speech; use MCP for longer recordings.

`rate_limited` (60 calls per minute per workspace), `billing_credits_exhausted` and `tool_disabled` are answered before the key is claimed: wait or top up, then repeat with the same key. These checks also run before a replay, so a replay can get these errors too. Every other failure is stored on the key and replays as the same error, so retry those with a new key.

| Code | Status | Case |
|---|---|---|
| `billing_credits_exhausted` | 402 | Less than one minute of credits left |
| `tool_disabled` | 503 | The tool is switched off |
| `rate_limited` | 429 | Limit of the workspace reached |
| `tool_source_unreachable` | 422 | URL unreachable or not allowed, or no stored content |
| `tool_input_too_large` | 413 | Over 10 MB |
| `tool_input_unsupported` | 422 | The provider rejected the format or the file is damaged |
| `tool_timeout` | 504 | Over 90 seconds; send a shorter file |
| `tool_provider_failed` | 502 | Other provider failure; nothing was charged |

## Where tools run

- MCP, the operations endpoint and the assistant: the operation, without approval per call.
- Routine agents: the function tool `tool__audio_transcribe`, always available. Only `document_id` of the run's scope.
- Scripts: `ctx.tools.run(key, arguments)` with the capability `tools`. Only `document_id` of the run's scope. A restart after a lost runner charges again. See read_docs("scripts").

Routine agents and scripts cannot pass `url`, so a run cannot send data to an outside address through a tool. A dry run answers without calling the provider or charging.

## Privacy

The audio goes to OpenAI for this call. The tool itself keeps neither audio nor text: not in the audit trail, the trace or the idempotency record. `text_retained: false` describes the tool. In a routine run or an assistant chat the text enters the conversation like any other tool result, so it stays in that run's history and, where tracing of content is on, in the trace. In a script run it stays encrypted in the reply row until the run ends.
