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.
On this page
Measure → Move → Prove
- Measure spend, outcomes and disclosed fees by audience, publisher and Deal ID. Compare each deal with Open Exchange on the same publisher.
- Move the next Decision through an authorized buying route. Review the forecast range, fees and spend limits before approval.
- 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 shows the three routes on a sample campaign.
Launch is the day-1 way into the same Measure, Move, Prove loop. Launch Audiences 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 | Decisions, Three Activation Rails, Launch Audiences, and net lift against the BAU Control Line |
| A data scientist or measurement lead | Data and measurement | Pinned cloud data, attribution, holdout design and reproducible SQL |
| A supply partner or curator | Supply partners | Deals that carry Precise's targeting, the scoring container on your host, and the readback |
| A platform engineer or agent builder | Platform and agents | MCP, A2A, REST, events, and governed buying under AdCP 3.2 |
| In security, privacy or legal | Security and legal | Data boundaries, Partner Clean Room approvals, offline proof verification and red-team hardening ledger |
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.
GET /.well-known/mcp/server-card.jsoncurl -sS --fail-with-body https://sandbox.precise.ai/.well-known/mcp/server-card.jsonimport json, sys, urllib.error, urllib.request
try:
with urllib.request.urlopen("https://sandbox.precise.ai/.well-known/mcp/server-card.json") as response:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(json.dumps(answer, indent=2))const response = await fetch("https://sandbox.precise.ai/.well-known/mcp/server-card.json");
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const answer = JSON.parse(text);
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer);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.
POST /api/sql/runSELECT 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 DESCcurl -sS --fail-with-body https://sandbox.precise.ai/api/sql/run \
-H 'content-type: application/json' \
-d '{
"sql": "SELECT format,\n ROUND(SUM(media_spend_usd), 2) AS media_spend_usd,\n SUM(impressions) AS impressions\nFROM gold_daily_cube\nGROUP BY format\nORDER BY media_spend_usd DESC"
}'import json, sys, urllib.error, urllib.request
SQL = """
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
"""
request = urllib.request.Request(
"https://sandbox.precise.ai/api/sql/run",
data=json.dumps({"sql": SQL}).encode(),
headers={"content-type": "application/json"},
method="POST",
)
try:
with urllib.request.urlopen(request) as response:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(answer["run_id"], answer["result_digest"])
for row in answer["rows"]:
print(row)const sql = `
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
`;
const response = await fetch("https://sandbox.precise.ai/api/sql/run", {
method: "POST",
headers: {"content-type":"application/json"},
body: JSON.stringify({ sql }),
});
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const answer = JSON.parse(text);
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer.run_id, answer.result_digest);
console.table(answer.rows);{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "query",
"arguments": {
"sql": "SELECT format,\n ROUND(SUM(media_spend_usd), 2) AS media_spend_usd,\n SUM(impressions) AS impressions\nFROM gold_daily_cube\nGROUP BY format\nORDER BY media_spend_usd DESC"
}
}
}curl -sS --fail-with-body https://sandbox.precise.ai/api/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "query",
"arguments": {
"sql": "SELECT format,\n ROUND(SUM(media_spend_usd), 2) AS media_spend_usd,\n SUM(impressions) AS impressions\nFROM gold_daily_cube\nGROUP BY format\nORDER BY media_spend_usd DESC"
}
}
}'-- Paste into the duckdb shell. It reads the same public Parquet files the sandbox reads.
CREATE OR REPLACE VIEW gold_daily_cube AS SELECT * FROM read_parquet('https://sandbox.precise.ai/data/parquet/gold_daily_cube.parquet');
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.
tools/call · size_holdout{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "size_holdout",
"arguments": {
"order_id": "ORD-067"
}
}
}curl -sS --fail-with-body https://sandbox.precise.ai/api/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "size_holdout",
"arguments": {
"order_id": "ORD-067"
}
}
}'import json, sys, urllib.error, urllib.request
BODY = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {"name": "size_holdout", "arguments": {"order_id": "ORD-067"}},
}
request = urllib.request.Request(
"https://sandbox.precise.ai/api/mcp",
data=json.dumps(BODY).encode(),
headers={
"content-type": "application/json",
"accept": "application/json, text/event-stream",
},
method="POST",
)
try:
with urllib.request.urlopen(request) as response:
if response.headers.get_content_type() == "text/event-stream":
events = response.read().decode().splitlines()
answer = json.loads(next(line[5:] for line in reversed(events) if line.startswith("data:")))
else:
answer = json.load(response)
except urllib.error.HTTPError as error:
print(f"HTTP {error.code}: {error.read().decode(errors='replace')}", file=sys.stderr)
sys.exit(1)
if isinstance(answer, dict) and (answer.get("error") or (isinstance(answer.get("result"), dict) and answer["result"].get("isError"))):
print(json.dumps(answer, indent=2), file=sys.stderr)
sys.exit(1)
print(json.dumps(answer, indent=2))const body = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "size_holdout",
"arguments": {
"order_id": "ORD-067"
}
}
};
const response = await fetch("https://sandbox.precise.ai/api/mcp", {
method: "POST",
headers: {"content-type":"application/json","accept":"application/json, text/event-stream"},
body: JSON.stringify(body),
});
const text = await response.text();
if (!response.ok) throw new Error(`HTTP ${response.status}: ${text}`);
const data = response.headers.get("content-type")?.includes("text/event-stream") ? text.split(/\r?\n/).filter(line => line.startsWith("data:")).at(-1)?.slice(5) : text;
const answer = JSON.parse(data ?? "");
if (answer?.error || answer?.result?.isError) throw new Error(text);
console.log(answer);Go further in the playground: 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.
Diagram source
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 | This docs site |
| Product API, OpenAPI 3.1 | 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 lists each open standard Precise speaks and where. The limits and errors page has the limits and the error codes. The glossary defines each term in plain words.