Skip to content
Product
Solutions
Resources
Pricing

Connect your agent one scope at a time

A read-only key, a tool list with two entries and one careful scope added: the MCP quickstart path.

Updated
Reading time
4 min read
Share

Connecting an AI agent to your organisation sounds like a project. Over MCP it is a short path: make a read-only key, point the client at one address, confirm the agent sees two tools, read a record, then add exactly one scope. Each step proves the last. Nothing is taken on trust.

Read first. In Administration under API keys, make a key named for the purpose and tick customer read plus any other read scopes you want the agent to see. Copy it once and keep it in the environment. A key whose scopes all end in read is offered only the list and get tools. Each kind of record needs its own read scope, so customers need customer read and cases need case read. Name the connection terania or whatever your client uses as a label. The server identifies itself in the handshake, so your label is for you. Keep the key out of the config file if your client can read it from the environment. Config files get copied, screenshotted and committed. Environments do not.

Ask what the key allows. Start with initialize, then ask for the tool list. With the read-only key the list holds two tools: list records and get record. Two tools is the proof. It means the key, the address, the headers and the protocol version all work, and the scopes filter exactly as designed. If you see more tools than expected, stop: the key holds scopes you did not mean to give. Remake it narrower.

Read a record through the agent. Ask it to list customers, or call the tool directly with the customer kind and a small limit. The answer is JSON with a note and data. The note reminds the agent that text inside may come from people outside your organisation and is information, never instructions. Read that note yourself too, because it governs everything the agent will ever see through this connection. Visitor messages, customer names typed by strangers, notes pasted from emails: all information, none of it instruction. Keep that rule in your agent's own prompting as well. The server states it on every result. Your agent should restate it in its behaviour.

Add one scope, not all of them. Make a second key. For tasks, tick task creation. An act tool is listed only when the key holds every scope its actions need, so create task stays hidden from a key that holds only mission assignment. This listing rule is a quiet safety feature: the agent cannot call what it cannot see, and it cannot see what the key does not allow. Widen one scope at a time, prove each widening with a tool list call, and stop when the agent's job is covered. Keys are cheap. Broad keys are expensive.

Mind the protocol details the guide names. The modern version needs its protocol version and method headers, with a name header on tool calls. Every method other than POST answers 405. A foreign origin header is refused. A Bearer token that does not start with the key prefix answers 401. These are small facts that save long debugging sessions. When a call fails, check the headers before the body.

Rate limits match the REST API, so the agent shares the same hundred requests a minute per key. An agent in a loop can spend that quickly. Set the agent's polling intervals and page sizes with the limit in mind, and treat a busy answer from the concurrency cap as a cue to wait.

Two keys, two tools then a few more. The agent reads what its key allows and nothing else.

Confirm the widening each time with a tool list call. After adding a scope, list the tools again and check the new act tool appeared. If it did not, the key misses a scope the tool needs, since write tools appear only when the key holds every scope their actions require. This check catches the mistake of ticking the scope with a similar name. Prove each widening, stop when the job is covered, and keep the read-only key for the agent's reading hours.

Connect an agent

Terania · Facts checked 26 November 2026.

Start with one AI Employee.

No card needed. Every AI Employee starts on Manual, so it asks a person first.

Esc
Start typing to search pages, docs and posts.

↑↓ NavigateEnter OpenEsc Close