> 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/work-safely/check-your-account-plan-and-readiness.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# Check your account, plan, and readiness

Check the connected account, the plan allowances, and the readiness of a podcast to encode and publish.

Two tools tell the assistant where it stands before it starts work. `get_me` shows who is connected and what the connection may do. `doctor` checks the subscription, the plan allowances, and whether a podcast is ready to encode and publish. Run them before a bulk change, an import, or a publication.

## Before you start

* Connect your assistant. See [Connect your assistant](https://docs.podigee.com/documentation/start-here/ai-agents/connect-and-authorize/connect-your-assistant.md).
* `get_me` needs no scope. `doctor` needs the scope `mcp:podcasts:read`.
* With the scope `mcp:analytics:read`, `doctor` also shows the used and remaining downloads and audience size. Without it, `doctor` shows only the ceiling of these two allowances.
* Know the podcast ID when you want to check one podcast. `list_podcasts` gives it.

## Check the connected account

### Steps

1. Ask the assistant:

   ```
   Use Podigee. Run get_me and tell me which account you use and what you may change.
   ```
2. Compare the email address and the account with the account that you expect.
3. Read the scopes and the value `write_enabled`.

### Expected result

| Field                  | Meaning                                                                                                                        |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `email`                | The email address of the Podigee user who connected.                                                                           |
| `tenant_id`            | The account or organization of this connection.                                                                                |
| `scopes`               | The scopes that this connection holds.                                                                                         |
| `write_enabled`        | `true` when this connection can change data: writes are on for the account, and the connection holds at least one write scope. |
| `server_write_enabled` | `true` when Podigee allows writes for the account. It does not look at the scopes.                                             |
| `auth_method`          | How the connection signed in: `oauth` for browser sign-in, `personal_access_token` for a token.                                |

### If the result is wrong

* **Wrong account:** do not start a write task. Connect again and select the correct account.
* **`write_enabled` is `false`:** the connection can only read. To add write access, see [Choose the account and permissions](https://docs.podigee.com/documentation/start-here/ai-agents/connect-and-authorize/choose-the-account-and-permissions.md).

`get_me` does not work while a subscription is suspended. Use `doctor`.

## Run the health check

### Steps

1. Ask the assistant to run `doctor`:

   ```
   Use Podigee. Run doctor for my podcast and tell me what blocks my work.
   ```
2. Give the podcast if the assistant asks. The assistant sends it as `podcast_id`.
3. For work that changes data, let the assistant set `check_write` to `true`. Then the result is not `ok` when Podigee does not allow writes for the account.
4. Read the checks in the table below.

### What doctor reports

| Check               | What it tells you                                                                                   |
| ------------------- | --------------------------------------------------------------------------------------------------- |
| `auth`              | The email address and the user ID. Also `time_zone` and `local_time` when you have set a time zone. |
| `subscription`      | `active`, `suspended`, or `missing`, with a message, and the plan name.                             |
| `write_mode`        | `ok` when Podigee allows writes for the account, `disabled` when it does not.                       |
| `podcasts`          | The number of podcasts, the number that the plan allows, and `blocked_podcast_ids`.                 |
| `encoding`          | `ok` when the podcast can encode media, `blocked` when it cannot, `skipped` without a podcast ID.   |
| `publish_readiness` | With a podcast ID: `ready`, and the list of `blockers`.                                             |
| `import`            | `ok` when your plan permits an import, `blocked` with a message when it does not.                   |
| `allowances`        | The plan allowances with their usage. See the next section.                                         |
| `plan_limits`       | Two limits that read alike: the audience allowance and the private-feed listeners.                  |

`doctor` also returns `not_from_here`, the jobs that no tool does, and `how_podigee_works`, a short description of shows, episodes, and distribution for the assistant.

`write_mode` looks only at the account. It does not replace the write scope that a tool needs. `get_me` shows the scopes.

### Expected result

`ok` is `true`. That means:

* The subscription is `active`.
* The selected podcast is not in `blocked_podcast_ids`.
* The encoding check is not `blocked`.
* `publish_readiness.ready` is `true`, when you gave a podcast ID.
* Writes are on, when `check_write` is `true`.

Then compare the allowances with the planned work.

### Times and the time zone

`auth.time_zone` is your time zone, and `auth.local_time` is your current time. A time that you give without a time zone is in this time zone. When `doctor` returns no `time_zone`, the assistant asks you for your time zone before it schedules an episode.

## Read the plan allowances

`allowances` has one entry for each allowance: `episode_publishes`, `monthly_storage`, `encoding`, `downloads`, `audience_size`, `ai_credits`, `social_clips`, `team_seats`, and `video_allowance`.

| Field               | Meaning                                                                      |
| ------------------- | ---------------------------------------------------------------------------- |
| `limit`             | The ceiling for the current period, when the allowance has one.              |
| `used`              | The amount already used.                                                     |
| `remaining`         | The amount that is left before the ceiling.                                  |
| `unlimited`         | `true` when the allowance has no ceiling.                                    |
| `status`            | The state of the allowance, or `unavailable` when Podigee could not read it. |
| `period_reset_date` | The date when the period starts again, for an allowance with a ceiling.      |

### Steps

1. Find the allowance that the planned work uses. For a publication, these are `episode_publishes`, `encoding`, and `monthly_storage`.
2. Read `unlimited` first. A `limit` of `null` with `unlimited: true` means no ceiling.
3. Compare `remaining` with the planned work.
4. If the work needs more than `remaining`, make the batch smaller, split it, or wait for `period_reset_date`.
5. If `status` is `unavailable`, treat the ceiling as unknown. Do not treat it as unlimited. Check the allowance in Podigee before a bulk change.

### Expected result

You know for each allowance of the planned work if the plan has enough left, and when the period starts again.

### Plan limits that read alike

`plan_limits` has two separate limits. Each one says in `meaning` what it counts.

* `audience_allowance`: the listeners and viewers that the plan covers across all shows over a rolling 30 days. It does not limit the listeners of a private podcast.
* `private_podcast_listeners`: how many people can get an invitation to the private podcasts of the account owner. It is separate from the audience allowance.

### When you connect to another account

A connection can use an account that is not your own, for example a show on which you collaborate. Then `doctor` does not show the plan name, the allowances, or the plan limits of that account. The number of podcasts is then the number that you can see.

## Check encoding and publication readiness

Do this check before you upload media or publish an episode.

### Steps

1. Run `doctor` with the `podcast_id` of the target podcast and `check_write: true`.
2. Make sure that `subscription.status` is `active`.
3. Make sure that the podcast ID is not in `podcasts.blocked_podcast_ids`.
4. Make sure that `encoding.can_encode` is `true` and `encoding.status` is `ok`.
5. Make sure that `publish_readiness.ready` is `true`. If it is `false`, read each entry in `publish_readiness.blockers`.
6. Check `episode_publishes`, `encoding`, and `monthly_storage` in `allowances`.
7. Before an import, make sure that `import.status` is `ok`.

### Expected result

The podcast can encode media, it accepts a publication now, and the plan has enough capacity for the work.

## If a check is blocked

| Result                                  | What to do                                                                                                                          |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `subscription` is `suspended`           | Only `doctor` and `find_in_podigee` work. Ask the assistant for the billing page. `find_in_podigee` gives the link.                 |
| `subscription` is `missing`             | Only `doctor` works. Choose a plan in Podigee.                                                                                      |
| The podcast is in `blocked_podcast_ids` | The account has more podcasts than the plan allows, and Podigee blocks the newest ones. Select another podcast, or change the plan. |
| `encoding` is `blocked`                 | The podcast has not enough encoding minutes, or the subscription is not active. Wait for the reset, or change the plan.             |
| `publish_readiness.ready` is `false`    | Correct the podcast as each blocker says. Then run `doctor` again.                                                                  |
| `import` is `blocked`                   | Your plan does not include an import, or the subscription is not active.                                                            |
| `write_mode` is `disabled`              | Podigee does not allow writes for the account now. Read-only work still works.                                                      |
| An allowance has too little `remaining` | Make the batch smaller, wait for the reset, or change the plan.                                                                     |

A plan or subscription block is not a temporary error. The same request fails again until the reason changes. Do not retry it as a network error. To change the plan, ask the assistant for the plan page; `find_in_podigee` gives the link. Your plan also sets how many requests the connection can send in each minute. See [Limits, errors, and recovery](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.md).

## Next step

When `doctor` is `ok`, publish your episode. See [Encode and publish episodes](https://docs.podigee.com/documentation/start-here/ai-agents/media-and-publishing/encode-and-publish-episodes.md). For the scopes of each tool, see [Authorization and scopes](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/authorization-and-scopes.md).


---

# 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/work-safely/check-your-account-plan-and-readiness.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.
