MCP server
Answer pages
Review, edit and publish the answer pages AEOMCP writes for a brand's answer
site — the same workflow as the studio's Actions page — from ChatGPT or
Claude. These tools are in beta: they are available when answer-page tools
are enabled for your account (describe_capabilities says deployment
otherwise).
| Step | Tool | Who |
|---|---|---|
| Find the work | recommend_next_actions | anyone who can read the workspace |
| Read a page and its next step | get_answer_page_draft | anyone who can read the workspace |
| Write the candidate questions or the article | draft_answer_page (spends; dry run first) | owners, admins |
| Pick the question the page answers | choose_answer_page_question | owners, admins, analysts |
| Edit the page | update_answer_page_draft | owners, admins, analysts |
| Re-check the claims after an edit | request_answer_page_recheck | owners, admins, analysts |
| Approve and publish | publish_answer_page (needs approval) | owners, admins, analysts |
| Start over | delete_answer_page_draft (needs approval) | owners, admins, analysts |
Client roles (client admin, client viewer) can read every page but change none, as in the studio.
How a page moves
open → accepted → questions_ready → drafting → in_review → approved → published
- Accept an action with
update_action_item(status: "accepted"). AEOMCP's content pipeline then writes candidate questions for it. - Choose a question.
get_answer_page_draftlists the candidates as rows (question, keyword, monthly volume, page shape). Pass onecandidate_idtochoose_answer_page_question; the article is then written for it. - Review.
get_answer_page_draftreturns the page as Markdown (preview), the claim check (qa) and the publishing check (gate). Show the person the preview before anything else. - Edit with
update_answer_page_draft: sendbase_version(the draft'sversion) and only the fields to change. Ask forinclude: "article"first to get the current text. Keep citation markers such as[acme_ridge]on factual claims. Every edit makes the claim check stale — callrequest_answer_page_recheck, then wait for the freshqabefore publishing. - Publish with
publish_answer_pageand theversionthe person reviewed. This is the approve step, and it always needs approval: callrequest_approvalwith the same arguments, show the person the impact, then call again with theapproval_token. The page must pass the publishing check (claims checked for this version, no unsupported claims, no page issues). - Live. The page goes live on the brand's answer site when the
publisher next runs — automatically for an Actions-page gap card
(
publish_route: "scheduled_publisher"), by the content team's publish run for a report action ("operator_publish").get_answer_page_draftthen showspublishedandpage_url, and AEOMCP keeps re-measuring the page's questions on the workspace schedule.
step and next_step on get_answer_page_draft always say which of these
comes next and with which arguments.
Gap cards
The Actions page's gap cards are pages AEOMCP has already written for a
question your brand is missing from. They start in review with the
question chosen: read one with get_answer_page_draft, edit it if needed,
and publish it with publish_answer_page (the studio's Apply). Dismiss a
gap card with update_action_item (status: "dismissed"); gap cards are
never started over.
Refusals
Writes report a row with status: "rejected" and a reason:
| Reason | Meaning |
|---|---|
draft_changed | Someone saved since your base_version: read again |
stale_version | The draft moved past the version you approved: read again |
gate_failed | The page fails the publishing check: gate.reasons says why |
invalid_transition | The action is not at a step where that move is allowed |
invalid_article | The edit breaks the page format (the message names the field) |
unknown_candidate | That candidate_id is not one of the page's candidates |
no_draft | Nothing has been written for this action yet |
offsite_action | Work on someone else's page (a forum, a listing): nothing to draft |
forbidden_role | Client roles read only |
Writing the page from ChatGPT or Claude
When AEOMCP writes pages in your deployment, draft_answer_page runs the
content pipeline for you:
- at
acceptedit writes the candidate questions (keyword research with real search volumes, then 5 to 8 questions); - at
draftingit writes the article for the chosen question (research on the brand's and competitors' official pages, plan, write, claim check).
It spends money, so the first call is a dry run that returns the most it
can cost; call again with dry_run: false once the person agrees. Only
owners and admins can run it. The work runs in the background (usually a
few minutes): get_answer_page_draft shows the job as author_job
(queued, running, succeeded or failed with an error_code) and its
step moves on when the work lands. request_answer_page_recheck queues the
claim check the same way. Nothing here approves or publishes: that is
always publish_answer_page, behind approval.
Each organization may queue up to 20 writing jobs (drafts and re-checks
together) in any 24 hours across its workspaces; past that the row is
rejected daily_cap_reached. Each job also stops at its own spend cap
(over_budget), which counts the model, DataForSEO and the browser.
error_code | Meaning |
|---|---|
no_site_context | The content team has not set up this answer site for server-side writing yet |
no_agent_site | The workspace has no answer site |
refused | The pipeline declined (no relevant keyword, no valid question, the brand page could not be read, …): error says why |
draft_moved | Someone changed the page while it was being written: read it again |
over_budget | The job reached its spend cap before finishing |
trial_not_supported | Answer pages are written for paid workspaces |
author_disabled | Server-side writing is switched off in this deployment |
no_browser | The writing service has no research browser configured: nothing was spent, ask support |
publish_failed, internal | Try again; quote the job id to support if it repeats |
Without server-side writing, check back with get_answer_page_draft — its
step reads awaiting_questions, awaiting_draft or recheck_pending
while the content team's pipeline works.
Operator notes (server-side writing)
The onboarding-worker's draft-content consumer runs the SAME author code as
aeomcp site answer (brand-site actions/answer-runs.ts) and writes through
the same draft functions. It needs, per brand, the site's committed
sites/<brand>/site.json in the deployed build and the site's author
context pushed by the operator:
aeomcp site push-context <brand> --env staging|prod
(the approved questions, voice, keyword pool, source ledger, corpus and
design system → gs://aeomcp-<env>-brand-assets/answer-author/<brand>/context.json.gz).
Re-push after an approve, a publish (new slugs) or a re-crawl. Per-action
artifacts stay per run; the worker re-crawls the brand when the pushed
corpus is older than 30 days. site gaps and publishing stay CLI-only.
Switching it on (root Terraform answer_author_enabled = "true" plus the two
answer_author_llm_usd_per_mtok_* rates) needs migration 0166,
scripts/sql/mcp-answer-pages-grants.sql re-run, and a
brightdata-browser-ws secret version (the flag mounts it on the
onboarding-worker; a revision whose secret has no version will not start).
With no Scraping Browser endpoint at all the worker falls back to local
Chromium, which some brand sites refuse.