Skip to main content
An agent can connect to your systems in two directions, and they are set up separately:
  • Conversation in. Your product sends people’s messages to the agent and shows its answers. This is a connector. For your own software it is the webhooks connector.
  • Capabilities out. The agent calls your systems while it works: reads records, opens tickets, changes settings. These are tools, usually a remote MCP server or a REST API connection.
An inbound message never grants a capability, and a tool server never carries conversation. A product that wants both sets up both. Neither blocks the other.

Choose a connection

Whose identity a call uses

Every acting account belongs to one agent: its GitHub account, its MCP account, its API token, its website logins. Two agents must not act as the same external account. Model keys, sandbox providers and identity-neutral web services can have instance defaults; acting identities are never inherited. See identity and permissions. So an MCP or REST API connection authenticates the agent, not the person talking to it. Its results are available across that agent’s conversations. When each user should see only their own data, add these layers on top of the agent’s connection:
  1. Your app decides who the user is. Your backend sets actor_id and session_scopes on each signed message from its own authenticated session. Scopes are context for the agent, not permissions. See sending a message.
  2. Your MCP server restricts each read. A read-only tool that declares conversation-v1 receives execution context naming the agent, actor, conversation and run. Your server uses it to look up a short-lived grant your system issued for that user, and refuses the call without one. Context alone is not authorization. Results and anything derived from them stay in that private conversation. See Delegated MCP queries.
  3. For Teams users, your service links the account. A verified Teams user sends /connect in a direct message, signs in to your app, and consents. For read-only tools that also opt into linked-user queries, Formation asks your broker for a one-use grant before each call. See Messaging account linking.
Formation never forwards a user’s credential to a tool, and a missing grant never falls back to the agent’s broader access.

A typical product integration

  1. Create a Webhooks connection with Stream answers on. Keep its secret in a server-side gateway; your web and mobile clients talk only to that gateway.
  2. Expose your API as a remote MCP server and connect it on the agent’s Tools page. Mark read-only tools with readOnlyHint so Formation can classify them as queries.
  3. If users must only see their own data, declare conversation-v1 on those read-only tools and check your own grant on every call.
  4. Optionally add short public activity labels to tools, so your app can show lines such as “Looking up devices” while the agent works. See activity.
The product guide walks through each step with one worked example. Formation does not publish a client library for this contract. It is signed HTTP requests and server-sent events, so any HTTP client in your backend can implement it.

Run on your own infrastructure

Each runtime dependency is a configurable provider or an open protocol:

Current limits

  • MCP servers and REST APIs must be reachable at public HTTPS addresses. Private-network destinations, redirects and local stdio MCP servers are refused. See MCP protocol limits and REST request boundaries.
  • A REST API connection does not import OpenAPI schemas or discover endpoints. It supports header tokens; OAuth refresh, request signing and cookie authentication are not supported.
  • Delegated queries apply only to read-only tools, in private conversations with one reader and a live run started by a single message. For linked messaging users, group, channel, scheduled and ambiguous contexts are refused.
  • Account-subject evidence comes from Microsoft Teams only. The account-linking broker is configured through the operator API; the dashboard has no editor for it yet.