> Documentation index for LLMs: https://bravabase.ai/llms.txt
> MCP Server Overview (Markdown): https://bravabase.ai/docs/mcp/overview.md
> Official Agent Skill (Markdown): https://bravabase.ai/docs/mcp/skill.md

# bravabase MCP Tools Reference

Complete reference for all **12 approval-safe tools** exposed by `https://app.bravabase.ai/mcp`.

## How responses & errors arrive

- **Bounded payloads:** Every tool output is capped at `48 KB` JSON (`limit` defaults to `20`, max `50`). If an individual payload nears the ceiling, bravabase returns a compact/truncated notice prompting tighter filters.
- **Auth challenges:** Unauthenticated `POST /mcp` returns `401 Unauthorized` with `WWW-Authenticate: Bearer resource_metadata="https://app.bravabase.ai/.well-known/oauth-protected-resource", scope="..."`. Query-string tokens are rejected.
- **Live authorization:** Every tool call re-checks the bearer scope, live workspace role (`owner`, `admin`, `editor` vs read-only), and live plan/billing status.

## Tool annotations

All 12 tools ship explicit MCP annotations so hosts can safely auto-approve read-only operations and prompt clearly on writes:

| Annotation | Meaning in bravabase |
| --- | --- |
| `readOnlyHint: true` | Safe retrieval (`list_campaigns`, `list_leads`, `get_lead`, `list_signals`, `list_drafts`, `list_replies`, `get_conversation`). Zero state mutations, zero credit spend. |
| `destructiveHint: false` | True for **all 12 tools** — bravabase exposes zero delete, send, or send-approval tools over MCP. |
| `idempotentHint: true` | Safe to retry with the same inputs (`list_*`, `get_*`, `enrich_lead`, `update_draft`, `update_lead_status`). |
| `openWorldHint: true` | Only `enrich_lead` queries external contact enrichment providers (and only when `quoteOnly` is not `true`). |

## Every tool at a glance

| Tool | Required Scope | Kind | Annotations |
| --- | --- | --- | --- |
| `list_campaigns` | `leads:read` | Read | `readOnly`, `idempotent` |
| `list_leads` | `leads:read` | Read | `readOnly`, `idempotent` |
| `get_lead` | `leads:read` | Read | `readOnly`, `idempotent` |
| `list_signals` | `leads:read` | Read | `readOnly`, `idempotent` |
| `enrich_lead` | `enrichment:write` | Credits when found | `idempotent`, `openWorld` |
| `list_drafts` | `drafts:read` | Read | `readOnly`, `idempotent` |
| `prepare_draft` | `drafts:write` | Draft write (unapproved) | `destructive: false` |
| `update_draft` | `drafts:write` | Draft write (resets approval) | `idempotent`, `destructive: false` |
| `update_lead_status` | `leads:write` | Status write | `idempotent`, `destructive: false` |
| `list_replies` | `inbox:read` | Read (Hybrid E2EE) | `readOnly`, `idempotent` |
| `get_conversation` | `inbox:read` | Read (Hybrid E2EE) | `readOnly`, `idempotent` |
| `draft_reply` | `drafts:write` | Reply draft (`needs_review`) | `destructive: false` |

---

## Leads & Signals

### `list_campaigns`
**Scope:** `leads:read` · **Annotations:** `readOnlyHint: true`, `idempotentHint: true`
List campaigns, lead lists, and discovery agents with lead, approval, and draft counts.

| Parameter | Type | Description |
| --- | --- | --- |
| `kind` | `"campaign" \| "lead_list" \| "discovery_agent" \| "all"` | Filter by campaign/list type. |
| `includeArchived` | `boolean` | Include archived campaigns/lists. |
| `limit` | `integer (1-50, default 20)` | Maximum records to return. |
| `offset` | `integer (0-10000, default 0)` | Pagination offset. |

### `list_leads`
**Scope:** `leads:read` · **Annotations:** `readOnlyHint: true`, `idempotentHint: true`
List bounded workspace leads filtered by fit score, signal type, approval status, campaign, or search text.

