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).

StepToolWho
Find the workrecommend_next_actionsanyone who can read the workspace
Read a page and its next stepget_answer_page_draftanyone who can read the workspace
Write the candidate questions or the articledraft_answer_page (spends; dry run first)owners, admins
Pick the question the page answerschoose_answer_page_questionowners, admins, analysts
Edit the pageupdate_answer_page_draftowners, admins, analysts
Re-check the claims after an editrequest_answer_page_recheckowners, admins, analysts
Approve and publishpublish_answer_page (needs approval)owners, admins, analysts
Start overdelete_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
  1. Accept an action with update_action_item (status: "accepted"). AEOMCP's content pipeline then writes candidate questions for it.
  2. Choose a question. get_answer_page_draft lists the candidates as rows (question, keyword, monthly volume, page shape). Pass one candidate_id to choose_answer_page_question; the article is then written for it.
  3. Review. get_answer_page_draft returns the page as Markdown (preview), the claim check (qa) and the publishing check (gate). Show the person the preview before anything else.
  4. Edit with update_answer_page_draft: send base_version (the draft's version) and only the fields to change. Ask for include: "article" first to get the current text. Keep citation markers such as [acme_ridge] on factual claims. Every edit makes the claim check stale — call request_answer_page_recheck, then wait for the fresh qa before publishing.
  5. Publish with publish_answer_page and the version the person reviewed. This is the approve step, and it always needs approval: call request_approval with the same arguments, show the person the impact, then call again with the approval_token. The page must pass the publishing check (claims checked for this version, no unsupported claims, no page issues).
  6. 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_draft then shows published and page_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:

ReasonMeaning
draft_changedSomeone saved since your base_version: read again
stale_versionThe draft moved past the version you approved: read again
gate_failedThe page fails the publishing check: gate.reasons says why
invalid_transitionThe action is not at a step where that move is allowed
invalid_articleThe edit breaks the page format (the message names the field)
unknown_candidateThat candidate_id is not one of the page's candidates
no_draftNothing has been written for this action yet
offsite_actionWork on someone else's page (a forum, a listing): nothing to draft
forbidden_roleClient 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 accepted it writes the candidate questions (keyword research with real search volumes, then 5 to 8 questions);
  • at drafting it 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_codeMeaning
no_site_contextThe content team has not set up this answer site for server-side writing yet
no_agent_siteThe workspace has no answer site
refusedThe pipeline declined (no relevant keyword, no valid question, the brand page could not be read, …): error says why
draft_movedSomeone changed the page while it was being written: read it again
over_budgetThe job reached its spend cap before finishing
trial_not_supportedAnswer pages are written for paid workspaces
author_disabledServer-side writing is switched off in this deployment
no_browserThe writing service has no research browser configured: nothing was spent, ask support
publish_failed, internalTry 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.

← All docs