Conversation-restricted MCP queries
Status: available for MCP tools that opt in. Formation supplies execution context; it is not an application authorization service. Do not declare this extension on a tool unless its server independently authenticates the agent and authorizes each query against its user’s live access. For how this fits with webhooks, account linking and agent-owned credentials, see Connect agents to your systems. A tool may advertise_meta["formation.dev/delegation"] = "conversation-v1".
The declaration is part of its fingerprint and may only restrict a read-only tool.
Unknown versions are unsupported. The model never sees or chooses execution metadata.
For these calls the runtime supplies _meta["formation.dev/execution"] from the
persisted tool call, owning run and single authenticated generic trigger. It contains
version, agent_id, install_id, actor_id, conversation_key, message_id, run_id,
tool_call_id and result_scope. No user credential is transported. Discovery requests
carry no execution grant. The remote gateway must reject calls without valid context,
match the authenticated agent to the installation, and resolve an independently issued,
short-lived application grant. Context alone is not authorization.
The conversation-v1 contract supports private generic conversations with exactly
one reader and a single-trigger live run. Metadata is unavailable for ambiguous or unrelated triggers.
Tool evidence retains the persisted audience and source conversation. Derived memories
and replies inherit those restrictions through the existing provenance machinery.
Ordinary agent-owned MCP tools retain their current agent-wide semantics.
The agent’s connection authenticates its own acting identity. Application permission
is an additional restriction, never an inherited human credential or shared agent account.
The gateway must not accept tool arguments as execution metadata, forward its connection
credential as a user token, or fall back to broader permissions when a grant expires.
Formation’s tests cover the execution-context fences, retained tool evidence, and
memory derived from delegated results or from replies that cite them. Your application
must separately test credential custody and user/workspace authorization.
Previously unrestricted data must not be reclassified as safe for delegated users.
Linked messaging users
A provider may additionally advertise_meta["formation.dev/messaging-delegation"] = "account-link-v1" alongside
conversation-v1. This opt-in is fingerprinted and read-only. It does not change
existing application metadata or authorize a messaging user by itself.
For an admitted, single-trigger direct message with adapter-verified account
subject evidence and a configured agent-owned account-link broker, Formation
supplies formation.dev/messaging-execution. Version 1 contains agent_id,
provider_id, runtime connector_id, connector_type, connector_namespace,
subject (verified tenant, sender, optional directory identifier), persisted
conversation_key/message_id, run_id, tool_call_id, and
result_scope: "conversation", plus a short-lived authorization capability.
Source attribution is derived from the recorded tool operation,
never model arguments. Public, group, channel, scheduled and ambiguous contexts
are refused. No human credential or application identity mapping enters prompts.
Before contacting the tool, Formation POSTs to the configured account-link broker
with its separate broker credential:
{"state":"authorized","grant":"<43-character base64url token>", "expires_at":"<UTC timestamp>"} valid for at most 60 seconds. A 401/403 becomes a
fixed reconnect notice; malformed or unavailable responses fail closed. The broker
must fence issuance by persisted operation identity so replay cannot mint fresh
authority after expiry or reconnection. Return the same capability on issuance
replay. Do not use a human credential as this capability.
Formation attaches the opaque token as authorization in messaging execution
metadata. The MCP service independently authenticates its agent connection,
checks configured provider/installation authority, and redeems the one-use token
with a separate application service credential. Redemption must bind the complete
context, remote tool name and current link revision, reject replay and expiry,
and never accept context alone as permission. That service must require proof that the
browser owner matches the original messaging identity, explicit workspace consent,
live membership and current revocation state before each read. A pre-existing
link without that proof cannot be upgraded implicitly. Query data and derived
memory retain the original private conversation audience. Missing authorization
must never fall back to an agent-wide human token.