| Parameter | Type | Description |
| --- | --- | --- |
| `campaignId` | `string` | Filter by campaign, list, or agent ID. |
| `minFitScore` | `number (0-100)` | Minimum ICP fit score. |
| `maxFitScore` | `number (0-100)` | Maximum ICP fit score. |
| `signalType` | `string` | Filter by signal kind (e.g. `hiring`, `funding`, `new_role`, `post`, `company_news`). |
| `approvalStatus` | `"accepted" \| "rejected" \| "unreviewed"` | Filter by approval queue status. |
| `search` | `string` | Match name, company, headline, or URL. |
| `includeExcluded` | `boolean` | Include suppressed/excluded leads. |
| `limit` | `integer (1-50, default 20)` | Maximum records to return. |
| `offset` | `integer (0-10000, default 0)` | Pagination offset. |

### `get_lead`
**Scope:** `leads:read` · **Annotations:** `readOnlyHint: true`, `idempotentHint: true`
Get one lead profile with cited dated buying signals, fit checks, enrichment status, draft, and CRM notes. Provide at least `leadId` or `profileUrl`.

| Parameter | Type | Description |
| --- | --- | --- |
| `leadId` | `string` | Workspace lead ID. |
| `profileUrl` | `string` | LinkedIn profile URL. |
| `campaignId` | `string` | Optional campaign ID scope. |

### `list_signals`
**Scope:** `leads:read` · **Annotations:** `readOnlyHint: true`, `idempotentHint: true`
List dated B2B buying signals across the workspace with source URLs and evidence excerpts.

| Parameter | Type | Description |
| --- | --- | --- |
| `signalType` | `string` | Filter by buying signal kind. |
| `campaignId` | `string` | Filter by campaign/list ID. |
| `sinceDays` | `integer (1-365)` | Lookback window in days. |
| `minFitScore` | `number (0-100)` | Minimum ICP fit score. |
| `limit` | `integer (1-50, default 20)` | Maximum records to return. |
| `offset` | `integer (0-10000, default 0)` | Pagination offset. |

---

## Enrichment

### `enrich_lead`
**Scope:** `enrichment:write` · **Annotations:** `idempotentHint: true`, `openWorldHint: true`
Run credit-checked work email (`1` credit) or phone (`10` credits) lookup for a lead. Credits are charged only when a new result is saved — never for misses or already-saved details. Always call with `quoteOnly: true` first to preview cost and balance.

| Parameter | Type | Description |
| --- | --- | --- |
| `leadId` *(required)* | `string` | Workspace lead ID. |
| `kind` *(required)* | `"work_email" \| "phone"` | Contact type to look up. |
| `campaignId` | `string` | Optional campaign ID scope. |
| `quoteOnly` | `boolean` | Check credit cost and availability without charging. |
| `lookupToken` | `string (uuid)` | Optional token returned by a pending lookup to collect its settled result. |

---

## Drafts & Triage

### `list_drafts`
**Scope:** `drafts:read` · **Annotations:** `readOnlyHint: true`, `idempotentHint: true`
List pending and scheduled outbound message drafts and Setter reply drafts.

| Parameter | Type | Description |
| --- | --- | --- |
| `campaignId` | `string` | Filter by campaign ID. |
| `kind` | `"outbound" \| "setter_reply" \| "all"` | Filter by draft category. |
| `status` | `"draft" \| "reviewed" \| "approved_scheduled" \| "needs_review" \| "ready" \| "waiting"` | Filter by workflow status. |
| `limit` | `integer (1-50, default 20)` | Maximum records to return. |
| `offset` | `integer (0-10000, default 0)` | Pagination offset. |

### `prepare_draft`
**Scope:** `drafts:write` · **Annotations:** `destructiveHint: false`
Create an unapproved outbound draft for human review inside bravabase. Never sends messages.

| Parameter | Type | Description |
| --- | --- | --- |
| `campaignId` *(required)* | `string (uuid)` | Target campaign UUID. |
| `leadId` *(required)* | `string` | Target lead ID. |
| `text` *(required)* | `string (max 3000)` | First-message draft body. |
| `subject` | `string (max 200)` | Optional email/InMail subject line. |
| `connectionNote` | `string (max 200)` | Optional LinkedIn connection note. |
| `followUps` | `array<{ text: string }> (max 5)` | Optional follow-up message drafts. |
| `expectedRevision` | `integer (>= 1)` | Optional optimistic concurrency guard. |

