> For the complete documentation index, see [llms.txt](https://docs.podigee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# Limits, errors, and recovery

Rate limits, size and upload limits, every MCP error code, and how to recover from each error.

This page lists the limits of the Podigee MCP server and every error that a client can get. Each error has the next step that recovers from it. Limits and plans can change. Always use the limits, part data, and expiry times that the server returns.

## Rate limits

The server counts the `POST` requests to `https://mcp.podigee.com/mcp` for each account, for each minute. The limit comes from the plan of the account owner.

| Plan                                        | Requests a minute for each account |
| ------------------------------------------- | ---------------------------------- |
| Launch                                      | 120                                |
| Starter                                     | 180                                |
| Grow                                        | 240                                |
| Scale, Creator                              | 300                                |
| Pro                                         | 400                                |
| Enterprise, Broadcaster, Portfolio, Network | 800                                |

* A request without a valid credential counts for its IP (Internet Protocol) address, with 120 a minute.
* All requests from one IP address together can make 1,000 requests a minute.
* Over a limit, the server answers HTTP 429 with the headers `Retry-After`, `RateLimit-Limit`, `RateLimit-Remaining`, and `RateLimit-Reset`. Wait the seconds in `Retry-After`, then send the request again.

The sign-in has its own limits:

| What                                                                                      | Limit                                                      | Answer over the limit                      |
| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------------ |
| Dynamic client registration (`POST /oauth/register`)                                      | 30 an hour for each IP address                             | HTTP 402 with the text "Too many attempts" |
| Authorization requests of a signed-in person whose `client_id` is a metadata document URL | 30 an hour for each person, 90 an hour for each IP address | HTTP 429                                   |

## Request and list limits

| Item                                           | Limit                                                                                                                                                                                                                                                                     |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Request body                                   | 1 MiB (mebibyte). A larger body gets HTTP 413.                                                                                                                                                                                                                            |
| List page                                      | 25 items by default, 100 at most, unless the tool sets a smaller range. Most tools change a value outside the range: a limit below 1 becomes 25, and a limit above 100 becomes 100. `list_listeners` and `list_source_episode_analytics` refuse it with `invalid_params`. |
| Matches of `find_in_podigee`                   | 3 to 5, 3 by default                                                                                                                                                                                                                                                      |
| Episodes of `list_source_episode_analytics`    | 1 to 50, 20 by default                                                                                                                                                                                                                                                    |
| Episodes in one `bulk_update_episodes` call    | 1 to 50                                                                                                                                                                                                                                                                   |
| Episodes of one import (`episode_limit`)       | 1 to 1,000, 1,000 by default                                                                                                                                                                                                                                              |
| Imports that an account can start              | 20 in a rolling 24-hour period                                                                                                                                                                                                                                            |
| Analytics range                                | 366 days at most                                                                                                                                                                                                                                                          |
| Unique-audience range of `get_source_overview` | 40 days at most                                                                                                                                                                                                                                                           |
| Confirm value of a preview                     | 15 minutes, one use                                                                                                                                                                                                                                                       |
| Confirm of a deletion                          | Not earlier than 15 seconds after its preview                                                                                                                                                                                                                             |

The paging rules are in [MCP API overview](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/reference.md). The preview and confirm rules are in [Preview and confirm changes](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/preview-and-confirm-changes.md).

## Upload limits

| Item                                               | Limit                                                                      |
| -------------------------------------------------- | -------------------------------------------------------------------------- |
| File size                                          | 1 byte to 20 GiB (gibibytes)                                               |
| Part size                                          | 5 GB. A file up to 5 GB is one part.                                       |
| Cover image                                        | PNG or JPEG, up to 2 MB, square, 1400 to 3000 pixels wide, always one part |
| Active upload sessions for each account            | 10                                                                         |
| Declared bytes of active sessions for each account | 40 GiB                                                                     |
| Declared bytes in 24 hours for each account        | 100 GiB                                                                    |
| Declared parts in 24 hours for each account        | 20,000                                                                     |
| Signed upload address                              | 15 minutes                                                                 |
| Upload session                                     | 24 hours                                                                   |

An upload that would go over an account limit gets `upload_quota_exceeded`. The full protocol is in [Media upload protocol](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/media-upload-protocol.md).

## Plan limits

Many allowances depend on the plan: shows, publishes, storage, encoding minutes, downloads, AI credits, clips, team seats, video, analytics history, imports, exports, and private feeds. Do not hard-code them.

* `doctor` returns the plan, the allowances, and the usage of the account.
* A used-up allowance gives `plan_limit_reached`. Its `details` can contain `entitlement`, `limit`, and `used`. Tell the person which allowance is used up. Do not retry.
* Too few encoding minutes give `insufficient_encoding_minutes`.

## Suspended subscription

When the subscription is suspended, canceled, or the trial ended, the server accepts only:

* The handshake: `initialize`, `notifications/initialized`, `ping`, and `server/discover`.
* `tools/list`.
* `doctor`, which says what is wrong.
* `find_in_podigee`, which gives the link to the billing page.

Every other request gets HTTP 403 with the text "MCP access is not enabled for this account". The person fixes the subscription in Podigee. Then the other tools work again.

An account without any subscription keeps only the handshake and `doctor`. `tools/list` and `find_in_podigee` then also get HTTP 403.

## How errors arrive

An error comes in one of three forms. Check them in this order.

### HTTP errors

| Status | Cause                                                                                                                                                             | What to do                                                                     |
| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| 400    | Invalid JSON (JSON-RPC `-32700`), a batch, a missing or wrong protocol header, missing modern metadata, an unsupported protocol version, or a modern notification | Correct the request. The body names the problem.                               |
| 401    | Missing, expired, revoked, or wrong-resource credential                                                                                                           | Follow the `WWW-Authenticate` challenge and sign in again.                     |
| 402    | Too many client registrations from one IP address                                                                                                                 | Wait one hour. Reuse the registration that you have.                           |
| 403    | An `Origin` header that the server does not allow (no body)                                                                                                       | Send the request without a browser `Origin` header, or from an allowed origin. |
| 403    | `plan_required`, `account_blocked`, or `server_unavailable` in the body                                                                                           | See "Error codes".                                                             |
| 403    | "MCP access is not enabled for this account"                                                                                                                      | The account has no active subscription. See "Suspended subscription".          |
| 405    | A `GET` request                                                                                                                                                   | Send `POST`.                                                                   |
| 406    | The `Accept` header does not include `application/json` and `text/event-stream`                                                                                   | Send both types.                                                               |
| 413    | The body is larger than 1 MiB                                                                                                                                     | Send a smaller request.                                                        |
| 415    | The `Content-Type` is not `application/json`                                                                                                                      | Send `application/json`.                                                       |
| 429    | Rate limit                                                                                                                                                        | Wait the seconds in `Retry-After`.                                             |
| 500    | Internal server error                                                                                                                                             | Try again once later. Then contact Podigee support.                            |

### JSON-RPC errors

These come with HTTP 200, unless the table says otherwise.

| Code     | Cause                                                                                                                  | What to do                                                                                                                    |
| -------- | ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `-32700` | The body is not valid JSON (HTTP 400).                                                                                 | Send valid JSON.                                                                                                              |
| `-32600` | The envelope is not a valid JSON-RPC 2.0 request.                                                                      | Correct `jsonrpc`, `method`, and `id`.                                                                                        |
| `-32601` | Unknown method (HTTP 404 in the modern version).                                                                       | Use a method from [MCP API overview](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/reference.md). |
| `-32602` | Invalid parameters or an unknown tool name (no `data`), or an unknown resource or prompt (`data.code` is `not_found`). | Correct the name or the parameters.                                                                                           |
| `-32000` | A Podigee error outside a tool call, for example a resource read without its scope. `data.code` has the code.          | See "Error codes".                                                                                                            |
| `-32603` | Unexpected internal error.                                                                                             | Try again once later.                                                                                                         |

### Tool errors

A tool call that fails inside the tool returns a normal result with `isError: true`. Its `structuredContent` is `{code, message, details}`, and the first `content` item has the same JSON as text. `details` is present only for some codes. Read `message`: it says what went wrong and often the next step.

## Error codes

| Code                            | Meaning                                                                                                           | What to do                                                                                                                                                                                 |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `plan_required`                 | (HTTP 403) The plan of the account owner does not include MCP. Every Podigee 2026 plan, Launch included, does.    | The person changes to a 2026 plan.                                                                                                                                                         |
| `account_blocked`               | (HTTP 403) MCP access is not available for this account.                                                          | The person contacts Podigee support.                                                                                                                                                       |
| `server_unavailable`            | (HTTP 403) The MCP server is switched off for a short time.                                                       | Try again later.                                                                                                                                                                           |
| `unauthorized`                  | Authentication is necessary.                                                                                      | Sign in again.                                                                                                                                                                             |
| `insufficient_scope`            | The credential does not have every scope that the tool needs. The result carries `_meta["mcp/www_authenticate"]`. | Connect again with the scopes. See [Authorization and scopes](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/authorization-and-scopes.md).                      |
| `forbidden`                     | The person has no permission for this show, episode, or action in Podigee.                                        | The account or organization owner gives the permission.                                                                                                                                    |
| `authorization_revoked`         | The connection that started an operation is not valid any more.                                                   | Sign in again. Then follow the operation rules.                                                                                                                                            |
| `not_found`                     | The ID does not exist, or it is outside the account of the connection.                                            | Check the account and the ID. Do not probe other IDs.                                                                                                                                      |
| `invalid_params`                | The arguments do not match the schema or an allowed combination. `details` names the path and the rule.           | Correct the named argument and send a new request.                                                                                                                                         |
| `validation_error`              | Podigee refused a value.                                                                                          | Correct the value that the message names.                                                                                                                                                  |
| `read_only`                     | A write tool was called while writes are off for the account or the server.                                       | Do not retry. Tell the person that changes are not possible now.                                                                                                                           |
| `writes_disabled`               | The server switched writes off while an operation or upload needed them.                                          | Try again later.                                                                                                                                                                           |
| `confirmation_required`         | The confirm value is missing, expired, already used, or for other arguments.                                      | Make a new preview and ask the person again.                                                                                                                                               |
| `confirmation_too_early`        | A deletion confirm came less than 15 seconds after its preview. Nothing was deleted.                              | If the person did not answer yet, show what will be deleted and stop. If the person said yes, send the same request again after the seconds in the message. The confirm value stays valid. |
| `idempotency_conflict`          | The `idempotency_key` was used before with other arguments.                                                       | Use a new key for a new intent.                                                                                                                                                            |
| `operation_in_progress`         | The same work or its cancellation already runs.                                                                   | Follow the operation that runs.                                                                                                                                                            |
| `operation_cancelled`           | The operation was canceled.                                                                                       | Start new work only when the person asks for it.                                                                                                                                           |
| `delivery_outcome_unknown`      | Podigee does not know if an email (for example a listener password reset) was sent.                               | Ask the person before a new try. A new try needs a new `idempotency_key`.                                                                                                                  |
| `insufficient_encoding_minutes` | The account has too few encoding minutes.                                                                         | Call `doctor` and tell the person which allowance is used up.                                                                                                                              |
| `plan_limit_reached`            | A plan allowance is used up. `details` can have `entitlement`, `limit`, and `used`.                               | Tell the person. Do not retry.                                                                                                                                                             |
| `upload_quota_exceeded`         | An upload limit of the account is reached.                                                                        | Wait until active sessions end or expire, or until the 24-hour period moves on.                                                                                                            |
| `storage_forbidden`             | The storage refused the request permanently.                                                                      | Do not retry. Contact Podigee support.                                                                                                                                                     |
| `upstream_unavailable`          | A service that Podigee uses is not available for a short time.                                                    | Try again later.                                                                                                                                                                           |
| `subscription_suspended`        | The subscription is suspended or canceled.                                                                        | See "Suspended subscription".                                                                                                                                                              |
| `account_access_unavailable`    | MCP access needs an active subscription.                                                                          | The person fixes the subscription in Podigee.                                                                                                                                              |
| `internal_error`                | An unexpected error.                                                                                              | Try again once later. Then contact Podigee support.                                                                                                                                        |

### Analytics source errors

The four source tools (`list_analytics_sources`, `get_source_analytics`, `list_source_episode_analytics`, and `get_source_overview`) use the same codes as the REST API. A schema error comes first, as `invalid_params`. Schema errors are an unknown granularity, a `limit` or `offset` out of range, two range forms together, and a wrong date format.

| Code                          | Meaning                                                                                                                                                                                                                  |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `invalid_range`               | The range is not valid: a start after the end or in the future, more than 366 days, an episode without a publication date, or a range that ends before the first day that the plan keeps. The message names the problem. |
| `unknown_source`              | The source does not exist, or it is not switched on for the show. The message lists the available sources.                                                                                                               |
| `source_has_no_overview`      | `get_source_overview` exists only for `podigee_audio` and `podigee_video`.                                                                                                                                               |
| `range_too_long_for_audience` | A unique-audience range is longer than 40 days.                                                                                                                                                                          |
| `invalid_breakdown`           | The source has no such breakdown. The message lists the breakdowns that it has.                                                                                                                                          |
| `analytics_busy`              | The analytics database is busy. Try again in a moment.                                                                                                                                                                   |

The meaning of the sources and states is in [Analytics semantics](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/analytics-semantics.md).

## Retry rules

* Retry only a temporary error: HTTP 429, HTTP 500, `upstream_unavailable`, `writes_disabled`, `server_unavailable`, or `analytics_busy`. Wait before each try.
* Do not retry `invalid_params`, `validation_error`, `forbidden`, `insufficient_scope`, `read_only`, `plan_limit_reached`, `storage_forbidden`, or a confirm error as if it were temporary.
* When the result of a change is not known (for example after a network error), send the same request with the same `idempotency_key`. Podigee then returns the stored result and does not make the change twice. A new intent needs a new key.
* Never start a publish or an import again because a chat or a network connection ended. Read the operation with `get_operation`.

## Operations that fail or wait

A publish, an import, and some other changes run as an operation. A failed operation carries `error` with its own code. A failed publish also carries `recovery` with one action, and a waiting publish carries `waiting`. The rules for each action, for resume, and for cancel are in [Follow and recover long-running operations](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/follow-and-recover-long-running-operations.md). The fields are in [Objects and states](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/objects-and-states.md).

## Information for support

When you contact Podigee support, give:

* The client and its version.
* The account (`tenant_id`), the tool name, and the target ID.
* The operation ID or the upload ID.
* The time and the error code.

Never send access tokens, refresh tokens, signed upload addresses, passwords, or private feed URLs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
