# Precise docs

Precise measures live campaigns daily, moves the next optimization through the way you already buy, and proves net gain against a BAU Control Line.

## Measure → Move → Prove

1. **Measure** spend, outcomes and disclosed fees by audience, publisher and Deal ID. Compare each deal with Open Exchange on the same publisher.
2. **Move** the next Decision through an authorized buying route. Review the forecast range, fees and spend limits before approval.
3. **Prove** the net gain against a **BAU Control Line** that continues buying under business-as-usual settings. Count a change only after the DSP or seller confirms it took effect and its measurement window closes.

## Three Activation Rails

| Activate via | Where the change takes effect |
|-|-|
| **DSP Direct** | Update bids or line-item settings in an authorized Beeswax, The Trade Desk, DV360 or Amazon DSP seat. |
| **Curated Deal ID** | Target one deal in the DSP. The supply partner updates eligible inventory behind it. In a DSP + Deal co-run, the DSP retains pacing and frequency controls. |
| **Direct Seller (AdCP)** | Your agency agent submits a buy to a seller under the approved plan, spend cap and approval rules. |

A **Partner Clean Room** connects campaign delivery to retailer or publisher outcomes under both owners' release rules. It supplies measurement data for these routes. The [buyer workflow](workspaces/buyers-and-agencies/README.md) shows the three routes on a sample campaign.

**Launch** is the day-1 way into the same Measure, Move, Prove loop. [Launch Audiences](workspaces/buyers-and-agencies/launch-audiences.md) ranks audiences for a new campaign from comparable past campaigns, or builds one with a data partner, and starts measuring against the BAU Control Line from the first impression.

## Choose your workspace

| You are | Start here | What is inside |
|-|-|-|
| An advertiser, an agency lead or a trader | [Advertisers and agencies](workspaces/buyers-and-agencies/README.md) | Decisions, Three Activation Rails, Launch Audiences, and net lift against the BAU Control Line |
| A data scientist or measurement lead | [Data and measurement](workspaces/data-and-measurement/README.md) | Pinned cloud data, attribution, holdout design and reproducible SQL |
| A supply partner or curator | [Supply partners](workspaces/supply-partners/README.md) | Deals that carry Precise's targeting, the scoring container on your host, and the readback |
| A platform engineer or agent builder | [Platform and agents](workspaces/platform-and-agents/README.md) | MCP, A2A, REST, events, and governed buying under AdCP 3.2 |
| In security, privacy or legal | [Security and legal](workspaces/security-and-infosec/README.md) | Data boundaries, Partner Clean Room approvals, offline proof verification and [red-team hardening ledger](workspaces/security-and-infosec/red-team-and-hardening.md) |

## Quickstart for engineers: three sandbox requests

**Sample Book · Synthetic Data.** The credentialed sandbox covers one quarter, 84 orders, 48 campaigns and $19,851,771.68 in media spend. Sign in at `https://sandbox.precise.ai` with your per-company workspace key (`penv_…`) to run the steps below from this page or from a terminal (`Authorization: Bearer $PRECISE_SANDBOX_KEY`).

### 1. Ask the sandbox what it is

The server card is public and names the server, the protocol revisions it speaks, and the bearer authentication scheme for your workspace key.

```sh try
curl -s https://sandbox.precise.ai/.well-known/mcp/server-card.json
```

### 2. Run a governed query

One read-only `SELECT` over the sample book. The answer carries the rows, a `run_id` and a `result_digest`. The DuckDB tab runs the same query on the same public Parquet files, so you can check the rows on your own machine.

```sql try
SELECT format,
       ROUND(SUM(media_spend_usd), 2) AS media_spend_usd,
       SUM(impressions) AS impressions
FROM gold_daily_cube
GROUP BY format
ORDER BY media_spend_usd DESC
```

Observed spend by format: online video $9,262,672.56 on 947,760,000 impressions, connected TV $6,045,887.44 on 335,736,000, audio $4,543,211.68 on 716,504,000.

### 3. Size an Audience Holdout

Use MCP to size an Audience Holdout for order `ORD-067`. With 48 units per arm, its sample cannot detect the target lift. The response gives the detectable lift and the required sample size.

```json try mcp
{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "size_holdout", "arguments": {"order_id": "ORD-067"}}}
```

Go further in the [playground](reference/playground.md): pick any tool or write any query, run it, and copy the code.

## How Precise works

A Decision links the proposed change to the platform's applied settings and the spend and outcomes on both lines. This is the evidence behind a net result in Scorekeeper.

```mermaid
flowchart LR
  forecast["Forecast and approved terms"]:::said --> trade["Test line: authorized activation"]
  trade -->|DSP or seller readback| delivered["Confirmed delivery"]
  delivered -->|settled costs and outcomes| result["Net lift vs. BAU"]
  control["BAU Control Line"]:::ghost -->|same measurement window| result
  result --> book["Scorekeeper"]
```

## Machine discovery

Agents and tools can read everything a person can.

| Document | Address | Served by |
|-|-|-|
| MCP endpoint (Streamable HTTP) | `POST https://sandbox.precise.ai/api/mcp` | The sandbox, live |
| MCP server card | `https://sandbox.precise.ai/.well-known/mcp/server-card.json` | The sandbox, live |
| AI catalog | `https://sandbox.precise.ai/.well-known/ai-catalog.json` | The sandbox, live |
| Protected-resource metadata and scopes | `https://sandbox.precise.ai/.well-known/oauth-protected-resource` | The sandbox, live |
| Method catalog and guide | `https://sandbox.precise.ai/api/catalog`, `https://sandbox.precise.ai/api/guide` | The sandbox, live |
| These docs for a language model | `llms.txt` and `llms-full.txt` at the root of this site | This docs site |
| Skill file for an agent | [SKILL.md](SKILL.md) | This docs site |
| Product API, OpenAPI 3.1 | [openapi.json](app/data/app-openapi.json), also at `openapi.json` on this site | This docs site, captured from a public-test deployment |
| `/openapi.json`, `/llms.txt`, `/llms-full.txt`, `/SKILL.md`, `/.well-known/agent-card.json` | On the Access deployment used by the client | Access, generated for its enabled profile |

For a new deployment, read its MCP server card, then list its tools and resources. The verified public-test server advertised the figure, decision, holdout dial and proof verifier cards. The public sandbox serves the ten-tool measurement interface. Tenant identity comes from the authenticated principal on Access.

The [standards map](reference/standards-map.md) lists each open standard Precise speaks and where. The [limits and errors](reference/limits-and-errors.md) page has the limits and the error codes. The [glossary](reference/glossary.md) defines each term in plain words.
