profile_mcp_attachments
List or replace an agent profile's attached MCP servers and optional tool subsets, validating selections before any config write.
Instructions
Manage a profile's MCP attachments (agent_profile_mcp_servers — the
source the flag-on MCP resolver reads). action:
list → current attachments + the attachable MCP set for this profile;
set → REPLACE the profile's attachments with attachments, a list of
{mcp_server_id, tool_subset?} (tool_subset omitted/null = all of the
MCP's tools). Detaches any MCP not in the list. Each MCP must be
attachable (scope-visible) and every pinned tool_subset name must
be one of that MCP's real tools; validated before any write.
No confirm gate — matches the portal, which reconciles this join
freely (it's reversible config, not a destructive delete).Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"profile_id": "<profile_id>"
},
"name": "profile_mcp_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| action | No | Operation to run: list | set. The tool description lists what each action needs. | list |
| profile_id | Yes | Agent profile UUID (list_profiles / get_profile). | |
| attachments | No | Full attachment list [{mcp_server_id, tool_subset?}] — REPLACES the current set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |