Data layer

How to give AI agents your company's context

Tracebrain is the AI data layer for companies and enterprises: every night it reads the systems a company connects and writes one verified record of what was decided, promised, paid and delivered, by client, project and department, in plain files the company owns, for its people and its AI agents.

An AI agent knows a great deal about the world and nothing about your company. Ask it to draft a reply to a client and it does not know the discount agreed last week; ask it what is overdue and it has no list. This guide is for the people in operations and IT who connect agents to company data. It covers what context an agent actually needs, three ways to give it, how to serve a record over MCP, and the rules that keep it safe.

What context an agent needs

Write down the questions you want agents to answer before choosing how to feed them. For most companies they fall into five groups:

  • Who. The clients, the people on each side, and who owns each relationship.
  • What was agreed. Terms, prices, scope and deadlines as they stand today, with the day each was settled.
  • What is open. What the company promised and what it was promised, with dates.
  • Money. What was quoted, invoiced and paid.
  • Work. Which projects are running, what each delivered and what is left.

And one requirement under all of them: every fact has a source. An agent that says "Halvo has a 6% discount" is guessing; one that says "Halvo has a 6% discount, agreed by mail on 12 November" can be checked.

Three ways to give an agent context

1. Paste it into the prompt

Copy the client's page, the contract or last week's notes into the conversation. It works for one task, and costs nothing to try. It breaks on size, since nobody pastes a whole company, and on freshness, since the paste is out of date the moment it is made. And every person pastes something different, so two agents answer the same question two ways.

2. Let the agent search your documents

Retrieval tools index documents, mail and chat and hand the agent the passages that match a question. This is the right way to answer "where is the security policy" or "what does the contract say". It is weaker for "what is open with Halvo", because no single passage says that: the answer is spread over a thread, a chat and an invoice, and has to be put together again every time it is asked.

3. Serve a record over MCP

The third way gives the agent a record that is already put together: notes by client, project and department, with what was decided, promised, paid and delivered, each line with its date and source. The agent reads it through MCP, the open protocol that Claude, ChatGPT, Cursor, VS Code and other assistants use to call outside tools. The record is written once and read by every agent the same way, so two agents give the same answer.

How to serve a record over MCP

  1. Decide what the record covers. Start with the clients and the departments behind the questions above.
  2. Keep it current without people. A record that depends on somebody updating it will be out of date when the agent reads it. Tracebrain writes its record every night from the systems the company connects.
  3. Expose reading first. Tools that read a client, a project, the open promises, a day or a week. Tracebrain's MCP server has tools such as person, project, tasks, records, day and week.
  4. Allow writing only where a person can see it. Adding a task, ticking one off or adding a fact are useful; deleting is not something an agent should do. In Tracebrain one switch under Manage account decides whether assistants may write at all, and an assistant can only add: it never deletes anything, and never changes a line a person typed.
  5. Sign the agent in, never hand it a key. Tracebrain's server uses an ordinary OAuth consent screen: there is no key to paste, and the grant can be ended at any time.
  6. Test with real questions. Ask the agent the questions from the first section and check every answer against its source.

Rules that keep it safe

  • Secrets never reach the model. Chats carry passwords, card numbers and one-time codes. Tracebrain masks them before any model reads a line, and never writes one into a profile, a task or a record.
  • One company, one record. Each company's record is a separate vault, and a token reaches only the vault it was granted for.
  • No finding about a person. The record is about clients, contracts, projects and departments. It never scores how well anybody works, so an agent reading it cannot either.

What works today, and what does not

  • Live: the MCP server, read and write, for Claude (with a plugin), ChatGPT and any MCP client; a webhook that posts the day's note and due promises to Slack, n8n, Zapier, Make or your own server; the record written from mail and team chats that members connect, read-only.
  • In the integration project: the company's CRM, ERP, ticketing and document systems, so their facts reach the record too.
  • Planned: access by department and management level, SSO and an audit log.

Said plainly: the record answers "what happened and what is open". For "find me the document that says", a search tool over your drives is still the better fit, and an agent can use both.

The MCP page shows how to connect an assistant, and the company data layer page says how the record is kept. Tracebrain is set up with each company after a call, and the pricing page says how it is priced.

FAQ

Questions people ask.

How do I give an AI agent context about my company?

Three ways, from the simplest: paste the context into the prompt, let the agent search your documents at question time, or serve it a record of what happened over MCP, which any MCP client can read. The first breaks on size, the second finds documents rather than what was agreed, and the third needs a record to exist.

What is MCP?

The Model Context Protocol, an open standard for connecting AI assistants to outside tools and data. A system that runs an MCP server can be added to Claude, ChatGPT, Cursor, VS Code and other MCP clients, which then call its tools to read or write.

What context does an AI agent need about a company?

The same as a new colleague: who the clients are and who the people are on each side, what was agreed with each and when, what is open in both directions, what was quoted, invoiced and paid, and which projects are running. Each fact needs its source, so the agent can quote it and a person can check it.

Is it safe to give an AI agent access to company data?

It depends on what the agent can reach and what it can change. Give it a record rather than every raw mailbox, keep secrets such as passwords and card numbers out of what it reads, and let it write only where a person can see and undo the change. Tracebrain masks secrets before any model reads a line, and an assistant can only add, never delete.

Can ChatGPT or Claude read Tracebrain?

Yes. Tracebrain runs an MCP server: Claude, ChatGPT and any other MCP client can read the company's record and, if the company allows it, write back to it. For Claude there is also a plugin.

Talk to us

Start with the people you talked to this week.

Accounts are opened with the company after a call: there is no free trial and no self-serve sign-up. The integration and the subscription are priced with your company on that call.