# Vault and Agents



The Vault is not a setting you switch on. It is a set of documents an agent can
read.

## Readers and Writers Are Not the Same Set [#readers-and-writers-are-not-the-same-set]

The Connections panel lists what **writes into** the Vault. What **reads** it
is a different list, and the heaviest reader is not on the panel at all.

| Reader                                                                                | What it reads                                                                                                                                                                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **The writer pipeline**, behind [Campaign Agents](https://www.withsurface.com/docs/platform/campaign-agents/overview) | The most of anything. Compiling a brief preloads your Company document, `Agent notes/Style learnings.md`, `Agent notes/Team knowledge.md` and `Agent notes/Editorial guardrails.md`, then gets live list, read and search tools over the rest of the Vault. Drafting loads the style documents every run and **fails outright if `Style learnings.md` is missing** |
| **[Prism](https://www.withsurface.com/docs/platform/sam/overview)**                                                   | Reads before it drafts, and reads whatever you name: &#x2A;"draft this using `brand/voice.md`"*. It uses the same `vault` tools anyone else gets in the default MCP connection                                                                                                                                                                                     |
| **Your own agents**                                                                   | The same four `vault` [MCP tools](https://www.withsurface.com/docs/mcp-server/tools#vault), in the default connection                                                                                                                                                                                                                                                                              |

And one that looks like a reader and is not:

| Not a reader                                                                   | What it actually does                                                                                                                                  |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **[Competitor Monitoring](https://www.withsurface.com/docs/platform/vault/connections/competitor-monitoring)** | A **producer**. It writes `Competitors/<domain>/`. The only thing it reads is the list of paths, to decide whether a document is a create or an update |

<Info>
  Beyond the four documents the brief compiler preloads, which folders an agent
  reaches for and when is not documented. Do not build a folder on the assumption
  that a particular agent will find it. Name the path in the prompt instead, and
  check the output.
</Info>

## Telling Whether It Was Used [#telling-whether-it-was-used]

[Prism](https://www.withsurface.com/docs/platform/vault/sam) usually names the documents it pulled from, in a line
under the draft. If you get no such line, test it:

<Steps>
  <Step title="Run the prompt once">
    Ask for the draft as you normally would.
  </Step>

  <Step title="Add the one document you think is missing">
    A single objection, a single voice rule, one customer number.
  </Step>

  <Step title="Run the identical prompt again">
    If the draft changed, the document reached it. If nothing changed, name the
    path in the prompt and run it a third time. Prism says so directly when it
    found no voice rules to follow.
  </Step>
</Steps>

## A Wrong Document Is Worse than a Missing One [#a-wrong-document-is-worse-than-a-missing-one]

Nothing checks a Vault document against your product. If a document asserts a
capability you do not ship, agents will draft that claim, confidently, until
someone edits the document.

<Warning>
  Treat Vault documents as publishable claims. Anything you would not put on a
  slide in front of a customer should not be in a document an agent drafts from.
</Warning>

## Vault over MCP [#vault-over-mcp]

The four Vault tools ship in the default MCP connection:

| Tool                   | Use                                                                                                            |
| ---------------------- | -------------------------------------------------------------------------------------------------------------- |
| `browse_vault`         | List or search documents. Takes `query`, `pathPrefix`, `cursor`, `limit`.                                      |
| `read_vault_documents` | Read up to 10 documents, and get the `revision` an edit will need. Takes `offset` and `maxChars` per document. |
| `create_vault`         | Build the first Vault from a public website URL.                                                               |
| `apply_vault_changes`  | Create, update, move or delete up to 20 documents atomically.                                                  |

For a coding agent: `browse_vault` with a `pathPrefix`, `read_vault_documents`
on the two or three that matter, then write.

[Vault and Prism →](https://www.withsurface.com/docs/platform/vault/sam) · [MCP tool reference](https://www.withsurface.com/docs/mcp-server/tools#vault)
