# Every surfacedd command, its options and the MCP tool behind it

> The surfacedd command reads brands, visibility, prompts, answers, competitors, sources, fan-outs, products, tasks, runs, Search Console, GA4, crawler visits, audit issues, agent readiness, Humans and cost estimates for free. Its four actions are audit run, agent-readiness check, export and report run, the only paid one. It also has mcp, doctor and version.

Source: https://surfacedd.com/docs/cli/commands · Updated 2026-11-19

Run `surfacedd help <command>` for the same options in your terminal. Every command also takes the global options: `--json`, `--human`, `--db <path>`, `--brand <id|name>`, `--range` and `--quiet` (see [getting started](/docs/cli/getting-started#pick-the-brand-period-and-workspace)). Examples come from Surfacedd's sample workspace, a fictional brand. 

## Read commands

Each read command calls the same code as an [MCP tool](/docs/mcp/tool-reference), so a script and an assistant see the same numbers. In JSON, `data` is that tool's result, unchanged. 

| Command and options | What you get |
|---|---|
| `brands` `--kind brand\|person` | Brands and people with their latest visibility. MCP tool: `list_brands` |
| `visibility` `--engine <id>` `--market <id>` `--category <id>` | Visibility, share of voice, rank among brands, top-3, recommended and cited rates with 95% ranges, by engine and category; `*` marks a significant change. MCP tool: `visibility_summary` |
| `prompts` `--status active\|paused\|archived` | Tracked prompts with visibility, average position, intent and ids. MCP tool: `list_prompts` |
| `answers search <query>` `--limit 1-100` | Full-text search over stored answers. MCP tool: `search_answers` |
| `answer <id>` | One answer in full: text, who was named (rank, recommended, sentiment), sources, fan-out searches. MCP tool: `get_answer` |
| `competitors` `--types direct,indirect,ai_platform,publisher,other` | Share of voice per competitor, change, and answers they won without you. MCP tool: `competitor_share` |
| `sources` `--kind domain\|page` | Cited domains or pages with citations, share and trend. MCP tool: `top_sources` |
| `fanouts` | Searches the engines ran while answering. MCP tool: `fanouts` |
| `products` `--category <name>` | Product-level visibility, yours and rivals'. MCP tool: `product_share` |
| `product <id>` | One product by engine, with the products named alongside it. MCP tool: `product_results` |
| `tasks` `--status todo\|in_progress\|done\|dismissed` | Recommended tasks with their evidence count. MCP tool: `list_tasks` |
| `runs` `--limit 1-100` | Recent runs (all brands unless `--brand`) with status and cost. MCP tool: `list_runs` |
| `gsc summary` `--compare previous\|year\|none` | Search Console totals, devices, Google update notes. MCP tool: `gsc_summary` |
| `gsc top` `--dim query\|page` `--sort clicks\|impressions\|change` `--limit 1-200` `--search <text>` | Top queries or pages over whole weeks. MCP tool: `gsc_top` |
| `gsc opportunities` `--kind almost_page_one\|low_ctr` `--limit 1-200` | Queries almost on page one, or seen but rarely clicked. MCP tool: `gsc_opportunities` |
| `gsc drop` `--compare previous\|year` | A click change split into causes that sum to the total. MCP tool: `gsc_drop_diagnosis` |
| `traffic` `--by channel\|source\|landing_page` `--compare` | GA4 sessions by channel, source or landing page. MCP tool: `ga4_traffic` |
| `traffic --ai` | Visits from AI assistants in GA4. MCP tool: `ai_traffic` |
| `crawlers` | AI crawler visits from imported server logs. MCP tool: `crawler_stats` |
| `audit issues` | Issues from the latest site audit. MCP tool: `site_audit_issues` |
| `agent-readiness` | The latest stored agent readiness check. MCP tool: `agent_readiness` |
| `humans <id or name>` | How AI answers describe a person. MCP tool: `humans_summary` |
| `report estimate <report>` | What a run would cost; never starts one. MCP tool: `estimate_run_cost` |

Google commands accept `7d`, `28d` (default), `30d`, `90d`, `180d`, `365d`, `16m` or `<from>..<to>` and need Google connected in the app. 

A Search Console drop, explained:

```console
$ surfacedd gsc drop
Tallyfox

Clicks fell by 771 (19760 → 18989) for 2026-10-19 – 2026-11-15 compared with 2026-09-21 – 2026-10-18. Largest factor: position changes (−1038). A Google update overlaps this period.

CAUSE                                           CLICKS
Queries that stopped getting clicks                  0
New queries                                          0
Fewer or more impressions                          +71
Position changes                                -1,038
Click-through rate at the same position           +251
Anonymized queries and rows past the API limit     -55
```

The latest agent readiness check, from the last site audit:

```console
$ surfacedd agent-readiness
Tallyfox

https://example-tallyfox.com/ · checked 2026-11-19 07:13 · 7 pages

Overall     80/100
Reach       95/100
Understand  60/100
Act         85/100

WEIGHT  AREA        RULE                       FINDING
     4  reach       reach.bot-wall             1 of 7 agents hit a bot wall: Perplexity-User.
     3  reach       reach.js-only-content      1 of 7 pages show their content only after JavaScript runs.
     3  understand  understand.product-schema  1 of 1 product pages have missing or incomplete Product mar…
```

## Actions

| Command | What happens |
|---|---|
| `audit run [<url>]` | **$0; needs an active licence.** A site audit plus an agent readiness check, stored for the brand like one started in the app. `--max-pages 1-500` (default: the last audit's, else 100), `--no-wait` |
| `agent-readiness check [<url>]` | **$0; needs nothing when given a URL.** Crawls now (50 pages by default, robots.txt respected), stores nothing. `--fail-under 0-100` exits 5 under the threshold. Without a URL it checks `--brand`'s website |
| `export <kind> --format json\|csv\|ndjson` | **$0; needs an activated computer.** Writes an export to `--out <file>`, or to stdout. Kinds: `responses`, `prompts`, `competitors`, `they_win`, `sources_pages`, `sources_domains`, `opportunities`, `fanouts`, `products`, `product_mentions`, `report` (JSON only, with `--report`) |
| `report run <report> --max-usd X` | **Paid, on your keys; needs an active licence.** Shows the estimate, refuses above `--max-usd` or a hard budget cap, then asks. In a script it needs `--yes`. `--max-usd` is also a hard limit on what the run spends. `--no-wait` returns once the run starts |

The CI check refuses private and local addresses, so point it at a public URL; the [CI recipe](/docs/cli/ci) has complete jobs. A check that fails its threshold still prints the full result, with `data.passed: false`. 

**If Surfacedd is open,** `report run` and `audit run` hand the job to the app and follow its progress, so there is only ever one writer. **If it's closed,** the command runs the job itself with the same code and holds the app's lock until it ends; opening the app meanwhile does nothing. Ctrl-C cancels a run started from the terminal, and answers already paid for are kept. 

A run in a script without `--yes` stops before spending:

```console
$ surfacedd report run "Weekly visibility" --max-usd 5
Run “Weekly visibility” for Tallyfox: about $4.18 (likely $3.46 to $4.50), at most $5.00.
surfacedd: This command spends money. Pass --yes to confirm (needed when not run in a terminal). Nothing was spent.
```

That exits with code 4.

**`--max-usd` is a hard limit on actual spend,** not only a check on the estimate. Before every paid call the run adds what it has spent, the calls in flight and the next call, each counted at its high estimate. If that would pass the limit, it starts nothing new: the answers so far are kept, the run ends partial, and the command exits 4. Calls already under way can finish a few cents over what was reserved for them. Set the limit at or above the high estimate (the "likely … to" figure) to let a run finish; below it, the command warns that the run may stop early. Monthly hard budget caps in Settings › Spend & budgets apply too. The sample workspace refuses every paid command. 

```console
$ surfacedd report run "Weekly visibility" --max-usd 4 --yes
Run “Weekly visibility” for Tallyfox: about $4.18 (likely $3.46 to $4.50), at most $4.50.
Surfacedd is open: asking the app to start it…
Asking engines: 420/432 answers · $2.67 so far
Run finished with some answers missing: 420/432 answers, $2.67 spent. Run id 01a1f315-509c-7206-b061-f0104f4376d8.
surfacedd: Stopped at --max-usd $4.50: 420 of 432 answers collected, $2.67 spent; 12 not asked. Nothing new was started after the limit; the answers so far are kept (run is partial).
```

That stop was simulated for the docs against the sample workspace's latest run, so the dollar figure is the sample's. In JSON, `data.limit` says whether the run stopped at `--max-usd` or a monthly cap and how many answers it skipped. 

## Other commands

| Command | What it does |
|---|---|
| `mcp [--db <path>]` | Runs the read-only MCP server on stdin and stdout: the same server and tools as `surfacedd-mcp`. Point any MCP client at `{"command": "surfacedd", "args": ["mcp"]}` |
| `doctor` | Checks the licence, database, saved key names, whether the app is running, PATH and MCP. Exits 1 if a check fails |
| `version` | The version, the JSON output schema and the database schema |
| `help [<command>]` | Usage, or one command's options |

```console
$ surfacedd version
surfacedd 0.1.0 (output surfacedd.cli/v1, database schema v9)
```

## Keys and secrets

Provider keys come from your system keychain, as in the app. The command never prints or logs them and refuses them as flags: passing a key as an option is a usage error (exit 2). 

Next: what the [JSON looks like](/docs/cli/json-output), and every [exit code](/docs/cli/exit-codes).
