Skip to main content
Glama

Start site audit

start_site_audit
Destructive

Start the site audit of one market: the observed state of the site a content map is built on. It crawls the site's pages and internal links (DataForSEO OnPage), reads the keywords the domain already ranks for in that market, picks up to three competitors there (the ones the profile names with their website first, then sites that rank for at least 3 of the searches in the topic bank, looked up when the bank holds at least 5 topics and the profile leaves a slot open, never a generic platform such as YouTube, Reddit or Wikipedia, then domains that share at least 5 of the site's rankings), reads the keywords they rank for and the site does not, and, when this audit's funding covers it, how AI answers mention the domain (Google AI Overviews in every market; ChatGPT answers exist for us-en only). market is a workspace market id from get_profile markets; left out, the main market. Pages and links are the site's, not a market's: when a finished audit of another market crawled the same site in the last 7 days, the new audit reads that crawl instead of crawling again and pays no crawl, and its audit view names it in crawlFrom. A workspace runs one audit at a time. While a run of the same market is in flight, any call, with or without confirm, returns that run as started: true, resumed: true and the audit, and spends nothing more, so repeating the call is safe. Otherwise, without confirm it is free and changes nothing: it returns started: false, a self-contained message naming the market, and preview with market (id, name, primary), the estimate for that market (estimated cost in USD; the crawl is left out when it is read from another audit), crawlFrom (auditId, market and crawledAt of the audit whose crawl is reused; null when this audit crawls), mentionPlatforms (chatgpt and google_aio, or google_aio alone outside us-en), funding (included: seodraft funds this audit; balance: it runs on the user's own DataForSEO balance, always the case when their account is connected), daily (on balance only: ceilingUsd, the rolling 24h ceiling, which is perMarketUsd times the workspace's markets; spentUsd in that window; auditsThatFit, how many audits at this estimate still fit, this one included; null when included), the caps (pages, rankingRows, competitors, gapRowsPerCompetitor, mentionRows, briefs, maxUsd), ai (false when the AI answers stage will be skipped) and the domain, so the human can see the cost before anything is spent, plus notices. With confirm: true it starts the run and returns started: true, resumed: false and the audit (auditId, market, crawlFrom, mentionPlatforms, status, stages, funding, estimatedCostUsd, costUsd, notices). notices is a list of { code, message } read from the profile as it is now, empty when there is nothing to fix: profile_competitors_without_domains means the profile names competitors without their websites, so no audit compares the site against them until each one is saved as its name with its domain, such as "Surfer (surferseo.com)"; its message is meant to be relayed to the human as is. The audit then advances in steps through site_audit_status. A refusal is started: false with refused and a self-contained message meant to be relayed to the human as is: unknown_market (market is not one of the workspace's markets; nothing is read or spent), audit_running (an audit of another market is in flight; this one can start once it ends), no_site_url (the profile has no site URL; save it with update_profile), market_requires_own_account (the included audit covers the main market only; an audit of another market runs on the user's own DataForSEO account, connected in Profile), allowance_spent (the included audit was already used; nextAllowanceAt, when present, is when the next one is available, and connecting their own DataForSEO account in Profile runs one now on their balance), domain_already_audited (another workspace already used the included audit for this domain; their own DataForSEO account is the way to run it), platform_disabled (seodraft funds no audit for this workspace right now; same way out), no_access (the account cannot run an audit), or spend_limit (the estimate is above the per-audit ceiling or a daily ceiling is reached; nothing is charged). An audit never blocks onboarding: refused or failed, the rest of the workflow runs as before.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_site_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
marketNoThe workspace market this call measures in, as an id from get_profile markets ("ar-es", "br-pt"). Left out, the main market. An id outside the workspace's markets is refused with reason unknown_market before anything is spent.
confirmNo
workspaceIdNoThe workspace this call acts on, as listed by list_workspaces. Left out, the call uses the workspace the account is in right now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / market
      Added value: +{
      +  "description": "The workspace market this call measures in, as an id from get_profile markets (\"ar-es\", \"br-pt\"). Left out, the main market. An id outside the workspace's markets is refused with reason unknown_market before anything is spent.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Enumerates behavior an agent cannot get from annotations: free preview vs. paid confirm, one audit per workspace at a time, crawl reuse from a same-site audit in the last 7 days (named in crawlFrom, no crawl charge), the funding/balance model, rolling 24h spend ceilings, and a full refusal taxonomy. This is far beyond the supplied hints. It stops short of explaining the destructiveHint=true annotation directly — the spend/irreversibility implication is only implied through the cost and allowance language — and the idempotentHint=false hint is qualified ("repeating the call is safe") without being reconciled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single ~600-word block for a three-parameter tool, with no paragraph breaks or headings to separate purpose, preview mode, confirm mode, and refusals. It repeats itself ("meant to be relayed to the human as is" appears twice, crawlFrom is defined twice) and buries the actionable preview/confirm distinction mid-paragraph. Nearly every fact is decision-relevant, but the packing makes it hard to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema, the description fully specifies the return shapes for all three outcomes (preview with estimate/crawlFrom/mentionPlatforms/funding/daily/caps/ai/domain, started with audit fields, refused with reason codes), plus notices codes and their human-facing intent. It also closes the loop on next steps via site_audit_status and states that a refusal never blocks onboarding.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

market and workspaceId are already documented in the schema at 67% coverage, and the description largely restates market's meaning (workspace market id from get_profile markets; main market when omitted) while adding the unknown_market refusal consequence. The genuine addition is confirm, undocumented in the schema, whose two modes the description explains at length. workspaceId gets no additional semantics beyond what the schema says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("Start the site audit of one market") and immediately scopes what the audit is ("the observed state of the site a content map is built on"), listing the concrete stages it performs: crawl, ranking keywords, competitors, gap keywords, AI mentions. It also differentiates from the sibling that continues the work by stating 'The audit then advances in steps through site_audit_status.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly splits the two invocation modes: without confirm it is free and only previews, with confirm: true it starts the run. It names alternatives for failure paths (save the site URL with update_profile; connect a DataForSEO account in Profile when market_requires_own_account, allowance_spent, domain_already_audited or platform_disabled), and says to poll site_audit_status for progress.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources