---
name: pombo
description: Use Pombo, the social media scheduler for Instagram, Facebook and YouTube, through its MCP server (preferred), the pombo CLI or its REST API. Use when the user asks to draft, queue, schedule or publish posts, search their posts, ideas, comments or DMs, upload media, find the best time to post, read insights, reply to comments or DMs with saved replies, turn ideas into posts, or approve posts in Pombo.
---

# Pombo

Pombo schedules and publishes posts to Instagram, Facebook and YouTube, collects their comments and DMs, and reports how they did. Three surfaces share one contract (same data, scopes, rate limit and error codes):

| Surface | When to use it | Where |
| --- | --- | --- |
| **MCP server** (preferred) | Any agent with MCP tools | `https://pombo-flame.vercel.app/api/mcp` |
| **CLI** (`pombo`) | A shell is available and MCP isn't connected | `npm install -g pombo-cli` (Node 22+), every command takes `--json` |
| **REST API** | Neither of the above, or a script | `https://pombo-flame.vercel.app/api/v1`, OpenAPI at `/api/v1/openapi.json` |

Use whichever is connected. If none is, help the user connect one (see [references/setup.md](references/setup.md)) before doing anything else.

## Before the first call

1. Check access: MCP `get_account {}`, or `pombo whoami --json`. It returns the workspace, plan, role and the key's scopes. The API and MCP need **Pro or Team**; on Free every call answers `plan_required`.
2. Get channel ids: `list_channels {}` / `pombo channels --json`. Every post targets channel ids, never handles. Don't post to channels whose `held` is true or whose `health` is `expired`, `revoked`, `disconnected` or `permission_missing` (tell the user to reconnect); `expiring` still posts.
3. If a call answers `insufficient_scope`, tell the user which scope is missing (the error names it). Don't retry.

## Safety rules (always)

- **Drafts first.** When the user hasn't said when, save a draft (`"action": "draft"`) and show it. Queue or schedule only when they asked for it.
- **Confirm before anything public or irreversible**, showing exactly what will happen and on which account:
  - `publish_post` / `pombo posts publish`: posts to the real account right now. Never call it unless the user explicitly asked to publish now and confirmed the post.
  - `reply_to_comment`, `reply_to_message`, `like_comment`, `react_to_message`: public or sent as the real account. Show the text and the comment first.
  - `approve_post` and `request_changes`: notify the author; approving can publish.
  - `delete_post`, `delete_media`, `delete_tag`, `delete_idea`, `delete_template`, `delete_saved_reply`, `replace_queue_slots`, `remove_queue_slot`: can't be undone.
- The CLI asks before these unless `--yes`. Pass `--yes` only after the user confirmed in the conversation.
- AI tools (`ai_generate`, `ai_rewrite`, `ai_ideas`, `ai_reply_suggestions`) spend one AI credit per call and save nothing; say so before calling them in a loop.
- Never print or store the user's API key (`pombo_…`). Prefer `pombo login` or MCP OAuth over pasting keys into chat.
- Times: send ISO 8601 with a time zone (`2026-11-10T09:00:00-03:00`). Each channel has a `timezone`; say times back to the user in it.

## Common jobs

Full step-by-step recipes with MCP, CLI and REST forms are in [references/recipes.md](references/recipes.md). The short versions:

**Schedule a post to the next free slot.** Upload media first (queued and scheduled posts need it), then create with `"action": "queue"`:

```text
upload_media {"url": "https://example.com/photo.jpg", "alt_text": "Latte art on a wooden table"}
create_post {"channel_ids": ["<channel id>"], "body": "Monday latte ☕", "media": [{"asset_id": "<media id>"}], "action": "queue"}
```

```sh
pombo posts create --channel <channel id> --text "Monday latte ☕" --media ./photo.jpg --alt "Latte art" --queue --json
```

**Find the best times, then schedule.** `get_insights {"range": "30d"}` returns `audience[].best_times.top`: up to 3 slots per channel with `weekday` (**0 = Monday** here) and `hour` in `best_times.timezone`. Pick the next such time, then `create_post` with `"action": "schedule"` and `scheduled_at`. Queue slots use a different weekday (0 = Sunday); don't mix them up.

**Reply to unanswered comments with saved replies.** `list_community_items {"status": "unanswered", "kind": "comment"}`, `list_saved_replies {}`, propose a reply per comment, get the user's OK, then `reply_to_comment {"id": "<item id>", "saved_reply_id": "<saved reply id>"}`. Check `can_reply` first.

**Weekly insights summary.** `get_insights {"range": "7d"}` (`summary` with the change against the previous week, and `channel_summaries` per channel) and `list_insight_posts {"range": "7d", "sort": "engagements", "dir": "desc", "page_size": 5}` for the top posts.

**Find something.** `search {"q": "autumn menu"}` searches posts, drafts, ideas, templates, comments and DMs at once (each type only if the key has its read scope); narrow it with `type`, `channel`, `from` and `to`. In a shell: `pombo search "autumn menu" --type post,draft --json`. Use it before asking the user for an id.

**Ideas into posts.** `list_ideas {"group": "todo"}`, `get_idea {"id": "<idea id>"}`, then `create_post` with the idea's `body` and its `media` as `asset_id`s, `"action": "draft"`. Move the idea with `update_idea {"id": "<idea id>", "group": "done"}` once the user is happy.

**Approvals (Team plan).** `list_approvals {"state": "pending"}`, show each caption, then on the user's word `approve_post {"id": "<post id>", "seen": "<updated_at>"}` or `request_changes {"id": "<post id>", "note": "…", "seen": "<updated_at>"}`.

## When something fails

Errors are `{ error: { code, message, field? } }` (MCP returns them as tool errors with the same code). Read the message and act on it; don't loop. The common ones:

- `rate_limited`: wait `Retry-After` seconds. All of the owner's keys share 300 requests per 15 minutes, 3,000 per day and 30,000 per 30 days.
- `validation_failed`: fix the input named in `field`.
- `conflict`: the post's state doesn't allow it (published already, waiting for approval), or a channel needs reconnecting.
- `channel_held`: the channel is on hold beyond the plan's limits; drafts still work.
- `upstream_failed`: the network refused a reply; nothing was recorded. Check before sending again.

Every code, scope and limit is in [references/reference.md](references/reference.md). Install or update this skill with `pombo skill install`.
