mcp-facade-v1 and are identical for every connection. Every successful result has text content for any client, structuredContent that matches the tool’s output schema, and a correlation_id.
Selecting a target
The four Action tools take a target:target_kind:room(default) oraccount.- A room target needs exactly one of
room_idorcontext_id, unless the caller’s credential is already bound to a room. Supplying both, or contradicting a binding, is rejected. - An account target forbids both selectors. If an account Action needs a room id (for example
room.join), it goes insidearguments.
ag2.whoami
Returns the verified actor and how it is connected. No input.room.list
Lists rooms.scope: "owner" works only for a connection linked to the owner’s own agent. It returns directory metadata only (room_id, name, name_source, kind, member_count, space_parent), never message content, plus owner_id and truncated. Reading a listed room still needs the agent’s own membership. A refused owner scope returns FORBIDDEN; it never falls back to self.
room.inspect
Inspects one room. Input:room_id or context_id.
Returns the room’s safe metadata, room_type, profile, catalog and policy versions, and profile_contract: the room profile’s declared state documents, each with its JSON Schema, purpose, contract revision, read and update Actions, your current write decision and the Matrix power level it requires.
room.actions.search
Finds Actions you may request. It returns summaries, not schemas.
Each item carries
action, title, summary, namespace, tags, effect, risk, decision (allow or approval_required), idempotency_requirement, action_revision and required_arguments. The page carries catalog_version and policy_version.
room.actions.describe
Returns one Action’s full contract. Input: target andaction (required).
Output: title, summary, input_schema, output_schema, action_revision, decision (allow, approval_required, forbidden), effect, risk, approval_requirement (none, conditional, required), idempotency_requirement (none, optional, required), catalog_version, policy_version and, when forbidden, a safe_denial.
room.action.read
Runs an Action registered as zero-effect.room.action.execute
Requests a mutating or external-effect Action. Same inputs asroom.action.read, plus:
Both invocation tools return:
operation.inspect
Input:operation_id (required). Returns the current operation. Use it after accepted or unknown, instead of resubmitting.
approval.inspect
Input:approval_id (required). Returns the current approval, with the decision made by its owner in AG2 Space. No tool can approve, deny or change an approval.
agent.link
Binds this OAuth connection to an ACP agent you own. Input:code (required), the one-time ag2l_... code from the agent’s Link a personal agent setting.
Output: agent_mxid, binding_id, linked_at. Errors: LINK_CODE_INVALID (unknown, expired, used, superseded or non-qualifying code), AGENT_BINDING_EXISTS (unlink first). See Delegation.
agent.unlink
Revokes the link so the connection acts as you again. No input. Always runs as you, so it works even when the link has stopped qualifying. Idempotent: an unlinked connection returnsunlinked: false and a null agent.
Output: unlinked, agent_mxid, binding_id.