MCP & agents / API GUIDE

SEO Agent Prompts and Templates for Content and Audits

Educational SEO agent prompts and templates for content plans, visibility reports, cannibalization checks, and portfolio audits using only current DataSEO MCP tools.

An agent panel connects through a protected orange bridge to account, page and search tools.

DataSEO's remote MCP currently exposes only a free account check, public HTML page analysis, and English Apple App Store keyword search. Other SEO analyses discussed here are education only and unavailable through DataSEO. Use prompts that report only returned fields, label missing data, and keep hypothetical arithmetic separate from measured results.

The prompt contract that keeps agents honest

Start every prompt with the same operating contract. Tell the agent to run the free account check first, to use only page analysis for a specific public URL and app search for a specific App Store keyword, and to stop when the tool reports insufficient credit or another relevant failure rather than purchasing credit automatically. For direct API runs only, the documented insufficient-credit signal is HTTP 402; do not imply that an MCP tool failure exposes that HTTP status. Require the agent to record the exact input it used, when it ran, and whatever fields the tool actually returned. Do not require an MCP run to report HTTP status, task status_code, or an API response path, because the MCP contract confirms tool names and inputs, not those API-level outputs. Keep those checks for direct API workflows, where the documented handling is to check the HTTP response before JSON business fields, then task status_code and items. Keep the API key out of prompts and URLs, and place it only in server or tool credential storage.

DataSEO API contract · DataSEO MCP tools · DataSEO agent integration instructions

Content plan builder template

A content plan built only from current DataSEO tools is a page inventory plus an app-keyword inventory, not a demand forecast. The ready-made prompt is: given only the fields actually present in the page results for these URLs and the app search results for these keywords, produce a table with one row per URL listing the observed fields by their returned names, then one row per keyword listing the returned app result information. Do not prespecify that a result contains a title, description, headings, or raw HTML, because the evidence confirms result paths for direct API page responses but does not establish a field list. For each row write one intended audience, one primary topic, and one next editorial action, and mark every cell that cannot be filled from the results as not in results. Ban words such as demand, volume, difficulty, and rank unless the agent names an external source, which in this workflow does not exist. The distinction matters because a page result describes what was observed for that HTML, while an app search result describes what the App Store returned for that keyword, and neither one measures web search demand.

DataSEO API contract · DataSEO MCP tools

Visibility report template

A visibility report from these tools is a reproducibility report, not a ranking report. Use this prompt: for each recorded run, list the URL or keyword, date and time, and a verbatim excerpt of the fields the tool returned. Then summarize change only between runs you actually executed and only on fields present in both results, and state that no web ranking was measured. If a run failed or returned no usable result, report that and exclude it from comparisons. A hypothetical worked example shows the arithmetic of coverage rather than performance. Suppose you plan 10 page analyses and 5 app searches. At $0.001 per successful page analysis, 10 successes cost $0.010, and at $0.01 per successful app search, 5 successes cost $0.050, for a planned successful-run total of $0.060. Failed requests are free, so if 2 page analyses fail and are not retried, the successful-run cost stays $0.008 for the remaining 8 page analyses plus $0.050 for app searches. That arithmetic is about spend control, not visibility, and the report must keep those ideas separate.

DataSEO prepaid pricing · DataSEO API contract

Cannibalization check template

Use cannibalization as a labelling exercise over evidence you already have, not as a detector that discovers intent. The prompt is: group the analysed pages only by exact overlapping text that appears in their returned fields, list the URLs in each group, and for each group propose one of three editorial options, consolidate, differentiate, or keep and link, with the reason tied to the overlapping text. Do not claim that two pages compete in search results, because no web ranking data was collected. For app keywords, compare only fields actually returned by the MCP tool across searches. Identify an app-identifier overlap only when the returned results explicitly include a comparable app identifier under the same returned field name, and then record the exact keyword and that identifier as returned. Do not require or assume app_id, a nested item, or any other API result structure in an MCP run, because that structure is confirmed only for the direct API response. If no comparable identifier is returned, state that no identifier overlap can be determined from the MCP results. Require the agent to output a not enough evidence column whenever a group has only one page or one keyword, and do not add list positions or ordering that the documented result structure does not confirm.

DataSEO API contract · DataSEO MCP tools

Portfolio audit template

