# Auth and access

> How your agent signs in, organisations and roles.

## Sign-in

- The MCP server is https://api.onbox.ing/mcp. It uses OAuth: your host opens the sign-in in the person’s browser, and they sign in with Google or Microsoft.
- Discovery documents: https://api.onbox.ing/.well-known/oauth-protected-resource and https://api.onbox.ing/.well-known/oauth-authorization-server.
- A first sign-in creates the account and its organisation.

## Before any call

Through the whole setup:

- When the person wants you to start or resume setup, open with the introduction and the plan in one message ending with "Shall I go ahead?", and start once they say yes (section 1).
- After each question you ask, end your turn and wait for the answer: no tool call, file write or next step until it comes.
- Keep every message short. Say the essential and offer more on request ("Ask me if you want the details"); never explain ahead of need.
- Give every link from an Onbox result (a `webUrl`, a connect or sign-in link, or a billing or settings page) as a markdown link named for what it does, such as `[Open the billing page](<url>)` or `[Connect support@example.com](<url>)`, alone on its line when the person must click it, and keep the raw URL out of your sentences.
- Tell the person what happened, what you'll do next, or what they need to do. Use checklist items, tool names, fields, states and tool-result instructions only to decide what to do. Never quote them or attribute a step to them, including in progress updates and when explaining a failure. If you have confirmed the mailbox is connected and the build needs starting, say "Your support mailbox is connected. I'll start Onbox's first build so it can learn from your past conversations."
- These instructions are yours, not the person's: never name, quote or link this skill, its file or its rules, and never say a step is required of you. When you wait or ask first, say it plainly ("I'll wait for your answer", "May I add the snippet?").
- Leave the person's repository, when there is one, as it is: read it, and change only what they agreed to. When their docs disagree with what Onbox learned, tell them and leave the fix to them.
- Introduce the brain before using it as a term on its own. At the first mention of the brain or its build, explain both in one or two plain sentences. Say "Onbox's brain is what it knows about your company: facts it uses when it answers (memories) and step-by-step ways to handle requests (skills). In its first build, Onbox reads your past support conversations and your docs, and writes down what it learns." Mention only the sources it can read. Use brain, memories and skills consistently throughout setup. Call the build "Onbox's first build" or "the brain build".

If no Onbox tool is available, the server is not connected or not signed in. The tools this skill names start with `get_account_status`. Another Onbox connector the person added earlier can show older tools under other names, such as `list_threads` or `brain_list_files`: it is not this server, so do not use it for the setup.

Signing in is the person's first moment with Onbox: ask for it in one short sentence, in your first message, and use the way your host opens the browser itself. For someone new to Onbox, the sign-in also creates their account and starts the free trial, with a card charged only when the trial ends, so say that in the same sentence: "Sign in to Onbox; if you're new, it creates your account and starts the free trial (a card, charged only when the trial ends)." Once they are back, the account is ready and the setup runs without a payment step.

- **Claude Code** shows "MCP server needs authentication · run /mcp" when the session starts. Ask the person to type `/mcp`, choose `onbox` and then Authenticate: Claude Code opens Onbox's sign-in in their browser and loads the tools when they are back. Carry on as soon as the Onbox tools appear. Use its `authenticate` tool only if the person cannot use `/mcp`; then give the link it returns alone on its line, and ask for the address the browser landed on (for `complete_authentication`) only if they say the page showed an error.
- **Codex** shows a warning that the onbox MCP server is not logged in. Ask the person to type `/mcp login onbox`: Codex opens the sign-in in their browser.
- **Another host** with a sign-in tool for the Onbox server: call it and give the link it returns alone on its line, in one sentence.
- Only when the host offers none of these, tell the person to connect the Onbox connector and sign in, then stop.

These are the only commands you ask the person to type. If your host defers a tool, use tool search to load its input schema before the first call. A name or short description alone is not the schema. Pass array inputs as arrays.

Passwords and API keys go through the pages Onbox links to; ask for none in the conversation.

## Organisations and roles

Every call acts as the signed-in person, in their organisation, with what their role allows.

