> 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-tools/distribution.md). Agents can also search and read this documentation through its [MCP server](https://docs.podigee.com/~gitbook/mcp).

# Distribution tools

Reference for the MCP tools that read listing status, submit shows, and check episode delivery.

These Model Context Protocol (MCP) tools show where a podcast is listed and what is still to do. They do these jobs:

* Read the status of the show on each directory and platform.
* Submit the show to the directories that Podigee can submit to.
* Explain the one-time setup for platforms that own their listing account.
* Check if one episode reached the platforms that Podigee delivers to episode by episode. Every MCP client gets the full JSON input and output schemas of each tool from `tools/list`.

In the Required column, a value such as "For the apply" is a rule of the call. The JSON schema can show the field as optional.

| Tool                               | What it does                                                                     | Scopes               | Read-only or write |
| ---------------------------------- | -------------------------------------------------------------------------------- | -------------------- | ------------------ |
| `get_distribution_status`          | Reads the status of a show on each directory and platform                        | `mcp:podcasts:read`  | Read-only          |
| `distribution_status_and_guidance` | Reads the status and adds the next step for platforms that need a one-time setup | `mcp:podcasts:read`  | Read-only          |
| `submit_to_platform`               | Previews, then submits a show to Spotify, Deezer, Apple Podcasts or Listen Notes | `mcp:podcasts:write` | Write              |
| `explain_distribution_handoff`     | Explains the one-time setup on a platform that owns its listing account          | `mcp:podcasts:read`  | Read-only          |
| `get_episode_distribution`         | Reads if one episode reached the platforms that Podigee delivers to              | `mcp:podcasts:read`  | Read-only          |

Rules for all tools on this page:

* A one-time setup on a platform that owns its listing account is onboarding, not a permanent limit. After the show is listed, publishing through Podigee reaches the platform with no further manual step. Do not tell the person that publishing to the platform cannot be automated.
* The contract line of each tool gives the annotations. "Open world" means that the tool can reach a system outside Podigee. The scope rules are in [Authorization and scopes](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/authorization-and-scopes.md).

For the complete job, read [Distribute a podcast](https://docs.podigee.com/documentation/start-here/ai-agents/content-analytics-and-distribution/distribute-a-podcast.md).

## `get_distribution_status`

Reads where a show stands on each directory and platform. The answer has a normalized status for each platform, the public listing URL where one exists, and the RSS feed URL. It also has a summary that groups the platforms by status. Use it to answer "is my show live on this platform" and "what is still to submit".

A new show starts with a row for the audio directories (Apple Podcasts, Spotify, Deezer and others). Thus `not_submitted` is the normal start and not a fault. YouTube and video delivery have no row until they are set up. Do not tell the person that YouTube is "not submitted" because `connections` has no YouTube row. Read `setup.destinations` for YouTube, Spotify and Apple Podcasts, also before the first episode is live. A `connected` card says that the setup is done. It does not say that an episode arrived: use `get_episode_distribution` for one episode.

**Contract:** scope `mcp:podcasts:read`. Read-only: yes. Destructive: no. Idempotent: yes. Open world: no.

| Parameter    | Type    | Required | Default | Limits | Meaning                       |
| ------------ | ------- | -------- | ------- | ------ | ----------------------------- |
| `podcast_id` | integer | Yes      | None    | None   | Show id, from `list_podcasts` |

| Output field                               | Meaning                                                                                                                                                                                                                                                |
| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `feed_url`                                 | The RSS feed URL of the show                                                                                                                                                                                                                           |
| `connections[].platform_key`               | The stable platform key. Send it to `explain_distribution_handoff` when `manual_submission_required` is true, or to `submit_to_platform`                                                                                                               |
| `connections[].status`                     | `not_submitted`, `submitted`, `in_review`, `live`, `rejected` or `deactivated`                                                                                                                                                                         |
| `connections[].external_url`               | The public listing URL. Present only when the show can be found there                                                                                                                                                                                  |
| `connections[].status_reason`              | Why the platform rejected or deactivated the show. When the platform gave no reason, the text says so: this is the complete answer                                                                                                                     |
| `connections[].manual_submission_required` | True when the platform owns the account, so a person claims the show there once                                                                                                                                                                        |
| `connections[].active`                     | A web player and posting switch. It is not a submission signal: read `status`                                                                                                                                                                          |
| `connections[].note`                       | What this status does not tell you. For example, for a show that delivers video to Spotify, the Spotify status is for the show, not for one episode                                                                                                    |
| `summary`                                  | The platform keys grouped as `live`, `in_review`, `submitted`, `rejected` and `not_submitted`. `not_submitted` also names the platforms that Podigee can submit to and that have no row                                                                |
| `setup.phase`                              | `preparing`: no episode is live, so the person can save the setup and nothing is sent. `available`: an episode is live, so the person can send. `read_only`: this person may not change where the show is published                                    |
| `setup.page_url`                           | The Channels page of the show. Give it to the person                                                                                                                                                                                                   |
| `setup.destinations[]`                     | One card each for `youtube`, `spotify` and `apple` (Apple Podcasts), with `state`, `now` (what the person can do on the Channels page now) and `after_publish` (what follows the first publish). The card key is not a `platform_key` of `connections` |

Card states (`setup.destinations[].state`):

* `needs_connection`: nothing is set up.
* `channel_needed` (YouTube): signed in with Google, no channel selected yet.
* `ready`: the choice is saved and nothing was sent.
* `connected`: set up. This does not say that an episode arrived.
* `in_progress`: the setup runs. `failed`: the setup failed.
* `plan_required`: the plan of the owner does not include the send. The plan is checked when the show is sent, not before.
* `needs_video` (YouTube): the show has no video recording.
* `private_show`: the feed is private.
* `unavailable`, `coming_later`: not offered for this account or show.
* Apple Podcasts also has `token_saved`, `submitted`, `pending`, `needs_attention`, `rejected` and `archived`.
* Other values can appear. `now` explains each one.

```json
{
  "podcast_id": 42
}
```

This tool adds no errors of its own. For the common errors, see [Limits, errors, and recovery](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.md).

## `distribution_status_and_guidance`

Reads the same status as `get_distribution_status` in `status`, and adds `guidance`. For each platform that Podigee cannot submit to for the person, `guidance` gives the reason. It also gives the exact next step that the person takes there. `status.setup` has YouTube, Spotify and Apple Podcasts as the Channels page shows them, also before the first episode is live.

To focus on one platform, send its key in the argument `platform`. The tool text in the product says "platform\_key", but the argument is named `platform`. A call with `platform_key` is refused with `invalid_params`.

**Contract:** scope `mcp:podcasts:read`. Read-only: yes. Destructive: no. Idempotent: yes. Open world: no.

| Parameter    | Type    | Required | Default               | Limits                                                      | Meaning                                   |
| ------------ | ------- | -------- | --------------------- | ----------------------------------------------------------- | ----------------------------------------- |
| `podcast_id` | integer | Yes      | None                  | None                                                        | Show id, from `list_podcasts`             |
| `platform`   | string  | No       | all handoff platforms | a handoff platform key (see `explain_distribution_handoff`) | Gives the guidance for this platform only |

| Output field | Meaning                                                                                                                                                                        |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `status`     | The full answer of `get_distribution_status`, `setup` included                                                                                                                 |
| `guidance[]` | Without `platform`: one entry for each platform that needs a one-time setup, with its `platform_key`. With `platform`: one entry, the answer of `explain_distribution_handoff` |

```json
{
  "podcast_id": 42,
  "platform": "tunein"
}
```

A `platform` that is not a handoff platform, for example `spotify`, gives one `guidance` entry with `status: "unknown_platform"`. This is not an error. For Spotify, Deezer, Apple Podcasts and Listen Notes, use `submit_to_platform`. This tool adds no errors of its own. For the common errors, see [Limits, errors, and recovery](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.md).

## `submit_to_platform`

Previews, then submits a show to a directory that Podigee can submit to for the person: `spotify`, `deezer`, `apple_podcasts` or `listen_notes`. Use it when `get_distribution_status` shows the platform as `not_submitted` with `manual_submission_required: false`. For a platform that owns its listing account, use `explain_distribution_handoff`.

The call is a change outside Podigee, so it uses a preview and a confirm:

1. Send `dry_run: true`. The preview runs the same checks as the submit and returns a `confirm` value. It changes nothing.
2. Show the preview to the person and wait for their yes in a later message.
3. Send the same `podcast_id` and `platform_key` with `confirm` and an `idempotency_key`.

The confirm, idempotency and expiry rules are in [Preview and confirm changes](https://docs.podigee.com/documentation/start-here/ai-agents/work-safely/preview-and-confirm-changes.md). When the show is already submitted, the apply sends nothing and returns the status with `submitted_now: false`.

**Contract:** scope `mcp:podcasts:write`. Read-only: no. Destructive: yes. Idempotent: yes. Open world: yes.

| Parameter         | Type    | Required      | Default | Limits                                                | Meaning                                                                         |
| ----------------- | ------- | ------------- | ------- | ----------------------------------------------------- | ------------------------------------------------------------------------------- |
| `podcast_id`      | integer | Yes           | None    | None                                                  | Show id, from `list_podcasts`                                                   |
| `platform_key`    | string  | Yes           | None    | `spotify`, `deezer`, `apple_podcasts`, `listen_notes` | The directory                                                                   |
| `dry_run`         | boolean | No            | `false` | None                                                  | `true` previews the submission and changes nothing                              |
| `idempotency_key` | string  | For the apply | None    | 1 to 255 characters                                   | Any unique text for this submission. Reuse it only to retry the same submission |
| `confirm`         | string  | For the apply | None    | at least 1 character                                  | The `confirm` value from the preview. Send it only after the person said yes    |

| Output field                              | Meaning                                                                                   |
| ----------------------------------------- | ----------------------------------------------------------------------------------------- |
| `current_status`, `confirm`, `next_step`  | Preview: the status now, the confirm value, and what to do before you confirm             |
| `status`, `external_url`, `status_reason` | Apply: the status after the submission, as in `get_distribution_status`                   |
| `submitted_now`                           | Apply: true when this call sent the submission, false when the show was already submitted |

```json
{
  "podcast_id": 42,
  "platform_key": "apple_podcasts",
  "dry_run": true
}
```

Errors that this tool adds (the preview checks the same conditions):

* `forbidden`: the person may not edit the show or manage its distribution.
* `plan_limit_reached` with `entitlement: "exports"`: the plan does not include directory submissions. An upgrade of the plan enables them.
* `validation_error`: the feed of the show is private. These directories list only public feeds.
* `validation_error`: the show is not ready. The message names what is missing: a published episode, cover artwork, a description, or for Apple Podcasts a square cover between 1400 and 3000 pixels.
* `validation_error`: a Spotify audio submission while the show sends video to Spotify. Spotify would then create a second show.
* `validation_error`: the directory refused the submission. The message gives its reason.
* `confirmation_required` without `confirm`, and `invalid_params` without `idempotency_key`.

Do not retry these errors unchanged. For the common errors, see [Limits, errors, and recovery](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.md).

## `explain_distribution_handoff`

For a platform that owns its listing account, explains the one-time claim that the person makes there, and gives the exact next step. Say clearly that this is setup only: after the show is listed, publishing through Podigee reaches the platform with no further manual work.

Accepted `platform` keys: `amazon`, `tunein`, `podimo`, `iheart`, `pandora`, `overcast`, `podcast_addict` and `pocket_casts`. `amazon` is for Amazon Music and Audible. For it, the person accepts the license agreement in the Distribution settings of the show in Podigee. Upper case and spaces are accepted (`Pocket Casts` becomes `pocket_casts`). Another value, `spotify` included, returns `status: "unknown_platform"`. This is not an error. Spotify, Deezer, Apple Podcasts and Listen Notes use `submit_to_platform`.

**Contract:** scope `mcp:podcasts:read`. Read-only: yes. Destructive: no. Idempotent: yes. Open world: no.

| Parameter    | Type    | Required | Default | Limits                | Meaning                       |
| ------------ | ------- | -------- | ------- | --------------------- | ----------------------------- |
| `podcast_id` | integer | Yes      | None    | None                  | Show id, from `list_podcasts` |
| `platform`   | string  | Yes      | None    | one of the keys above | The platform                  |

| Output field             | Meaning                                                                                                  |
| ------------------------ | -------------------------------------------------------------------------------------------------------- |
| `platform`               | The name of the platform                                                                                 |
| `status`                 | `manual_handoff_required`, or `unknown_platform` for a key that is not in the list                       |
| `setup_scope`            | `one_time`: the handoff is onboarding, not a permanent limit                                             |
| `reason`                 | Why the person makes this step                                                                           |
| `after_setup`            | What happens after the setup. Give it to the person with the reason                                      |
| `external_next_step_url` | Where the person makes the claim, when the platform has a page for it                                    |
| `web_player_caveat`      | A platform URL saved in Podigee controls only the web player and blog links. It does not submit the show |
| `feed_url`               | The RSS feed URL to give to the platform                                                                 |
| `message`                | For `unknown_platform`: the platform is not in the list of handoff platforms                             |

```json
{
  "podcast_id": 42,
  "platform": "tunein"
}
```

This tool adds no errors of its own. For the common errors, see [Limits, errors, and recovery](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.md).

## `get_episode_distribution`

Reads if one episode reached the platforms that Podigee delivers to episode by episode, for example Spotify Video. When it did not, the answer has the failure reason and time. Use it to answer "why is episode 12 not on Spotify" after `get_distribution_status` shows that the show is set up.

Read `summary.episode_published` first:

* For a live episode, an empty `deliveries` list is normal. The episode reaches the directories through the RSS feed, not one by one. `summary.feed_only` is then true.
* For an episode that is not live, an empty list only means that nothing was sent yet. No directory picks up the episode. `summary.note` explains this: give the note to the person.

**Contract:** scope `mcp:podcasts:read`. Read-only: yes. Destructive: no. Idempotent: yes. Open world: no.

| Parameter    | Type    | Required | Default | Limits | Meaning                          |
| ------------ | ------- | -------- | ------- | ------ | -------------------------------- |
| `episode_id` | integer | Yes      | None    | None   | Episode id, from `list_episodes` |

| Output field                                                            | Meaning                                                                                                                                                                                    |
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `deliveries[].platform`, `deliveries[].state`, `deliveries[].delivered` | Where the episode went and if it arrived                                                                                                                                                   |
| `deliveries[].remote_url`                                               | The address of the episode on the platform, when there is one                                                                                                                              |
| `deliveries[].reason_code`                                              | A stable code for why a delivery failed, for example `spotify.video.codec_unsupported`. Absent when Podigee could not classify the failure: `last_error` then has the text of the platform |
| `deliveries[].last_error`, `deliveries[].last_error_at`                 | The last failure and its time                                                                                                                                                              |
| `deliveries[].retry_note`                                               | If Podigee retries this state itself. If it does, wait and do not publish the episode again. If it does not, the note says how a retry starts                                              |
| `summary.delivered`, `summary.pending`, `summary.failed`                | The platforms grouped by result                                                                                                                                                            |
| `summary.feed_only`                                                     | True when the episode reaches the directories only through the RSS feed. It describes a live episode                                                                                       |
| `summary.episode_published`                                             | If the episode is live now                                                                                                                                                                 |
| `summary.directories`                                                   | Where to find the directories that take the episode from the feed                                                                                                                          |
| `summary.note`                                                          | Present when the episode is not live. Give it to the person                                                                                                                                |

```json
{
  "episode_id": 314
}
```

This tool adds no errors of its own. For the common errors, see [Limits, errors, and recovery](https://docs.podigee.com/documentation/start-here/ai-agents/mcp-reference/limits-errors-and-recovery.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/mcp-tools/distribution.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.
