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
- Decide what the record covers. Start with the clients and the departments behind the questions above.
- 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.
- 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,dayandweek. - 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.
- 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.
- 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.