A portfolio audit prompt should audit the set you can actually enumerate. Ask the agent to start from a user-supplied list of URLs and app keywords, analyse each URL once, search each keyword once, and then produce four counts: inputs supplied, runs that returned a usable result, runs that reported invalid input, and runs that reported failure or not connected. Those failure categories are documented for the direct API, so label them as API-level categories and, for MCP runs, simply report the failure information the tool actually provides, without implying MCP reports the same categories. Add a per-item table that shows which fields were returned, blank where absent, and a prioritised fix list limited to fields observed in the results. The audit must not claim crawl coverage of a whole site, because the tool analyses one public page per call and does not discover pages. For app searches through MCP, use the keyword input only; do not require limit or offset in an MCP template. If you want to show an API-level example using limit 1 to 50 or offset 0 to 100 and English language, label it explicitly as a direct API example, keep it distinct from the MCP template, and respect the four-second spacing. Cost control belongs in the audit header: planned successes multiplied by $0.001 for pages or $0.01 for app searches, actual successes only, and a stop rule when the tool reports insufficient credit for MCP runs, or HTTP 402 for direct API runs.

DataSEO API contract · DataSEO prepaid pricing · DataSEO MCP tools

Claude Code template structure

For Claude Code or any MCP client, keep the template as instructions plus a schema for the agent output, not as a promise of automation. A copy-ready client-side prompt you can paste into your own Claude Code workflow, filling only the bracketed parts, is: Objective: audit only the URLs and keywords listed below using the available DataSEO MCP tools. Allowed tools: the free account check, page analysis with url, and app search with keyword. Inputs: URLs are [list] and keywords are [list]. Rules: run the account check first, report only fields actually returned by their returned names, write not in results for anything absent, do not infer demand, volume, difficulty, rank, or rendered content, and stop if the tool reports insufficient credit or another relevant failure without purchasing anything. Output: one row per input with input, run status as reported by the tool, returned fields, and one next action limited to observed evidence. That prompt is design guidance for a client workflow, not a DataSEO-supplied file. The surrounding template has five parts: objective, allowed tools, input list, output columns, and stop conditions. Do not present direct API constraints such as English-only, 1 to 200 character keywords, or a 2 MB page scope as confirmed MCP requirements; if you include them, label them explicitly as direct-API constraints. This structure works over Streamable HTTP with Bearer authentication, and it keeps retries as a client decision that you document, rather than treating a retry or diff strategy as guaranteed API behaviour.

DataSEO MCP tools · DataSEO API contract · DataSEO agent integration instructions

Failure and measurement risks

The main measurement risks are scope creep and field confusion. Scope creep happens when a prompt asks for keyword research, site crawling, or competitor analysis that the two paid operations cannot supply, and the model fills the gap with plausible text. Field confusion happens when an agent assumes fields that were never returned, or when HTTP transport success is treated as proof of usable results in a direct API workflow. A third risk is sampling bias in app search: changing the keyword changes the returned result, so reports must carry the exact keyword with every claim. A fourth risk is rendered-content bias, because page analysis does not render JavaScript or load resources, so a field absent from the HTML may still appear to a user in a browser. Mitigate these risks by freezing inputs, recording parameters, quoting only returned fields, and writing not in results instead of inferring. Re-run a small control set before drawing any trend conclusion, and label any external data workflow as design guidance for a separate source.

DataSEO API contract · DataSEO MCP tools

Reader checklist

Before running a template, confirm the free account check works, confirm the key is stored in server or tool credentials and not in a prompt, and write down the exact URLs and keywords. During the run, for MCP use only the confirmed tool inputs, url for page analysis and keyword for app search. For direct API runs, apply the documented parameters separately and label them as API-level: public HTML up to 2 MB with no rendering expectations, and app keywords in English within 1 to 200 characters, with limit 1 to 50, offset 0 to 100, and four-second spacing. After each call, report only what the tool actually returned, mark missing fields as not in results, separate spend arithmetic from visibility language, and stop when the tool reports insufficient credit on MCP runs or on HTTP 402 on direct API runs, without auto-purchasing credit. If any required field is absent, narrow the conclusion instead of adding an external dataset by assumption. These checks turn a generic prompt into an auditable workflow that stays inside what DataSEO currently provides.

DataSEO API contract · DataSEO MCP tools · DataSEO prepaid pricing · DataSEO agent integration instructions

Limits and interpretation

  • This guide does not provide web search volume, keyword difficulty, Google ranking, crawl, backlink, or competitor datasets.
  • Page analysis observes public HTML only and does not render JavaScript or load external resources, so rendered-content conclusions require a separate method.
  • App search is Apple App Store search and is not a general web search or cross-store dataset.
  • Prompt templates cannot guarantee completeness or business outcomes; every numerical claim should trace to a recorded result or be labelled hypothetical.

Sources and verification

Reviewed against first-party documentation and the current DataSEO implementation. Worked scenarios are illustrative unless explicitly identified otherwise. Reviewed 14 November 2026.

  1. DataSEO prepaid pricing
  2. DataSEO API contract
  3. DataSEO MCP tools
  4. DataSEO agent integration instructions

Keep building