# MCP tools

> The tools, in loop order, and what each one is for.

The tools follow the loop: `explore → evidence → (catalog) → test_config → save_config → scan → results`.
Each tool's description teaches your assistant when to call it. This page is the same list for you.

## guide

The manual: config syntax, coverage statuses and when a result is final. Your assistant should call
it once before writing a config or judging an empty result.

## explore

Scan 1 to 3 supplied domains and get every technology found, with confidence, evidence and coverage.

## evidence

Drill into what a scan observed: check why something was or wasn't detected.

## lookup

Read what's already known about one domain, with observation dates, without starting a scan.

## changes

Technologies first observed between two stored observations of one domain, with the dates of both. It
reads stored observations and starts no scan: collect fresh ones with `explore` first. `max_age_days` sets the
read window (default 180, up to 365). Alpha: the output can change. See
[`GET /v1/domains/:domain/changes`](https://cookiecrowbar.com/docs/http-api#get-v1domainsdomainchanges) for the response.

## catalog

The vendors detected out of the box and the category vocabulary. If a vendor isn't in the catalog,
"not found" means nothing.

## test_config

Run a draft config over stored evidence: no browser, seconds, free.

## save_config

Save a tested config and get a `config_id`, or read one back. Configs are immutable: saving a
changed config gives a new id.

## scan

Run a saved config over a list of domains the user gave or approved. It returns a `batch_id` straight
away and scans in the background.

## results

Progress and per-domain rows of a batch, from `scan` or a still-running `explore`. Answer from the
first result.

## resolve

Read selected fields or rows from a reply stored by `response_mode`, below. It makes no API call. Pass the
`pointer`, a JSON Pointer `path`, and optionally `fields`, `offset` and `limit`. A pointer is private to the key
that made it and is short-lived: when it is gone you get `POINTER_UNAVAILABLE`, so reread deliberately or use the
saved batch or scan id instead of re-running a scan.

## feedback

Report a missed or wrong detection, a collection failure, a workflow problem or a feature request.
The assistant fills in the template, and you get a feedback id back.

## Large replies: `response_mode`

`explore`, `evidence`, `lookup`, `catalog`, `test_config` and `results` accept an optional `response_mode`.
Omit it, or send `inline`, and replies are unchanged. `auto` returns a compact pointer when a reply is large;
`pointer` always returns one. Read a pointer with `resolve`. A pointer's summary is partial: it is not evidence
that something is absent, that a result is complete or that a row is final. Errors are always returned inline.

## Paging `results`

Page with `after` set to the previous `next_after`. When walking a running scan batch, keep `order: "completed"`
on every page. Stop only when both `next_after` and `next` are absent, not when the batch `status` reads
`completed`: rows can still be held back, and `next` stays until they are delivered. An empty page can repeat the
cursor. Wait `next.poll_after_seconds`, then repeat with the same `batch_id`, `order`, `after`, `limit`, `view`
and `status`.

## Malformed requests

The hosted MCP endpoint answers a malformed request target with `400`.
