Attach or update an agent MCP server
attach_agent_mcp_serverAttach an MCP server to an agent, or update its configuration if already attached. Use this to connect an agent to a server in the Gumloop MCP catalog.
Instructions
Attach an MCP server (connector) to an agent, or update its configuration if it's already attached (upsert).
The server_id is validated against the caller's MCP catalog. Catalog identity fields (type, server_id, secret_id, mcp_server_url) always come from the catalog and cannot be spoofed via the request body — the body carries only free-form connector configuration (e.g. approval mode, tool restrictions); any identity keys in it are ignored.
Attach may succeed before OAuth is completed; auth_status reflects the catalog's authentication state.
Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| agent_id | Yes | ID of the agent. Also accepts the reserved aliases `gumball` and `analytics`. | |
| server_id | Yes | ID of the MCP server from the caller's catalog. |