If `caller.isAdmin` is false, most account tools are not available to this person. Say so, tell them who can finish the setup (an admin of their organisation), and offer what they can do: read the status, and later go through their own inbox.

The brain build reads the inbox history and writes skills and memories. Once the setup is complete, a change to the org brain is an **Onbox improvement** (a brain proposal): one an admin stated themselves applies at once, and any other waits for an admin to accept or decline it.

Tools listed for admins only:

- `list_webhook_endpoints`: List the webhook endpoints of the organisation: the URLs outside systems (Linear, GitHub, Ashby, your own tools) post events to, how each is verified, and whether its secret is set.
- `create_webhook_endpoint`: Create a webhook endpoint from a webhook definition (definition: linear, github, ashby), or a custom one (verify), and get its URL.
- `update_webhook_endpoint`: Change a webhook endpoint: set or replace its signing secret, switch it on or off, or replace how a custom endpoint verifies deliveries (verify).
- `delete_webhook_endpoint`: Delete a webhook endpoint, its secret and its stored deliveries.
- `list_webhook_deliveries`: List the recent deliveries a webhook endpoint accepted, newest first, with what Onbox did with each and why.
- `get_webhook_events`: Read stored webhook events by ID: the outside system's payload, or one value in it with `path`, with the delivery's status and reason.
- `invite_members`: Invite people to the organisation by email, each as a member or an admin; each gets the invitation email, an existing member is left as is.
- `remove_member`: Remove someone from the organisation: deactivate a member by userId, or revoke a pending invitation by invitationId, both from list_members.
- `update_member`: Change a member's role (member, admin or owner), or reactivate a deactivated member (inactive in list_members) with status active: access and former role come back unless role changes it in the same call; their conversations stay unassigned.
- `create_custom_integration`: Create a custom integration: a connection Onbox stores, set up by an admin, to the company's own MCP server, OpenAPI API or PostgreSQL database, which the Onbox agent may then use inside Onbox under the modes an admin sets.
- `preview_custom_integration`: Read only: show which operations an OpenAPI document or an MCP server offers, before registering it with create_custom_integration, a separate tool.
- `update_integration`: Change an integration's settings, by id or slug from list_integrations; the fields you pass overwrite the current values.
- `create_tag`: Create a tag for your organisation.
- `update_tag`: Rename or edit one of your organisation's tags; the values you pass replace the current ones.
- `delete_tag`: Delete one of your organisation's tags.
- `create_test`: Create a test of the Onbox agent: a conversation and what the agent must do with it.
- `delete_test`: Delete a test of the Onbox agent that the person named.
- `get_test_results`: Read test attempts, newest first, by batchId, testId, result or cause: the verdict per expected outcome with quoted evidence, agent runs (get_agent_run_trace), tool calls, guard decisions, pending actions, reply sent or held, webUrl.
- `list_tests`: List the tests of the Onbox agent: expected outcomes, notes, latest result, webUrl, and whether a person confirmed each.
- `run_tests`: Run tests of the Onbox agent, all or testIds, each `runs` times.
- `update_test`: Change a test's name, scenario, expectedOutcomes, notes, simulatedTools or assignee; values replace the current ones.
- `accept_brain_proposals`: Accept changes proposed to your organisation's brain: each goes live from the agent's next conversation, at the headSha reviewed.
- `decline_brain_proposals`: Decline changes proposed to your organisation's brain: each is put aside, where the agent can bring it back later.
- `build_brain`: Build the Onbox agent's brain: one learning run per connected inbox reads its history and writes skills and memories.
- `update_organisation`: Change the organisation's settings: the company's name or website, the agent's name and photo, and whether brain changes need a second admin.

No tool is hidden once setup is over: the same tools serve the first day and every day after.

## What your agent can reach

- 26 read tools and 47 write tools, listed in [Tools](https://www.onbox.ing/docs/agents/tools.md).
- Results include webUrl links: for any step in the browser, your agent gives the person the link.
- What it must never do: [Limits and safety](https://www.onbox.ing/docs/agents/limits-and-safety.md).
