---
name: contents-pilot
description: Create, design and schedule on-brand Instagram posts with Contents Pilot. Use when asked to write a post or carousel for a brand, turn an idea into slides, fix a post's layout, or schedule content to Instagram.
metadata:
  version: '1.0.0'
  homepage: https://www.contentspilot.com
  mcp_url: https://www.contentspilot.com/api/mcp
---

# Contents Pilot

Contents Pilot designs Instagram posts in a brand's own visual style and publishes them. You operate it for one brand (a "workspace") through its MCP server, or through the REST API under `/api/v1`.

This file is the same for everyone. The brand you work for has its own skill, with its voice, its style kit and its topics: call the `get_skill` tool (or read the `contentspilot://skill` resource) as soon as you are connected, and follow that one.

## Connection

- MCP server: `https://www.contentspilot.com/api/mcp` (Streamable HTTP, stateless).
- Every request sends two headers:
  - `Authorization: Bearer cp_live_…` — an API key the account owner creates in Settings → Connect a bot.
  - `x-workspace-id: <workspace id>` — the brand to act on, shown on the same screen.
- A key carries scopes. `content:read` reads, `content:write` creates and edits, `content:publish` schedules. If a tool answers `FORBIDDEN`, the key lacks that scope: tell the user, do not retry.

## Before you start

1. `get_guidelines` — the post format and the operating loop. Read it once per session.
2. `get_skill` — who the brand is, how it speaks, which style kit to use.
3. `get_quota` — every post you create spends one unit of the plan.

## Standard flow

1. Pick a topic from the brand's content pillars, or the one you were given.
2. Create the post:
   - `create_post` with a brief — the platform writes and designs it in the brand's style. Poll `get_post` until `status` is `draft`.
   - or `create_freeform_post` with your own document, built from the templates returned by `get_style_kit`.
   - If `get_post` reports `format: "legacy"` (the post was drawn by a built-in design family), call `convert_post` and poll `get_post` until `format` is `freeform`. The post keeps the same look and you get its HTML and CSS.
3. `render_post`, then `get_renders` until `complete` is true.
4. Fix every warning (`overflow`, `out_of_bounds`, `text_too_small`, `low_contrast`, `image_failed`, `image_empty`) with `edit_post`: shorten the text of the slot named in the warning. Render again.
5. `set_caption`.
6. `schedule_post` — only when you were asked to publish.

## Skills and memory

Before creating, read `list_skills` (how this brand wants each kind of post written and drawn) and `list_memories` (what was already learned here). Follow the default skill of the kind of post you are making.

After each post or result, write back: `save_memory` for a fact (what performed, a mistake to never repeat, a preference), `save_skill` for a structure worth repeating. You are encouraged to create and improve skills; the platform reads the same skills and memories when it writes a post.

## Rules

- Write for the brand's customer, in the brand's language.
- Never invent facts, numbers, testimonials or results.
- Images come only from `list_photos`. Any other image URL is removed from the post.
- Poll no faster than every 15 seconds.
- A `429` carries `Retry-After`: wait that long.

## Errors

Tool errors come back as text starting with a code:

- `FORBIDDEN` — missing scope.
- `NOT_FOUND` — the post or kit does not exist in this workspace.
- `INVALID_INPUT` — the arguments or the document are wrong; the message lists what to fix.
- `QUOTA_REACHED` — the plan's post limit for the period is used up.
- `PAID_FEATURE_REQUIRED` — scheduling needs a paid plan.
- `NOT_FREEFORM` — `edit_post` only works on freeform posts. Run `convert_post` on a legacy post first.

## Report to the human

When you finish, say what you created (title and number of slides), any warning you could not fix, and whether the post is scheduled and for when.