### `update_draft`
**Scope:** `drafts:write` · **Annotations:** `idempotentHint: true`, `destructiveHint: false`
Refine an existing draft and reset approval so a human reviews the edited text before anything can send.

| Parameter | Type | Description |
| --- | --- | --- |
| `campaignId` *(required)* | `string (uuid)` | Target campaign UUID. |
| `leadId` *(required)* | `string` | Target lead ID. |
| `text` *(required)* | `string (max 3000)` | Updated draft body. |
| `subject` | `string (max 200)` | Optional subject line. |
| `connectionNote` | `string (max 200)` | Optional LinkedIn connection note. |
| `followUps` | `array<{ text: string }> (max 5)` | Optional updated follow-up drafts. |
| `expectedRevision` | `integer (>= 1)` | Optional optimistic concurrency guard. |

### `update_lead_status`
**Scope:** `leads:write` · **Annotations:** `idempotentHint: true`, `destructiveHint: false`
Triage a lead status in your workspace (`suppress` adds a permanent block against future outreach).

| Parameter | Type | Description |
| --- | --- | --- |
| `leadId` *(required)* | `string` | Workspace lead ID. |
| `status` *(required)* | `"interested" \| "not_interested" \| "save_for_later" \| "suppress"` | New lead triage status. |
| `campaignId` | `string` | Optional campaign ID scope. |
| `note` | `string (max 600)` | Optional CRM triage note. |
| `expectedRevision` | `integer (>= 1)` | Optional optimistic concurrency guard. |

---

## Inbox (Hybrid E2EE)

### `list_replies`
**Scope:** `inbox:read` · **Annotations:** `readOnlyHint: true`, `idempotentHint: true`
List LinkedIn inbox conversations with Hybrid E2EE decryption (verifying live `can_read` grant + audit log) or automatic `metadata_only` fallback when browser-only E2EE is active.

| Parameter | Type | Description |
| --- | --- | --- |
| `unreadOnly` | `boolean` | Only return unread threads. |
| `awaitingReplyOnly` | `boolean` | Only return threads waiting on your reply. |
| `limit` | `integer (1-50, default 20)` | Maximum threads to return. |
| `offset` | `integer (0-10000, default 0)` | Pagination offset. |

### `get_conversation`
**Scope:** `inbox:read` · **Annotations:** `readOnlyHint: true`, `idempotentHint: true`
Get bounded messages for one LinkedIn conversation thread with live `can_read` grant checks and `metadata_only` fallback.

| Parameter | Type | Description |
| --- | --- | --- |
| `threadId` *(required)* | `string` | Inbox conversation thread ID. |
| `limit` | `integer (1-50, default 20)` | Maximum messages to return. |
| `offset` | `integer (0-10000, default 0)` | Pagination offset. |

### `draft_reply`
**Scope:** `drafts:write` · **Annotations:** `destructiveHint: false`
Prepare a Setter/inbox reply draft strictly in `needs_review` state for human approval in bravabase. Never sends messages.

| Parameter | Type | Description |
| --- | --- | --- |
| `threadId` *(required)* | `string` | Target inbox thread ID. |
| `draftText` *(required)* | `string (max 2000)` | Proposed reply text. |
| `reason` | `string (max 400)` | Optional note explaining the draft context. |

---

## A typical agent session

```text
list_campaigns(includeArchived: false)            # see active signal campaigns & lists
  -> list_signals(sinceDays: 14, minFitScore: 70) # surface fresh dated buying signals
  -> list_leads(approvalStatus: "unreviewed")     # inspect matching leads in the queue
  -> get_lead(leadId: "...")                      # read cited signal quotes & sourceUrls
  -> enrich_lead(leadId: "...", kind: "work_email", quoteOnly: true)  # preview credit cost (0 charged)
  -> enrich_lead(leadId: "...", kind: "work_email")                   # 1 credit only if found
  -> prepare_draft(campaignId: "...", leadId: "...", text: "...")     # saved to review queue (not sent)

# Human reviews and clicks Approve inside https://app.bravabase.ai
```
